public static enum Device.Field extends java.lang.Enum<Device.Field>
Enum Constant and Description |
---|
CONNECTIVITY_STATUS
Connection status of the device.
|
CREATED
Date and time the endpoint was created as a String in ISO-8601
time format.
|
DESCRIPTION
Optional free form text describing the device.
|
DEVICE_MODELS
A list of device models
|
DEVICE_UID
A string representing the device unique identifier.
|
DIRECTLY_CONNECTED_OWNER
For endpoints which are not themselves directly connected to the IoT
network, this points to the endpoint which is handling
communications on their behalf.
|
ENABLED
true if the device is currently enabled. |
HARDWARE_REVISION
A string representing the hardware revision.
|
ID
A unique value identifying the device
|
LAST_HEARD_TIME
Last time the device sent a message.
|
LOCATION
The device location.
|
MANUFACTURER
A string (generally an OUI) describing the manufacturer of the
device.
|
METADATA
Additional user-defined key / value pairs describing the endpoint.
|
MODEL_NUMBER
A string representing the specific model of the device.
|
NAME
The device name.
|
SERIAL_NUMBER
A string (which should be unique across all devices of this
modelNumber / manufacturer) uniquely identifying the specific device.
|
SOFTWARE_REVISION
A string representing the software revision.
|
SOFTWARE_VERSION
A string representing the software version.
|
STATE
The device state.
|
TYPE
The device type
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
alias()
Get the alias of this
Field . |
static java.util.Set<Device.Field> |
all()
Get a new
Set initialized with all possible Field values. |
static Device.Field |
fromAlias(java.lang.String alias)
Get the
Field instance associated with the specified alias. |
static Device.Field |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Device.Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Device.Field ID
public static final Device.Field DEVICE_UID
public static final Device.Field TYPE
public static final Device.Field DESCRIPTION
public static final Device.Field CREATED
public static final Device.Field STATE
public static final Device.Field NAME
public static final Device.Field MANUFACTURER
public static final Device.Field MODEL_NUMBER
public static final Device.Field SERIAL_NUMBER
public static final Device.Field HARDWARE_REVISION
public static final Device.Field SOFTWARE_REVISION
public static final Device.Field SOFTWARE_VERSION
public static final Device.Field ENABLED
true
if the device is currently enabled.public static final Device.Field CONNECTIVITY_STATUS
public static final Device.Field LAST_HEARD_TIME
public static final Device.Field DEVICE_MODELS
public static final Device.Field METADATA
public static final Device.Field LOCATION
public static final Device.Field DIRECTLY_CONNECTED_OWNER
public static Device.Field[] values()
for (Device.Field c : Device.Field.values()) System.out.println(c);
public static Device.Field valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Device.Field fromAlias(java.lang.String alias)
Field
instance associated with the specified alias.
The String must match exactly, including case.alias
- the alias to look forpublic static java.util.Set<Device.Field> all()
Set
initialized with all possible Field
values.Set
of all possible Field
values.public java.lang.String alias()
Field
. The alias is the name the
server uses for the field.Field
.