@Beta public class BandwidthCapacity extends Config<ConnectPoint>
Config.FieldPresence
Modifier and Type | Field and Description |
---|---|
static 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.
|
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, subject
public static final String CONFIG_KEY
BandwidthCapacity
.public boolean isValid()
Config
Default 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 String toString()
toString
in class Config<ConnectPoint>