Class CfnAssetModel.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetModel>
- Enclosing class:
CfnAssetModel
CfnAssetModel
.-
Method Summary
Modifier and TypeMethodDescriptionassetModelCompositeModels
(List<? extends Object> assetModelCompositeModels) The composite models that are part of this asset model.assetModelCompositeModels
(IResolvable assetModelCompositeModels) The composite models that are part of this asset model.assetModelDescription
(String assetModelDescription) A description for the asset model.assetModelExternalId
(String assetModelExternalId) The external ID of the asset model.assetModelHierarchies
(List<? extends Object> assetModelHierarchies) The hierarchy definitions of the asset model.assetModelHierarchies
(IResolvable assetModelHierarchies) The hierarchy definitions of the asset model.assetModelName
(String assetModelName) A unique name for the asset model.assetModelProperties
(List<? extends Object> assetModelProperties) The property definitions of the asset model.assetModelProperties
(IResolvable assetModelProperties) The property definitions of the asset model.assetModelType
(String assetModelType) The type of asset model.build()
static CfnAssetModel.Builder
A list of key-value pairs that contain metadata for the asset.
-
Method Details
-
create
@Stability(Stable) public static CfnAssetModel.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
CfnAssetModel.Builder
.
-
assetModelName
A unique name for the asset model.- Parameters:
assetModelName
- A unique name for the asset model. This parameter is required.- Returns:
this
- See Also:
-
assetModelCompositeModels
@Stability(Stable) public CfnAssetModel.Builder assetModelCompositeModels(IResolvable assetModelCompositeModels) The composite models that are part of this asset model.It groups properties (such as attributes, measurements, transforms, and metrics) and child composite models that model parts of your industrial equipment. Each composite model has a type that defines the properties that the composite model supports. Use composite models to define alarms on this asset model.
When creating custom composite models, you need to use CreateAssetModelCompositeModel . For more information, see Creating custom composite models (Components) in the AWS IoT SiteWise User Guide .
- Parameters:
assetModelCompositeModels
- The composite models that are part of this asset model. This parameter is required.- Returns:
this
- See Also:
-
assetModelCompositeModels
@Stability(Stable) public CfnAssetModel.Builder assetModelCompositeModels(List<? extends Object> assetModelCompositeModels) The composite models that are part of this asset model.It groups properties (such as attributes, measurements, transforms, and metrics) and child composite models that model parts of your industrial equipment. Each composite model has a type that defines the properties that the composite model supports. Use composite models to define alarms on this asset model.
When creating custom composite models, you need to use CreateAssetModelCompositeModel . For more information, see Creating custom composite models (Components) in the AWS IoT SiteWise User Guide .
- Parameters:
assetModelCompositeModels
- The composite models that are part of this asset model. This parameter is required.- Returns:
this
- See Also:
-
assetModelDescription
A description for the asset model.- Parameters:
assetModelDescription
- A description for the asset model. This parameter is required.- Returns:
this
- See Also:
-
assetModelExternalId
The external ID of the asset model.For more information, see Using external IDs in the AWS IoT SiteWise User Guide .
- Parameters:
assetModelExternalId
- The external ID of the asset model. This parameter is required.- Returns:
this
- See Also:
-
assetModelHierarchies
@Stability(Stable) public CfnAssetModel.Builder assetModelHierarchies(IResolvable assetModelHierarchies) The hierarchy definitions of the asset model.Each hierarchy specifies an asset model whose assets can be children of any other assets created from this asset model. For more information, see Asset hierarchies in the AWS IoT SiteWise User Guide .
You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide .
- Parameters:
assetModelHierarchies
- The hierarchy definitions of the asset model. This parameter is required.- Returns:
this
- See Also:
-
assetModelHierarchies
@Stability(Stable) public CfnAssetModel.Builder assetModelHierarchies(List<? extends Object> assetModelHierarchies) The hierarchy definitions of the asset model.Each hierarchy specifies an asset model whose assets can be children of any other assets created from this asset model. For more information, see Asset hierarchies in the AWS IoT SiteWise User Guide .
You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide .
- Parameters:
assetModelHierarchies
- The hierarchy definitions of the asset model. This parameter is required.- Returns:
this
- See Also:
-
assetModelProperties
@Stability(Stable) public CfnAssetModel.Builder assetModelProperties(IResolvable assetModelProperties) The property definitions of the asset model.For more information, see Asset properties in the AWS IoT SiteWise User Guide .
You can specify up to 200 properties per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide .
- Parameters:
assetModelProperties
- The property definitions of the asset model. This parameter is required.- Returns:
this
- See Also:
-
assetModelProperties
@Stability(Stable) public CfnAssetModel.Builder assetModelProperties(List<? extends Object> assetModelProperties) The property definitions of the asset model.For more information, see Asset properties in the AWS IoT SiteWise User Guide .
You can specify up to 200 properties per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide .
- Parameters:
assetModelProperties
- The property definitions of the asset model. This parameter is required.- Returns:
this
- See Also:
-
assetModelType
The type of asset model.- ASSET_MODEL – (default) An asset model that you can use to create assets. Can't be included as a component in another asset model.
- COMPONENT_MODEL – A reusable component that you can include in the composite models of other asset models. You can't create assets directly from this type of asset model.
- Parameters:
assetModelType
- The type of asset model. 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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAssetModel>
- Returns:
- a newly built instance of
CfnAssetModel
.
-