public final class TrafficRule
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 Cloud Testing 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TrafficRule() |
| Modifier and Type | Method and Description |
|---|---|
TrafficRule |
clone() |
Float |
getBandwidth()
Bandwidth in kbits/second.
|
Float |
getBurst()
Burst size in kbits.
|
String |
getDelay()
Packet delay, must be >= 0.
|
Float |
getPacketDuplicationRatio()
Packet duplication ratio (0.0 - 1.0).
|
Float |
getPacketLossRatio()
Packet loss ratio (0.0 - 1.0).
|
TrafficRule |
set(String fieldName,
Object value) |
TrafficRule |
setBandwidth(Float bandwidth)
Bandwidth in kbits/second.
|
TrafficRule |
setBurst(Float burst)
Burst size in kbits.
|
TrafficRule |
setDelay(String delay)
Packet delay, must be >= 0.
|
TrafficRule |
setPacketDuplicationRatio(Float packetDuplicationRatio)
Packet duplication ratio (0.0 - 1.0).
|
TrafficRule |
setPacketLossRatio(Float packetLossRatio)
Packet loss ratio (0.0 - 1.0).
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Float getBandwidth()
null for nonepublic TrafficRule setBandwidth(Float bandwidth)
bandwidth - bandwidth or null for nonepublic Float getBurst()
null for nonepublic TrafficRule setBurst(Float burst)
burst - burst or null for nonepublic String getDelay()
null for nonepublic TrafficRule setDelay(String delay)
delay - delay or null for nonepublic Float getPacketDuplicationRatio()
null for nonepublic TrafficRule setPacketDuplicationRatio(Float packetDuplicationRatio)
packetDuplicationRatio - packetDuplicationRatio or null for nonepublic Float getPacketLossRatio()
null for nonepublic TrafficRule setPacketLossRatio(Float packetLossRatio)
packetLossRatio - packetLossRatio or null for nonepublic TrafficRule set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic TrafficRule clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2019 Google. All rights reserved.