Class CfnAssetModelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetModelProps>
- Enclosing interface:
CfnAssetModelProps
CfnAssetModelProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassetModelCompositeModels
(List<? extends Object> assetModelCompositeModels) Sets the value ofCfnAssetModelProps.getAssetModelCompositeModels()
assetModelCompositeModels
(IResolvable assetModelCompositeModels) Sets the value ofCfnAssetModelProps.getAssetModelCompositeModels()
assetModelDescription
(String assetModelDescription) Sets the value ofCfnAssetModelProps.getAssetModelDescription()
assetModelExternalId
(String assetModelExternalId) Sets the value ofCfnAssetModelProps.getAssetModelExternalId()
assetModelHierarchies
(List<? extends Object> assetModelHierarchies) Sets the value ofCfnAssetModelProps.getAssetModelHierarchies()
assetModelHierarchies
(IResolvable assetModelHierarchies) Sets the value ofCfnAssetModelProps.getAssetModelHierarchies()
assetModelName
(String assetModelName) Sets the value ofCfnAssetModelProps.getAssetModelName()
assetModelProperties
(List<? extends Object> assetModelProperties) Sets the value ofCfnAssetModelProps.getAssetModelProperties()
assetModelProperties
(IResolvable assetModelProperties) Sets the value ofCfnAssetModelProps.getAssetModelProperties()
assetModelType
(String assetModelType) Sets the value ofCfnAssetModelProps.getAssetModelType()
build()
Builds the configured instance.Sets the value ofCfnAssetModelProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assetModelName
Sets the value ofCfnAssetModelProps.getAssetModelName()
- Parameters:
assetModelName
- A unique name for the asset model. This parameter is required.- Returns:
this
-
assetModelCompositeModels
@Stability(Stable) public CfnAssetModelProps.Builder assetModelCompositeModels(IResolvable assetModelCompositeModels) Sets the value ofCfnAssetModelProps.getAssetModelCompositeModels()
- Parameters:
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 .
- Returns:
this
-
assetModelCompositeModels
@Stability(Stable) public CfnAssetModelProps.Builder assetModelCompositeModels(List<? extends Object> assetModelCompositeModels) Sets the value ofCfnAssetModelProps.getAssetModelCompositeModels()
- Parameters:
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 .
- Returns:
this
-
assetModelDescription
@Stability(Stable) public CfnAssetModelProps.Builder assetModelDescription(String assetModelDescription) Sets the value ofCfnAssetModelProps.getAssetModelDescription()
- Parameters:
assetModelDescription
- A description for the asset model.- Returns:
this
-
assetModelExternalId
@Stability(Stable) public CfnAssetModelProps.Builder assetModelExternalId(String assetModelExternalId) Sets the value ofCfnAssetModelProps.getAssetModelExternalId()
- Parameters:
assetModelExternalId
- The external ID of the asset model. For more information, see Using external IDs in the AWS IoT SiteWise User Guide .- Returns:
this
-
assetModelHierarchies
@Stability(Stable) public CfnAssetModelProps.Builder assetModelHierarchies(IResolvable assetModelHierarchies) Sets the value ofCfnAssetModelProps.getAssetModelHierarchies()
- Parameters:
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 .
- Returns:
this
-
assetModelHierarchies
@Stability(Stable) public CfnAssetModelProps.Builder assetModelHierarchies(List<? extends Object> assetModelHierarchies) Sets the value ofCfnAssetModelProps.getAssetModelHierarchies()
- Parameters:
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 .
- Returns:
this
-
assetModelProperties
@Stability(Stable) public CfnAssetModelProps.Builder assetModelProperties(IResolvable assetModelProperties) Sets the value ofCfnAssetModelProps.getAssetModelProperties()
- Parameters:
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 .
- Returns:
this
-
assetModelProperties
@Stability(Stable) public CfnAssetModelProps.Builder assetModelProperties(List<? extends Object> assetModelProperties) Sets the value ofCfnAssetModelProps.getAssetModelProperties()
- Parameters:
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 .
- Returns:
this
-
assetModelType
Sets the value ofCfnAssetModelProps.getAssetModelType()
- Parameters:
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.
- Returns:
this
-
tags
Sets the value ofCfnAssetModelProps.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<CfnAssetModelProps>
- Returns:
- a new instance of
CfnAssetModelProps
- Throws:
NullPointerException
- if any required attribute was not provided
-