@Beta public class BandwidthCapacity extends Config<ConnectPoint>
Config.FieldPresence| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_KEY
netcfg ConfigKey for
BandwidthCapacity. |
| Constructor and Description |
|---|
BandwidthCapacity() |
| Modifier and Type | Method and Description |
|---|---|
Bandwidth |
capacity()
Available Bandwidth resource (Capacity).
|
BandwidthCapacity |
capacity(Bandwidth bandwidth)
Sets the Available Bandwidth resource (Capacity).
|
boolean |
isValid()
Indicates whether or not the backing JSON node contains valid data.
|
java.lang.String |
toString() |
apply, clear, get, get, get, get, get, get, getList, getList, hasField, hasField, hasFields, hasFields, hasOnlyFields, hasOnlyFields, init, isBoolean, isBoolean, isConnectPoint, isConnectPoint, isDecimal, isDecimal, isIntegralNumber, isIntegralNumber, isIpAddress, isIpAddress, isIpPrefix, isIpPrefix, isMacAddress, isMacAddress, isNumber, isNumber, isString, isString, isTpPort, isTpPort, isValidLength, key, node, setList, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subjectpublic static final java.lang.String CONFIG_KEY
BandwidthCapacity.public boolean isValid()
ConfigDefault implementation returns true. Subclasses are expected to override this with their own validation. Implementations are free to throw a RuntimeException if data is invalid.
isValid in class Config<ConnectPoint>public BandwidthCapacity capacity(Bandwidth bandwidth)
bandwidth - value to set.public java.lang.String toString()
toString in class Config<ConnectPoint>