Class CfnAssetModelProps.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAssetModelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetModelProps>
- Enclosing interface:
- CfnAssetModelProps
@Stability(Stable)
public static final class CfnAssetModelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetModelProps>
A builder for
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()
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()
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, friendly name for the asset model. This parameter is required. The maximum length is 256 characters with the pattern[^\ u0000-\ u001F\ u007F]+
.- Returns:
this
-
assetModelCompositeModels
@Stability(Stable) public CfnAssetModelProps.Builder assetModelCompositeModels(IResolvable assetModelCompositeModels) Sets the value ofCfnAssetModelProps.getAssetModelCompositeModels()
- Parameters:
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.- Returns:
this
-
assetModelCompositeModels
@Stability(Stable) public CfnAssetModelProps.Builder assetModelCompositeModels(List<? extends Object> assetModelCompositeModels) Sets the value ofCfnAssetModelProps.getAssetModelCompositeModels()
- Parameters:
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.- 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
-
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 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 .
- 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 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 .
- 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 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 .
- 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 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 .
- 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
-