Interface AssetSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AssetSummary.Builder,
,AssetSummary> SdkBuilder<AssetSummary.Builder,
,AssetSummary> SdkPojo
- Enclosing class:
AssetSummary
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the asset, which has the following format.assetModelId
(String assetModelId) The ID of the asset model used to create this asset.creationDate
(Instant creationDate) The date the asset was created, in Unix epoch time.description
(String description) A description for the asset.externalId
(String externalId) The external ID of the asset.hierarchies
(Collection<AssetHierarchy> hierarchies) A list of asset hierarchies that each contain ahierarchyId
.hierarchies
(Consumer<AssetHierarchy.Builder>... hierarchies) A list of asset hierarchies that each contain ahierarchyId
.hierarchies
(AssetHierarchy... hierarchies) A list of asset hierarchies that each contain ahierarchyId
.The ID of the asset, in UUID format.lastUpdateDate
(Instant lastUpdateDate) The date the asset was last updated, in Unix epoch time.The name of the asset.default AssetSummary.Builder
status
(Consumer<AssetStatus.Builder> status) The current status of the asset.status
(AssetStatus status) The current status of the asset.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
id
The ID of the asset, in UUID format.
- Parameters:
id
- The ID of the asset, in UUID format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The ARN of the asset, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
- Parameters:
arn
- The ARN of the asset, which has the following format.arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the asset.
- Parameters:
name
- The name of the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetModelId
The ID of the asset model used to create this asset.
- Parameters:
assetModelId
- The ID of the asset model used to create this asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDate
The date the asset was created, in Unix epoch time.
- Parameters:
creationDate
- The date the asset was created, in Unix epoch time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdateDate
The date the asset was last updated, in Unix epoch time.
- Parameters:
lastUpdateDate
- The date the asset was last updated, in Unix epoch time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the asset.
- Parameters:
status
- The current status of the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the asset.
This is a convenience method that creates an instance of theAssetStatus.Builder
avoiding the need to create one manually viaAssetStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(AssetStatus)
.- Parameters:
status
- a consumer that will call methods onAssetStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hierarchies
A list of asset hierarchies that each contain a
hierarchyId
. A hierarchy specifies allowed parent/child asset relationships.- Parameters:
hierarchies
- A list of asset hierarchies that each contain ahierarchyId
. A hierarchy specifies allowed parent/child asset relationships.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hierarchies
A list of asset hierarchies that each contain a
hierarchyId
. A hierarchy specifies allowed parent/child asset relationships.- Parameters:
hierarchies
- A list of asset hierarchies that each contain ahierarchyId
. A hierarchy specifies allowed parent/child asset relationships.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hierarchies
A list of asset hierarchies that each contain a
This is a convenience method that creates an instance of thehierarchyId
. A hierarchy specifies allowed parent/child asset relationships.AssetHierarchy.Builder
avoiding the need to create one manually viaAssetHierarchy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohierarchies(List<AssetHierarchy>)
.- Parameters:
hierarchies
- a consumer that will call methods onAssetHierarchy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A description for the asset.
- Parameters:
description
- A description for the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalId
The external ID of the asset. For more information, see Using external IDs in the IoT SiteWise User Guide.
- Parameters:
externalId
- The external ID of the asset. For more information, see Using external IDs in the IoT SiteWise User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-