@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)
Add a single Attributes entry
|
DeviceDescription |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
DeviceDescription |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
DeviceDescription |
clearTagsEntries()
Removes all the entries added into Tags.
|
DeviceDescription |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the device.
|
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.
|
Map<String,String> |
getTags()
The tags currently associated with the AWS IoT 1-Click 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 |
setArn(String arn)
The ARN of the device.
|
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 |
setTags(Map<String,String> tags)
The tags currently associated with the AWS IoT 1-Click device.
|
void |
setType(String type)
The type of the device, such as "button".
|
String |
toString()
Returns a string representation of this object.
|
DeviceDescription |
withArn(String arn)
The ARN of the device.
|
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 |
withTags(Map<String,String> tags)
The tags currently associated with the AWS IoT 1-Click device.
|
DeviceDescription |
withType(String type)
The type of the device, such as "button".
|
public void setArn(String arn)
The ARN of the device.
arn
- The ARN of the device.public String getArn()
The ARN of the device.
public DeviceDescription withArn(String arn)
The ARN of the device.
arn
- The ARN of the device.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 Map<String,String> getTags()
The tags currently associated with the AWS IoT 1-Click device.
public void setTags(Map<String,String> tags)
The tags currently associated with the AWS IoT 1-Click device.
tags
- The tags currently associated with the AWS IoT 1-Click device.public DeviceDescription withTags(Map<String,String> tags)
The tags currently associated with the AWS IoT 1-Click device.
tags
- The tags currently associated with the AWS IoT 1-Click device.public DeviceDescription addTagsEntry(String key, String value)
public DeviceDescription clearTagsEntries()
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.