@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DeviceDescription extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
DeviceDescription() |
Modifier and Type | Method and Description |
---|---|
DeviceDescription |
addAttributesEntry(String key,
String value) |
DeviceDescription |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
DeviceDescription |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.
|
String |
getDeviceId()
The unique identifier of the device.
|
Boolean |
getEnabled()
A Boolean value indicating whether or not the device is enabled.
|
Double |
getRemainingLife()
A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.
|
String |
getType()
The type of the device, such as "button".
|
int |
hashCode() |
Boolean |
isEnabled()
A Boolean value indicating whether or not the device is enabled.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttributes(Map<String,String> attributes)
An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.
|
void |
setDeviceId(String deviceId)
The unique identifier of the device.
|
void |
setEnabled(Boolean enabled)
A Boolean value indicating whether or not the device is enabled.
|
void |
setRemainingLife(Double remainingLife)
A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.
|
void |
setType(String type)
The type of the device, such as "button".
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DeviceDescription |
withAttributes(Map<String,String> attributes)
An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.
|
DeviceDescription |
withDeviceId(String deviceId)
The unique identifier of the device.
|
DeviceDescription |
withEnabled(Boolean enabled)
A Boolean value indicating whether or not the device is enabled.
|
DeviceDescription |
withRemainingLife(Double remainingLife)
A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.
|
DeviceDescription |
withType(String type)
The type of the device, such as "button".
|
public Map<String,String> getAttributes()
An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.
public void setAttributes(Map<String,String> attributes)
An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.
attributes
- An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.public DeviceDescription withAttributes(Map<String,String> attributes)
An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.
attributes
- An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.public DeviceDescription addAttributesEntry(String key, String value)
public DeviceDescription clearAttributesEntries()
public void setDeviceId(String deviceId)
The unique identifier of the device.
deviceId
- The unique identifier of the device.public String getDeviceId()
The unique identifier of the device.
public DeviceDescription withDeviceId(String deviceId)
The unique identifier of the device.
deviceId
- The unique identifier of the device.public void setEnabled(Boolean enabled)
A Boolean value indicating whether or not the device is enabled.
enabled
- A Boolean value indicating whether or not the device is enabled.public Boolean getEnabled()
A Boolean value indicating whether or not the device is enabled.
public DeviceDescription withEnabled(Boolean enabled)
A Boolean value indicating whether or not the device is enabled.
enabled
- A Boolean value indicating whether or not the device is enabled.public Boolean isEnabled()
A Boolean value indicating whether or not the device is enabled.
public void setRemainingLife(Double remainingLife)
A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.
remainingLife
- A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.public Double getRemainingLife()
A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.
public DeviceDescription withRemainingLife(Double remainingLife)
A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.
remainingLife
- A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.public void setType(String type)
The type of the device, such as "button".
type
- The type of the device, such as "button".public String getType()
The type of the device, such as "button".
public DeviceDescription withType(String type)
The type of the device, such as "button".
type
- The type of the device, such as "button".public String toString()
toString
in class Object
Object.toString()
public DeviceDescription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.