@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssetSummary extends Object implements Serializable, Cloneable, StructuredPojo
Contains a summary of an asset.
Constructor and Description |
---|
AssetSummary() |
Modifier and Type | Method and Description |
---|---|
AssetSummary |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the asset,
which has the following format.
|
String |
getAssetModelId()
The ID of the asset model used to create this asset.
|
Date |
getCreationDate()
The date the asset was created, in Unix epoch time.
|
List<AssetHierarchy> |
getHierarchies()
A list of asset hierarchies that each contain a
hierarchyId . |
String |
getId()
The ID of the asset.
|
Date |
getLastUpdateDate()
The date the asset was last updated, in Unix epoch time.
|
String |
getName()
The name of the asset.
|
AssetStatus |
getStatus()
The current status of the asset.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN of the asset,
which has the following format.
|
void |
setAssetModelId(String assetModelId)
The ID of the asset model used to create this asset.
|
void |
setCreationDate(Date creationDate)
The date the asset was created, in Unix epoch time.
|
void |
setHierarchies(Collection<AssetHierarchy> hierarchies)
A list of asset hierarchies that each contain a
hierarchyId . |
void |
setId(String id)
The ID of the asset.
|
void |
setLastUpdateDate(Date lastUpdateDate)
The date the asset was last updated, in Unix epoch time.
|
void |
setName(String name)
The name of the asset.
|
void |
setStatus(AssetStatus status)
The current status of the asset.
|
String |
toString()
Returns a string representation of this object.
|
AssetSummary |
withArn(String arn)
The ARN of the asset,
which has the following format.
|
AssetSummary |
withAssetModelId(String assetModelId)
The ID of the asset model used to create this asset.
|
AssetSummary |
withCreationDate(Date creationDate)
The date the asset was created, in Unix epoch time.
|
AssetSummary |
withHierarchies(AssetHierarchy... hierarchies)
A list of asset hierarchies that each contain a
hierarchyId . |
AssetSummary |
withHierarchies(Collection<AssetHierarchy> hierarchies)
A list of asset hierarchies that each contain a
hierarchyId . |
AssetSummary |
withId(String id)
The ID of the asset.
|
AssetSummary |
withLastUpdateDate(Date lastUpdateDate)
The date the asset was last updated, in Unix epoch time.
|
AssetSummary |
withName(String name)
The name of the asset.
|
AssetSummary |
withStatus(AssetStatus status)
The current status of the asset.
|
public void setId(String id)
The ID of the asset.
id
- The ID of the asset.public String getId()
The ID of the asset.
public AssetSummary withId(String id)
The ID of the asset.
id
- The ID of the asset.public void setArn(String arn)
The ARN of the asset, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
arn
- The ARN of the
asset, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
public String getArn()
The ARN of the asset, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
public AssetSummary withArn(String arn)
The ARN of the asset, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
arn
- The ARN of the
asset, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
public void setName(String name)
The name of the asset.
name
- The name of the asset.public String getName()
The name of the asset.
public AssetSummary withName(String name)
The name of the asset.
name
- The name of the asset.public void setAssetModelId(String assetModelId)
The ID of the asset model used to create this asset.
assetModelId
- The ID of the asset model used to create this asset.public String getAssetModelId()
The ID of the asset model used to create this asset.
public AssetSummary withAssetModelId(String assetModelId)
The ID of the asset model used to create this asset.
assetModelId
- The ID of the asset model used to create this asset.public void setCreationDate(Date creationDate)
The date the asset was created, in Unix epoch time.
creationDate
- The date the asset was created, in Unix epoch time.public Date getCreationDate()
The date the asset was created, in Unix epoch time.
public AssetSummary withCreationDate(Date creationDate)
The date the asset was created, in Unix epoch time.
creationDate
- The date the asset was created, in Unix epoch time.public void setLastUpdateDate(Date lastUpdateDate)
The date the asset was last updated, in Unix epoch time.
lastUpdateDate
- The date the asset was last updated, in Unix epoch time.public Date getLastUpdateDate()
The date the asset was last updated, in Unix epoch time.
public AssetSummary withLastUpdateDate(Date lastUpdateDate)
The date the asset was last updated, in Unix epoch time.
lastUpdateDate
- The date the asset was last updated, in Unix epoch time.public void setStatus(AssetStatus status)
The current status of the asset.
status
- The current status of the asset.public AssetStatus getStatus()
The current status of the asset.
public AssetSummary withStatus(AssetStatus status)
The current status of the asset.
status
- The current status of the asset.public List<AssetHierarchy> getHierarchies()
A list of asset hierarchies that each contain a hierarchyId
. A hierarchy specifies allowed
parent/child asset relationships.
hierarchyId
. A hierarchy specifies allowed
parent/child asset relationships.public void setHierarchies(Collection<AssetHierarchy> hierarchies)
A list of asset hierarchies that each contain a hierarchyId
. A hierarchy specifies allowed
parent/child asset relationships.
hierarchies
- A list of asset hierarchies that each contain a hierarchyId
. A hierarchy specifies allowed
parent/child asset relationships.public AssetSummary withHierarchies(AssetHierarchy... hierarchies)
A list of asset hierarchies that each contain a hierarchyId
. A hierarchy specifies allowed
parent/child asset relationships.
NOTE: This method appends the values to the existing list (if any). Use
setHierarchies(java.util.Collection)
or withHierarchies(java.util.Collection)
if you want to
override the existing values.
hierarchies
- A list of asset hierarchies that each contain a hierarchyId
. A hierarchy specifies allowed
parent/child asset relationships.public AssetSummary withHierarchies(Collection<AssetHierarchy> hierarchies)
A list of asset hierarchies that each contain a hierarchyId
. A hierarchy specifies allowed
parent/child asset relationships.
hierarchies
- A list of asset hierarchies that each contain a hierarchyId
. A hierarchy specifies allowed
parent/child asset relationships.public String toString()
toString
in class Object
Object.toString()
public AssetSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.