public final class BasicRegionConfig extends BasicElementConfig<RegionId>
Config.FieldPresenceLATITUDE, LONGITUDE, NAME, OWNER, RACK_ADDRESS, UI_TYPE, ZERO_THRESHOLDALLOWED| Constructor and Description |
|---|
BasicRegionConfig() |
| Modifier and Type | Method and Description |
|---|---|
List<DeviceId> |
devices()
Returns the identities of the devices in this region.
|
BasicRegionConfig |
devices(Set<DeviceId> devices)
Sets the devices of this region.
|
boolean |
isValid()
Indicates whether or not the backing JSON node contains valid data.
|
String |
toString() |
Region.Type |
type()
Returns the region type.
|
BasicRegionConfig |
type(Region.Type type)
Sets the region type.
|
geoCoordsSet, latitude, latitude, longitude, longitude, name, name, owner, owner, rackAddress, rackAddress, uiType, uiTypeisAllowed, isAllowedapply, 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, key, node, setList, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subjectpublic 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.
public Region.Type type()
public BasicRegionConfig type(Region.Type type)
type - the region type, or null to unsetpublic List<DeviceId> devices()
public BasicRegionConfig devices(Set<DeviceId> devices)
devices - the device identifiers, or null to unset