Interface DescribeAssetResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeAssetResponse.Builder,DescribeAssetResponse>,IoTSiteWiseResponse.Builder,SdkBuilder<DescribeAssetResponse.Builder,DescribeAssetResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DescribeAssetResponse
public static interface DescribeAssetResponse.Builder extends IoTSiteWiseResponse.Builder, SdkPojo, CopyableBuilder<DescribeAssetResponse.Builder,DescribeAssetResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DescribeAssetResponse.BuilderassetArn(String assetArn)The ARN of the asset, which has the following format.DescribeAssetResponse.BuilderassetCompositeModels(Collection<AssetCompositeModel> assetCompositeModels)The composite models for the asset.DescribeAssetResponse.BuilderassetCompositeModels(Consumer<AssetCompositeModel.Builder>... assetCompositeModels)The composite models for the asset.DescribeAssetResponse.BuilderassetCompositeModels(AssetCompositeModel... assetCompositeModels)The composite models for the asset.DescribeAssetResponse.BuilderassetCreationDate(Instant assetCreationDate)The date the asset was created, in Unix epoch time.DescribeAssetResponse.BuilderassetDescription(String assetDescription)A description for the asset.DescribeAssetResponse.BuilderassetHierarchies(Collection<AssetHierarchy> assetHierarchies)A list of asset hierarchies that each contain ahierarchyId.DescribeAssetResponse.BuilderassetHierarchies(Consumer<AssetHierarchy.Builder>... assetHierarchies)A list of asset hierarchies that each contain ahierarchyId.DescribeAssetResponse.BuilderassetHierarchies(AssetHierarchy... assetHierarchies)A list of asset hierarchies that each contain ahierarchyId.DescribeAssetResponse.BuilderassetId(String assetId)The ID of the asset.DescribeAssetResponse.BuilderassetLastUpdateDate(Instant assetLastUpdateDate)The date the asset was last updated, in Unix epoch time.DescribeAssetResponse.BuilderassetModelId(String assetModelId)The ID of the asset model that was used to create the asset.DescribeAssetResponse.BuilderassetName(String assetName)The name of the asset.DescribeAssetResponse.BuilderassetProperties(Collection<AssetProperty> assetProperties)The list of asset properties for the asset.DescribeAssetResponse.BuilderassetProperties(Consumer<AssetProperty.Builder>... assetProperties)The list of asset properties for the asset.DescribeAssetResponse.BuilderassetProperties(AssetProperty... assetProperties)The list of asset properties for the asset.default DescribeAssetResponse.BuilderassetStatus(Consumer<AssetStatus.Builder> assetStatus)The current status of the asset, which contains a state and any error message.DescribeAssetResponse.BuilderassetStatus(AssetStatus assetStatus)The current status of the asset, which contains a state and any error message.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.iotsitewise.model.IoTSiteWiseResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
assetId
DescribeAssetResponse.Builder assetId(String assetId)
The ID of the asset.
- Parameters:
assetId- The ID of the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetArn
DescribeAssetResponse.Builder assetArn(String assetArn)
The ARN of the asset, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}- Parameters:
assetArn- 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.
-
assetName
DescribeAssetResponse.Builder assetName(String assetName)
The name of the asset.
- Parameters:
assetName- The name of the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetModelId
DescribeAssetResponse.Builder assetModelId(String assetModelId)
The ID of the asset model that was used to create the asset.
- Parameters:
assetModelId- The ID of the asset model that was used to create the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetProperties
DescribeAssetResponse.Builder assetProperties(Collection<AssetProperty> assetProperties)
The list of asset properties for the asset.
This object doesn't include properties that you define in composite models. You can find composite model properties in the
assetCompositeModelsobject.- Parameters:
assetProperties- The list of asset properties for the asset.This object doesn't include properties that you define in composite models. You can find composite model properties in the
assetCompositeModelsobject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetProperties
DescribeAssetResponse.Builder assetProperties(AssetProperty... assetProperties)
The list of asset properties for the asset.
This object doesn't include properties that you define in composite models. You can find composite model properties in the
assetCompositeModelsobject.- Parameters:
assetProperties- The list of asset properties for the asset.This object doesn't include properties that you define in composite models. You can find composite model properties in the
assetCompositeModelsobject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetProperties
DescribeAssetResponse.Builder assetProperties(Consumer<AssetProperty.Builder>... assetProperties)
The list of asset properties for the asset.
This object doesn't include properties that you define in composite models. You can find composite model properties in the
This is a convenience method that creates an instance of theassetCompositeModelsobject.AssetProperty.Builderavoiding the need to create one manually viaAssetProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#assetProperties(List.) - Parameters:
assetProperties- a consumer that will call methods onAssetProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#assetProperties(java.util.Collection)
-
assetHierarchies
DescribeAssetResponse.Builder assetHierarchies(Collection<AssetHierarchy> assetHierarchies)
A list of asset hierarchies that each contain a
hierarchyId. A hierarchy specifies allowed parent/child asset relationships.- Parameters:
assetHierarchies- 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.
-
assetHierarchies
DescribeAssetResponse.Builder assetHierarchies(AssetHierarchy... assetHierarchies)
A list of asset hierarchies that each contain a
hierarchyId. A hierarchy specifies allowed parent/child asset relationships.- Parameters:
assetHierarchies- 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.
-
assetHierarchies
DescribeAssetResponse.Builder assetHierarchies(Consumer<AssetHierarchy.Builder>... assetHierarchies)
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#assetHierarchies(List.) - Parameters:
assetHierarchies- 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:
#assetHierarchies(java.util.Collection)
-
assetCompositeModels
DescribeAssetResponse.Builder assetCompositeModels(Collection<AssetCompositeModel> assetCompositeModels)
The composite models for the asset.
- Parameters:
assetCompositeModels- The composite models for the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetCompositeModels
DescribeAssetResponse.Builder assetCompositeModels(AssetCompositeModel... assetCompositeModels)
The composite models for the asset.
- Parameters:
assetCompositeModels- The composite models for the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetCompositeModels
DescribeAssetResponse.Builder assetCompositeModels(Consumer<AssetCompositeModel.Builder>... assetCompositeModels)
The composite models for the asset.
This is a convenience method that creates an instance of theAssetCompositeModel.Builderavoiding the need to create one manually viaAssetCompositeModel.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#assetCompositeModels(List.) - Parameters:
assetCompositeModels- a consumer that will call methods onAssetCompositeModel.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#assetCompositeModels(java.util.Collection)
-
assetCreationDate
DescribeAssetResponse.Builder assetCreationDate(Instant assetCreationDate)
The date the asset was created, in Unix epoch time.
- Parameters:
assetCreationDate- 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.
-
assetLastUpdateDate
DescribeAssetResponse.Builder assetLastUpdateDate(Instant assetLastUpdateDate)
The date the asset was last updated, in Unix epoch time.
- Parameters:
assetLastUpdateDate- 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.
-
assetStatus
DescribeAssetResponse.Builder assetStatus(AssetStatus assetStatus)
The current status of the asset, which contains a state and any error message.
- Parameters:
assetStatus- The current status of the asset, which contains a state and any error message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetStatus
default DescribeAssetResponse.Builder assetStatus(Consumer<AssetStatus.Builder> assetStatus)
The current status of the asset, which contains a state and any error message.
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 toassetStatus(AssetStatus).- Parameters:
assetStatus- 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:
assetStatus(AssetStatus)
-
assetDescription
DescribeAssetResponse.Builder assetDescription(String assetDescription)
A description for the asset.
- Parameters:
assetDescription- A description for the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-