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 asset models that are part of this asset model.assetModelCompositeModels
(IResolvable assetModelCompositeModels) The composite asset models that are part of this asset model.assetModelDescription
(String assetModelDescription) A description for 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, friendly 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.build()
static CfnAssetModel.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
CfnAssetModel.Builder
.
-
assetModelName
A unique, friendly name for the asset model.The maximum length is 256 characters with the pattern
[^\ u0000-\ u001F\ u007F]+
.- Parameters:
assetModelName
- A unique, friendly name for the asset model. This parameter is required.- Returns:
this
-
assetModelCompositeModels
@Stability(Stable) public CfnAssetModel.Builder assetModelCompositeModels(IResolvable assetModelCompositeModels) The composite asset models that are part of this asset model.Composite asset models are asset models that contain specific properties. Each composite model has a type that defines the properties that the composite model supports. You can use composite asset models to define alarms on this asset model.
- Parameters:
assetModelCompositeModels
- The composite asset models that are part of this asset model. This parameter is required.- Returns:
this
-
assetModelCompositeModels
@Stability(Stable) public CfnAssetModel.Builder assetModelCompositeModels(List<? extends Object> assetModelCompositeModels) The composite asset models that are part of this asset model.Composite asset models are asset models that contain specific properties. Each composite model has a type that defines the properties that the composite model supports. You can use composite asset models to define alarms on this asset model.
- Parameters:
assetModelCompositeModels
- The composite asset models that are part of this asset model. This parameter is required.- Returns:
this
-
assetModelDescription
A description for the asset model.- Parameters:
assetModelDescription
- A description for the asset model. This parameter is required.- Returns:
this
-
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 Defining relationships between assets 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
-
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 Defining relationships between assets 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
-
assetModelProperties
@Stability(Stable) public CfnAssetModel.Builder assetModelProperties(IResolvable assetModelProperties) The property definitions of the asset model.For more information, see Defining data 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
-
assetModelProperties
@Stability(Stable) public CfnAssetModel.Builder assetModelProperties(List<? extends Object> assetModelProperties) The property definitions of the asset model.For more information, see Defining data 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
-
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAssetModel>
- Returns:
- a newly built instance of
CfnAssetModel
.
-