Class CfnAsset.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAsset>
- Enclosing class:
CfnAsset
CfnAsset
.-
Method Summary
Modifier and TypeMethodDescriptionassetDescription
(String assetDescription) The ID of the asset, in UUID format.assetExternalId
(String assetExternalId) The external ID of the asset model composite model.assetHierarchies
(List<? extends Object> assetHierarchies) A list of asset hierarchies that each contain ahierarchyId
.assetHierarchies
(IResolvable assetHierarchies) A list of asset hierarchies that each contain ahierarchyId
.assetModelId
(String assetModelId) The ID of the asset model from which to create the asset.A 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
@Stability(Stable) public static CfnAsset.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnAsset.Builder
.
-
assetModelId
The ID of the asset model from which to create the asset.This can be either the actual ID in UUID format, or else
externalId:
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 .- Parameters:
assetModelId
- The ID of the asset model from which to create the asset. This parameter is required.- Returns:
this
- See Also:
-
assetName
A friendly name for the asset.- Parameters:
assetName
- A friendly name for the asset. This parameter is required.- Returns:
this
- See Also:
-
assetDescription
The ID of the asset, in UUID format.- Parameters:
assetDescription
- The ID of the asset, in UUID format. This parameter is required.- Returns:
this
- See Also:
-
assetExternalId
The external ID of the asset model composite model.For more information, see Using external IDs in the AWS IoT SiteWise User Guide .
- Parameters:
assetExternalId
- The external ID of the asset model composite model. This parameter is required.- Returns:
this
- See Also:
-
assetHierarchies
A list of asset hierarchies that each contain ahierarchyId
.A hierarchy specifies allowed parent/child asset relationships.
- Parameters:
assetHierarchies
- A list of asset hierarchies that each contain ahierarchyId
. This parameter is required.- Returns:
this
- See Also:
-
assetHierarchies
@Stability(Stable) public CfnAsset.Builder assetHierarchies(List<? extends Object> assetHierarchies) A list of asset hierarchies that each contain ahierarchyId
.A hierarchy specifies allowed parent/child asset relationships.
- Parameters:
assetHierarchies
- A list of asset hierarchies that each contain ahierarchyId
. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
build
-