public final class TrafficSplit
extends com.google.api.client.json.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 App Engine Admin API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
TrafficSplit() |
Modifier and Type | Method and Description |
---|---|
TrafficSplit |
clone() |
java.util.Map<java.lang.String,java.lang.Double> |
getAllocations()
Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for
that version.
|
java.lang.String |
getShardBy()
Mechanism used to determine which version a request is sent to.
|
TrafficSplit |
set(java.lang.String fieldName,
java.lang.Object value) |
TrafficSplit |
setAllocations(java.util.Map<java.lang.String,java.lang.Double> allocations)
Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for
that version.
|
TrafficSplit |
setShardBy(java.lang.String shardBy)
Mechanism used to determine which version a request is sent to.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.Map<java.lang.String,java.lang.Double> getAllocations()
null
for nonepublic TrafficSplit setAllocations(java.util.Map<java.lang.String,java.lang.Double> allocations)
allocations
- allocations or null
for nonepublic java.lang.String getShardBy()
null
for nonepublic TrafficSplit setShardBy(java.lang.String shardBy)
shardBy
- shardBy or null
for nonepublic TrafficSplit set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public TrafficSplit clone()
clone
in class com.google.api.client.json.GenericJson