@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssociatedAssetsSummary extends Object implements Serializable, Cloneable, StructuredPojo
Contains a summary of an associated asset.
Constructor and Description |
---|
AssociatedAssetsSummary() |
Modifier and Type | Method and Description |
---|---|
AssociatedAssetsSummary |
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 the asset.
|
Date |
getCreationDate()
The date the asset was created, in Unix epoch time.
|
String |
getDescription()
A description for the asset.
|
String |
getExternalId()
The external ID of the asset.
|
List<AssetHierarchy> |
getHierarchies()
A list of asset hierarchies that each contain a
hierarchyId . |
String |
getId()
The ID of the asset, in UUID format.
|
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 the asset.
|
void |
setCreationDate(Date creationDate)
The date the asset was created, in Unix epoch time.
|
void |
setDescription(String description)
A description for the asset.
|
void |
setExternalId(String externalId)
The external ID of the asset.
|
void |
setHierarchies(Collection<AssetHierarchy> hierarchies)
A list of asset hierarchies that each contain a
hierarchyId . |
void |
setId(String id)
The ID of the asset, in UUID format.
|
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.
|
AssociatedAssetsSummary |
withArn(String arn)
The ARN of the asset,
which has the following format.
|
AssociatedAssetsSummary |
withAssetModelId(String assetModelId)
The ID of the asset model used to create the asset.
|
AssociatedAssetsSummary |
withCreationDate(Date creationDate)
The date the asset was created, in Unix epoch time.
|
AssociatedAssetsSummary |
withDescription(String description)
A description for the asset.
|
AssociatedAssetsSummary |
withExternalId(String externalId)
The external ID of the asset.
|
AssociatedAssetsSummary |
withHierarchies(AssetHierarchy... hierarchies)
A list of asset hierarchies that each contain a
hierarchyId . |
AssociatedAssetsSummary |
withHierarchies(Collection<AssetHierarchy> hierarchies)
A list of asset hierarchies that each contain a
hierarchyId . |
AssociatedAssetsSummary |
withId(String id)
The ID of the asset, in UUID format.
|
AssociatedAssetsSummary |
withLastUpdateDate(Date lastUpdateDate)
The date the asset was last updated, in Unix epoch time.
|
AssociatedAssetsSummary |
withName(String name)
The name of the asset.
|
AssociatedAssetsSummary |
withStatus(AssetStatus status)
The current status of the asset.
|
public void setId(String id)
The ID of the asset, in UUID format.
id
- The ID of the asset, in UUID format.public String getId()
The ID of the asset, in UUID format.
public AssociatedAssetsSummary withId(String id)
The ID of the asset, in UUID format.
id
- The ID of the asset, in UUID format.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 AssociatedAssetsSummary 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 AssociatedAssetsSummary 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 the asset.
assetModelId
- The ID of the asset model used to create the asset.public String getAssetModelId()
The ID of the asset model used to create the asset.
public AssociatedAssetsSummary withAssetModelId(String assetModelId)
The ID of the asset model used to create the asset.
assetModelId
- The ID of the asset model used to create the 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 AssociatedAssetsSummary 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 AssociatedAssetsSummary 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 AssociatedAssetsSummary 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 AssociatedAssetsSummary 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 AssociatedAssetsSummary 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 void setDescription(String description)
A description for the asset.
description
- A description for the asset.public String getDescription()
A description for the asset.
public AssociatedAssetsSummary withDescription(String description)
A description for the asset.
description
- A description for the asset.public void setExternalId(String externalId)
The external ID of the asset. For more information, see Using external IDs in the IoT SiteWise User Guide.
externalId
- The external ID of the asset. For more information, see Using
external IDs in the IoT SiteWise User Guide.public String getExternalId()
The external ID of the asset. For more information, see Using external IDs in the IoT SiteWise User Guide.
public AssociatedAssetsSummary withExternalId(String externalId)
The external ID of the asset. For more information, see Using external IDs in the IoT SiteWise User Guide.
externalId
- The external ID of the asset. For more information, see Using
external IDs in the IoT SiteWise User Guide.public String toString()
toString
in class Object
Object.toString()
public AssociatedAssetsSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.