Class CfnAsset.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAsset.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAsset>
- Enclosing class:
CfnAsset
@Stability(Stable)
public static final class CfnAsset.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAsset>
A fluent builder for
CfnAsset
.-
Method Summary
Modifier and TypeMethodDescriptionassetDescription
(String assetDescription) A description for the asset.assetHierarchies
(List<? extends Object> assetHierarchies) A list of asset hierarchies that each contain ahierarchyLogicalId
.assetHierarchies
(IResolvable assetHierarchies) A list of asset hierarchies that each contain ahierarchyLogicalId
.assetModelId
(String assetModelId) The ID of the asset model from which to create the asset.A unique, friendly name for the asset.assetProperties
(List<? extends Object> assetProperties) The list of asset properties for the asset.assetProperties
(IResolvable assetProperties) The list of asset properties for the asset.build()
static CfnAsset.Builder
A list of key-value pairs that contain metadata for the asset.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnAsset.Builder
.
-
assetModelId
The ID of the asset model from which to create the asset.- Parameters:
assetModelId
- The ID of the asset model from which to create the asset. This parameter is required.- Returns:
this
-
assetName
A unique, friendly name for the asset.The maximum length is 256 characters with the pattern
[^\ u0000-\ u001F\ u007F]+
.- Parameters:
assetName
- A unique, friendly name for the asset. This parameter is required.- Returns:
this
-
assetDescription
A description for the asset.- Parameters:
assetDescription
- A description for the asset. This parameter is required.- Returns:
this
-
assetHierarchies
A list of asset hierarchies that each contain ahierarchyLogicalId
.A hierarchy specifies allowed parent/child asset relationships.
- Parameters:
assetHierarchies
- A list of asset hierarchies that each contain ahierarchyLogicalId
. This parameter is required.- Returns:
this
-
assetHierarchies
@Stability(Stable) public CfnAsset.Builder assetHierarchies(List<? extends Object> assetHierarchies) A list of asset hierarchies that each contain ahierarchyLogicalId
.A hierarchy specifies allowed parent/child asset relationships.
- Parameters:
assetHierarchies
- A list of asset hierarchies that each contain ahierarchyLogicalId
. This parameter is required.- Returns:
this
-
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
assetCompositeModels
object.- Parameters:
assetProperties
- The list of asset properties for the asset. This parameter is required.- Returns:
this
-
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
assetCompositeModels
object.- Parameters:
assetProperties
- The list of asset properties for the asset. This parameter is required.- Returns:
this
-
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 .
- Parameters:
tags
- A list of key-value pairs that contain metadata for the asset. This parameter is required.- Returns:
this
-
build
-