public final class TrafficTarget extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Run Admin API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TrafficTarget() |
| Modifier and Type | Method and Description |
|---|---|
TrafficTarget |
clone() |
String |
getConfigurationName()
ConfigurationName of a configuration to whose latest revision we will send this portion of
traffic.
|
Boolean |
getLatestRevision()
LatestRevision may be optionally provided to indicate that the latest ready Revision of the
Configuration should be used for this traffic target.
|
Integer |
getPercent()
Percent specifies percent of the traffic to this Revision or Configuration.
|
String |
getRevisionName()
RevisionName of a specific revision to which to send this portion of traffic.
|
String |
getTag()
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
|
String |
getUrl()
Output only.
|
TrafficTarget |
set(String fieldName,
Object value) |
TrafficTarget |
setConfigurationName(String configurationName)
ConfigurationName of a configuration to whose latest revision we will send this portion of
traffic.
|
TrafficTarget |
setLatestRevision(Boolean latestRevision)
LatestRevision may be optionally provided to indicate that the latest ready Revision of the
Configuration should be used for this traffic target.
|
TrafficTarget |
setPercent(Integer percent)
Percent specifies percent of the traffic to this Revision or Configuration.
|
TrafficTarget |
setRevisionName(String revisionName)
RevisionName of a specific revision to which to send this portion of traffic.
|
TrafficTarget |
setTag(String tag)
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
|
TrafficTarget |
setUrl(String url)
Output only.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getConfigurationName()
null for nonepublic TrafficTarget setConfigurationName(String configurationName)
configurationName - configurationName or null for nonepublic Boolean getLatestRevision()
null for nonepublic TrafficTarget setLatestRevision(Boolean latestRevision)
latestRevision - latestRevision or null for nonepublic Integer getPercent()
null for nonepublic TrafficTarget setPercent(Integer percent)
percent - percent or null for nonepublic String getRevisionName()
null for nonepublic TrafficTarget setRevisionName(String revisionName)
revisionName - revisionName or null for nonepublic String getTag()
null for nonepublic TrafficTarget setTag(String tag)
tag - tag or null for nonepublic String getUrl()
null for nonepublic TrafficTarget setUrl(String url)
url - url or null for nonepublic TrafficTarget set(String fieldName, Object value)
set in class GenericJsonpublic TrafficTarget clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.