Interface AssetSummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AssetSummary.Builder,AssetSummary>,SdkBuilder<AssetSummary.Builder,AssetSummary>,SdkPojo
- Enclosing class:
- AssetSummary
public static interface AssetSummary.Builder extends SdkPojo, CopyableBuilder<AssetSummary.Builder,AssetSummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AssetSummary.Builderarn(String arn)The ARN of the asset, which has the following format.AssetSummary.BuilderassetModelId(String assetModelId)The ID of the asset model used to create this asset.AssetSummary.BuildercreationDate(Instant creationDate)The date the asset was created, in Unix epoch time.AssetSummary.Builderdescription(String description)A description for the asset.AssetSummary.Builderhierarchies(Collection<AssetHierarchy> hierarchies)A list of asset hierarchies that each contain ahierarchyId.AssetSummary.Builderhierarchies(Consumer<AssetHierarchy.Builder>... hierarchies)A list of asset hierarchies that each contain ahierarchyId.AssetSummary.Builderhierarchies(AssetHierarchy... hierarchies)A list of asset hierarchies that each contain ahierarchyId.AssetSummary.Builderid(String id)The ID of the asset.AssetSummary.BuilderlastUpdateDate(Instant lastUpdateDate)The date the asset was last updated, in Unix epoch time.AssetSummary.Buildername(String name)The name of the asset.default AssetSummary.Builderstatus(Consumer<AssetStatus.Builder> status)The current status of the asset.AssetSummary.Builderstatus(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 Detail
-
id
AssetSummary.Builder id(String id)
The ID of the asset.
- Parameters:
id- The ID of the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
AssetSummary.Builder arn(String 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
AssetSummary.Builder name(String 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
AssetSummary.Builder assetModelId(String 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
AssetSummary.Builder creationDate(Instant 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
AssetSummary.Builder lastUpdateDate(Instant 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
AssetSummary.Builder status(AssetStatus 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
default AssetSummary.Builder status(Consumer<AssetStatus.Builder> status)
The current status of the asset.
This is a convenience method that creates an instance of theAssetStatus.Builderavoiding the need to create one manually viaAssetStatus.builder().When the
Consumercompletes,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:
status(AssetStatus)
-
hierarchies
AssetSummary.Builder hierarchies(Collection<AssetHierarchy> 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
AssetSummary.Builder hierarchies(AssetHierarchy... 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
AssetSummary.Builder hierarchies(Consumer<AssetHierarchy.Builder>... 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.Builderavoiding the need to create one manually viaAssetHierarchy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#hierarchies(List.) - 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:
#hierarchies(java.util.Collection)
-
description
AssetSummary.Builder description(String 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.
-
-