Class CfnAsset.AssetHierarchyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAsset.AssetHierarchyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAsset.AssetHierarchyProperty>
- Enclosing interface:
CfnAsset.AssetHierarchyProperty
@Stability(Stable)
public static final class CfnAsset.AssetHierarchyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAsset.AssetHierarchyProperty>
A builder for
CfnAsset.AssetHierarchyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.childAssetId(String childAssetId) Sets the value ofCfnAsset.AssetHierarchyProperty.getChildAssetId()externalId(String externalId) Sets the value ofCfnAsset.AssetHierarchyProperty.getExternalId()Sets the value ofCfnAsset.AssetHierarchyProperty.getId()Sets the value ofCfnAsset.AssetHierarchyProperty.getLogicalId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
childAssetId
Sets the value ofCfnAsset.AssetHierarchyProperty.getChildAssetId()- Parameters:
childAssetId- The Id of the child asset. This parameter is required.- Returns:
this
-
externalId
Sets the value ofCfnAsset.AssetHierarchyProperty.getExternalId()- Parameters:
externalId- String-friendly customer provided external ID.- Returns:
this
-
id
Sets the value ofCfnAsset.AssetHierarchyProperty.getId()- Parameters:
id- Customer provided actual UUID for property.- Returns:
this
-
logicalId
Sets the value ofCfnAsset.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<CfnAsset.AssetHierarchyProperty>- Returns:
- a new instance of
CfnAsset.AssetHierarchyProperty - Throws:
NullPointerException- if any required attribute was not provided
-