Class CfnAssetModel.AssetModelHierarchyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAssetModel.AssetModelHierarchyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetModel.AssetModelHierarchyProperty>
- Enclosing interface:
- CfnAssetModel.AssetModelHierarchyProperty
@Stability(Stable)
public static final class CfnAssetModel.AssetModelHierarchyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetModel.AssetModelHierarchyProperty>
A builder for
CfnAssetModel.AssetModelHierarchyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.childAssetModelId(String childAssetModelId) Sets the value ofCfnAssetModel.AssetModelHierarchyProperty.getChildAssetModelId()Sets the value ofCfnAssetModel.AssetModelHierarchyProperty.getLogicalId()Sets the value ofCfnAssetModel.AssetModelHierarchyProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
childAssetModelId
@Stability(Stable) public CfnAssetModel.AssetModelHierarchyProperty.Builder childAssetModelId(String childAssetModelId) Sets the value ofCfnAssetModel.AssetModelHierarchyProperty.getChildAssetModelId()- Parameters:
childAssetModelId- The Id of the asset model. This parameter is required.- Returns:
this
-
logicalId
@Stability(Stable) public CfnAssetModel.AssetModelHierarchyProperty.Builder logicalId(String logicalId) Sets the value ofCfnAssetModel.AssetModelHierarchyProperty.getLogicalId()- Parameters:
logicalId- TheLogicalIDof the asset model hierarchy. This ID is ahierarchyLogicalId. This parameter is required. The maximum length is 256 characters, with the pattern[^\ u0000-\ u001F\ u007F]+- Returns:
this
-
name
Sets the value ofCfnAssetModel.AssetModelHierarchyProperty.getName()- Parameters:
name- The name of the asset model hierarchy. This parameter is required. The maximum length is 256 characters with the pattern[^\ u0000-\ u001F\ u007F]+.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssetModel.AssetModelHierarchyProperty>- Returns:
- a new instance of
CfnAssetModel.AssetModelHierarchyProperty - Throws:
NullPointerException- if any required attribute was not provided
-