Class CfnAssetPropsMixin.AssetHierarchyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iotsitewise.CfnAssetPropsMixin.AssetHierarchyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetPropsMixin.AssetHierarchyProperty>
- Enclosing interface:
CfnAssetPropsMixin.AssetHierarchyProperty
@Stability(Stable)
public static final class CfnAssetPropsMixin.AssetHierarchyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetPropsMixin.AssetHierarchyProperty>
A builder for
CfnAssetPropsMixin.AssetHierarchyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.childAssetId(String childAssetId) Sets the value ofCfnAssetPropsMixin.AssetHierarchyProperty.getChildAssetId()externalId(String externalId) Sets the value ofCfnAssetPropsMixin.AssetHierarchyProperty.getExternalId()Sets the value ofCfnAssetPropsMixin.AssetHierarchyProperty.getId()Sets the value ofCfnAssetPropsMixin.AssetHierarchyProperty.getLogicalId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
childAssetId
@Stability(Stable) public CfnAssetPropsMixin.AssetHierarchyProperty.Builder childAssetId(String childAssetId) Sets the value ofCfnAssetPropsMixin.AssetHierarchyProperty.getChildAssetId()- Parameters:
childAssetId- The Id of the child asset.- Returns:
this
-
externalId
@Stability(Stable) public CfnAssetPropsMixin.AssetHierarchyProperty.Builder externalId(String externalId) Sets the value ofCfnAssetPropsMixin.AssetHierarchyProperty.getExternalId()- Parameters:
externalId- The external ID of the hierarchy, if it has one. When you update an asset hierarchy, you may assign an external ID if it doesn't already have one. You can't change the external ID of an asset hierarchy that already has one. For more information, see Using external IDs in the AWS IoT SiteWise User Guide .- Returns:
this
-
id
Sets the value ofCfnAssetPropsMixin.AssetHierarchyProperty.getId()- Parameters:
id- The ID of the hierarchy. This ID is ahierarchyId.This is a return value and can't be set.
- Returns:
this
-
logicalId
@Stability(Stable) public CfnAssetPropsMixin.AssetHierarchyProperty.Builder logicalId(String logicalId) Sets the value ofCfnAssetPropsMixin.AssetHierarchyProperty.getLogicalId()- Parameters:
logicalId- The ID of the hierarchy. This ID is ahierarchyId.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssetPropsMixin.AssetHierarchyProperty>- Returns:
- a new instance of
CfnAssetPropsMixin.AssetHierarchyProperty - Throws:
NullPointerException- if any required attribute was not provided
-