Class CfnAssetProps.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAssetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetProps>
- Enclosing interface:
CfnAssetProps
@Stability(Stable)
public static final class CfnAssetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetProps>
A builder for
CfnAssetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassetDescription
(String assetDescription) Sets the value ofCfnAssetProps.getAssetDescription()
assetExternalId
(String assetExternalId) Sets the value ofCfnAssetProps.getAssetExternalId()
assetHierarchies
(List<? extends Object> assetHierarchies) Sets the value ofCfnAssetProps.getAssetHierarchies()
assetHierarchies
(IResolvable assetHierarchies) Sets the value ofCfnAssetProps.getAssetHierarchies()
assetModelId
(String assetModelId) Sets the value ofCfnAssetProps.getAssetModelId()
Sets the value ofCfnAssetProps.getAssetName()
assetProperties
(List<? extends Object> assetProperties) Sets the value ofCfnAssetProps.getAssetProperties()
assetProperties
(IResolvable assetProperties) Sets the value ofCfnAssetProps.getAssetProperties()
build()
Builds the configured instance.Sets the value ofCfnAssetProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assetModelId
Sets the value ofCfnAssetProps.getAssetModelId()
- Parameters:
assetModelId
- The ID of the asset model from which to create the asset. This parameter is required. This can be either the actual ID in UUID format, or elseexternalId:
followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the AWS IoT SiteWise User Guide .- Returns:
this
-
assetName
Sets the value ofCfnAssetProps.getAssetName()
- Parameters:
assetName
- A friendly name for the asset. This parameter is required.- Returns:
this
-
assetDescription
Sets the value ofCfnAssetProps.getAssetDescription()
- Parameters:
assetDescription
- The ID of the asset, in UUID format.- Returns:
this
-
assetExternalId
Sets the value ofCfnAssetProps.getAssetExternalId()
- Parameters:
assetExternalId
- The external ID of the asset model composite model. For more information, see Using external IDs in the AWS IoT SiteWise User Guide .- Returns:
this
-
assetHierarchies
Sets the value ofCfnAssetProps.getAssetHierarchies()
- Parameters:
assetHierarchies
- A list of asset hierarchies that each contain ahierarchyId
. A hierarchy specifies allowed parent/child asset relationships.- Returns:
this
-
assetHierarchies
@Stability(Stable) public CfnAssetProps.Builder assetHierarchies(List<? extends Object> assetHierarchies) Sets the value ofCfnAssetProps.getAssetHierarchies()
- Parameters:
assetHierarchies
- A list of asset hierarchies that each contain ahierarchyId
. A hierarchy specifies allowed parent/child asset relationships.- Returns:
this
-
assetProperties
Sets the value ofCfnAssetProps.getAssetProperties()
- 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 theassetCompositeModels
object.- Returns:
this
-
assetProperties
@Stability(Stable) public CfnAssetProps.Builder assetProperties(List<? extends Object> assetProperties) Sets the value ofCfnAssetProps.getAssetProperties()
- 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 theassetCompositeModels
object.- Returns:
this
-
tags
Sets the value ofCfnAssetProps.getTags()
- Parameters:
tags
- A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAssetProps>
- Returns:
- a new instance of
CfnAssetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-