@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Device extends Object implements Serializable, Cloneable, StructuredPojo
A device.
Constructor and Description |
---|
Device() |
Modifier and Type | Method and Description |
---|---|
Device |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
Device |
clearTagsEntries()
Removes all the entries added into Tags.
|
Device |
clone() |
boolean |
equals(Object obj) |
String |
getBrand()
The device's maker.
|
Date |
getCreatedTime()
When the device was created.
|
String |
getCurrentSoftware()
A device's current software.
|
String |
getDescription()
A description for the device.
|
String |
getDeviceAggregatedStatus()
A device's aggregated status.
|
String |
getDeviceId()
The device's ID.
|
Date |
getLastUpdatedTime()
When the device was updated.
|
LatestDeviceJob |
getLatestDeviceJob()
A device's latest job.
|
Date |
getLeaseExpirationTime()
The device's lease expiration time.
|
String |
getName()
The device's name.
|
String |
getProvisioningStatus()
The device's provisioning status.
|
Map<String,String> |
getTags()
The device's tags.
|
String |
getType()
The device's type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBrand(String brand)
The device's maker.
|
void |
setCreatedTime(Date createdTime)
When the device was created.
|
void |
setCurrentSoftware(String currentSoftware)
A device's current software.
|
void |
setDescription(String description)
A description for the device.
|
void |
setDeviceAggregatedStatus(String deviceAggregatedStatus)
A device's aggregated status.
|
void |
setDeviceId(String deviceId)
The device's ID.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
When the device was updated.
|
void |
setLatestDeviceJob(LatestDeviceJob latestDeviceJob)
A device's latest job.
|
void |
setLeaseExpirationTime(Date leaseExpirationTime)
The device's lease expiration time.
|
void |
setName(String name)
The device's name.
|
void |
setProvisioningStatus(String provisioningStatus)
The device's provisioning status.
|
void |
setTags(Map<String,String> tags)
The device's tags.
|
void |
setType(String type)
The device's type.
|
String |
toString()
Returns a string representation of this object.
|
Device |
withBrand(DeviceBrand brand)
The device's maker.
|
Device |
withBrand(String brand)
The device's maker.
|
Device |
withCreatedTime(Date createdTime)
When the device was created.
|
Device |
withCurrentSoftware(String currentSoftware)
A device's current software.
|
Device |
withDescription(String description)
A description for the device.
|
Device |
withDeviceAggregatedStatus(DeviceAggregatedStatus deviceAggregatedStatus)
A device's aggregated status.
|
Device |
withDeviceAggregatedStatus(String deviceAggregatedStatus)
A device's aggregated status.
|
Device |
withDeviceId(String deviceId)
The device's ID.
|
Device |
withLastUpdatedTime(Date lastUpdatedTime)
When the device was updated.
|
Device |
withLatestDeviceJob(LatestDeviceJob latestDeviceJob)
A device's latest job.
|
Device |
withLeaseExpirationTime(Date leaseExpirationTime)
The device's lease expiration time.
|
Device |
withName(String name)
The device's name.
|
Device |
withProvisioningStatus(DeviceStatus provisioningStatus)
The device's provisioning status.
|
Device |
withProvisioningStatus(String provisioningStatus)
The device's provisioning status.
|
Device |
withTags(Map<String,String> tags)
The device's tags.
|
Device |
withType(DeviceType type)
The device's type.
|
Device |
withType(String type)
The device's type.
|
public void setBrand(String brand)
The device's maker.
brand
- The device's maker.DeviceBrand
public String getBrand()
The device's maker.
DeviceBrand
public Device withBrand(String brand)
The device's maker.
brand
- The device's maker.DeviceBrand
public Device withBrand(DeviceBrand brand)
The device's maker.
brand
- The device's maker.DeviceBrand
public void setCreatedTime(Date createdTime)
When the device was created.
createdTime
- When the device was created.public Date getCreatedTime()
When the device was created.
public Device withCreatedTime(Date createdTime)
When the device was created.
createdTime
- When the device was created.public void setCurrentSoftware(String currentSoftware)
A device's current software.
currentSoftware
- A device's current software.public String getCurrentSoftware()
A device's current software.
public Device withCurrentSoftware(String currentSoftware)
A device's current software.
currentSoftware
- A device's current software.public void setDescription(String description)
A description for the device.
description
- A description for the device.public String getDescription()
A description for the device.
public Device withDescription(String description)
A description for the device.
description
- A description for the device.public void setDeviceAggregatedStatus(String deviceAggregatedStatus)
A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
deviceAggregatedStatus
- A device's aggregated status. Including the device's connection status, provisioning status, and lease
status.DeviceAggregatedStatus
public String getDeviceAggregatedStatus()
A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
DeviceAggregatedStatus
public Device withDeviceAggregatedStatus(String deviceAggregatedStatus)
A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
deviceAggregatedStatus
- A device's aggregated status. Including the device's connection status, provisioning status, and lease
status.DeviceAggregatedStatus
public Device withDeviceAggregatedStatus(DeviceAggregatedStatus deviceAggregatedStatus)
A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
deviceAggregatedStatus
- A device's aggregated status. Including the device's connection status, provisioning status, and lease
status.DeviceAggregatedStatus
public void setDeviceId(String deviceId)
The device's ID.
deviceId
- The device's ID.public String getDeviceId()
The device's ID.
public Device withDeviceId(String deviceId)
The device's ID.
deviceId
- The device's ID.public void setLastUpdatedTime(Date lastUpdatedTime)
When the device was updated.
lastUpdatedTime
- When the device was updated.public Date getLastUpdatedTime()
When the device was updated.
public Device withLastUpdatedTime(Date lastUpdatedTime)
When the device was updated.
lastUpdatedTime
- When the device was updated.public void setLatestDeviceJob(LatestDeviceJob latestDeviceJob)
A device's latest job. Includes the target image version, and the update job status.
latestDeviceJob
- A device's latest job. Includes the target image version, and the update job status.public LatestDeviceJob getLatestDeviceJob()
A device's latest job. Includes the target image version, and the update job status.
public Device withLatestDeviceJob(LatestDeviceJob latestDeviceJob)
A device's latest job. Includes the target image version, and the update job status.
latestDeviceJob
- A device's latest job. Includes the target image version, and the update job status.public void setLeaseExpirationTime(Date leaseExpirationTime)
The device's lease expiration time.
leaseExpirationTime
- The device's lease expiration time.public Date getLeaseExpirationTime()
The device's lease expiration time.
public Device withLeaseExpirationTime(Date leaseExpirationTime)
The device's lease expiration time.
leaseExpirationTime
- The device's lease expiration time.public void setName(String name)
The device's name.
name
- The device's name.public String getName()
The device's name.
public Device withName(String name)
The device's name.
name
- The device's name.public void setProvisioningStatus(String provisioningStatus)
The device's provisioning status.
provisioningStatus
- The device's provisioning status.DeviceStatus
public String getProvisioningStatus()
The device's provisioning status.
DeviceStatus
public Device withProvisioningStatus(String provisioningStatus)
The device's provisioning status.
provisioningStatus
- The device's provisioning status.DeviceStatus
public Device withProvisioningStatus(DeviceStatus provisioningStatus)
The device's provisioning status.
provisioningStatus
- The device's provisioning status.DeviceStatus
public void setTags(Map<String,String> tags)
The device's tags.
tags
- The device's tags.public Device withTags(Map<String,String> tags)
The device's tags.
tags
- The device's tags.public Device clearTagsEntries()
public void setType(String type)
The device's type.
type
- The device's type.DeviceType
public String getType()
The device's type.
DeviceType
public Device withType(String type)
The device's type.
type
- The device's type.DeviceType
public Device withType(DeviceType type)
The device's type.
type
- The device's type.DeviceType
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.