Class CfnAssetModelPropsMixin.AssetModelHierarchyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iotsitewise.CfnAssetModelPropsMixin.AssetModelHierarchyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetModelPropsMixin.AssetModelHierarchyProperty>
- Enclosing interface:
CfnAssetModelPropsMixin.AssetModelHierarchyProperty
@Stability(Stable)
public static final class CfnAssetModelPropsMixin.AssetModelHierarchyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetModelPropsMixin.AssetModelHierarchyProperty>
A builder for
CfnAssetModelPropsMixin.AssetModelHierarchyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.childAssetModelId(String childAssetModelId) externalId(String externalId) Sets the value ofCfnAssetModelPropsMixin.AssetModelHierarchyProperty.getExternalId()Sets the value ofCfnAssetModelPropsMixin.AssetModelHierarchyProperty.getId()Sets the value ofCfnAssetModelPropsMixin.AssetModelHierarchyProperty.getLogicalId()Sets the value ofCfnAssetModelPropsMixin.AssetModelHierarchyProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
childAssetModelId
@Stability(Stable) public CfnAssetModelPropsMixin.AssetModelHierarchyProperty.Builder childAssetModelId(String childAssetModelId) - Parameters:
childAssetModelId- The ID of the asset model, in UUID format. All assets in this hierarchy must be instances of thechildAssetModelIdasset model. AWS IoT SiteWise will always return the actual asset model ID for this value. However, when you are specifying this value as part of a call to UpdateAssetModel , you may provide either the asset model ID or elseexternalId:followed by the asset model's external ID. For more information, see Using external IDs in the AWS IoT SiteWise User Guide .- Returns:
this
-
externalId
@Stability(Stable) public CfnAssetModelPropsMixin.AssetModelHierarchyProperty.Builder externalId(String externalId) Sets the value ofCfnAssetModelPropsMixin.AssetModelHierarchyProperty.getExternalId()- Parameters:
externalId- The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation. You can assign an external ID by specifying this value as part of a call to UpdateAssetModel . However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the AWS IoT SiteWise User Guide .One of
ExternalIdorLogicalIdmust be specified.- Returns:
this
-
id
Sets the value ofCfnAssetModelPropsMixin.AssetModelHierarchyProperty.getId()- Parameters:
id- The ID of the asset model hierarchy. This ID is ahierarchyId.This is a return value and can't be set.
- If you are callling UpdateAssetModel to create a new hierarchy: You can specify its ID here, if desired. AWS IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. However, if you prefer to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique.
- If you are calling UpdateAssetModel to modify an existing hierarchy: This can be either the actual ID in UUID format, or else
externalId:followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the AWS IoT SiteWise User Guide .
- Returns:
this
-
logicalId
@Stability(Stable) public CfnAssetModelPropsMixin.AssetModelHierarchyProperty.Builder logicalId(String logicalId) Sets the value ofCfnAssetModelPropsMixin.AssetModelHierarchyProperty.getLogicalId()- Parameters:
logicalId- TheLogicalIDof the asset model hierarchy. This ID is ahierarchyLogicalId.One of
ExternalIdorLogicalIdmust be specified.- Returns:
this
-
name
@Stability(Stable) public CfnAssetModelPropsMixin.AssetModelHierarchyProperty.Builder name(String name) Sets the value ofCfnAssetModelPropsMixin.AssetModelHierarchyProperty.getName()- Parameters:
name- The name of the asset model hierarchy that you specify by using the CreateAssetModel or UpdateAssetModel API operation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssetModelPropsMixin.AssetModelHierarchyProperty>- Returns:
- a new instance of
CfnAssetModelPropsMixin.AssetModelHierarchyProperty - Throws:
NullPointerException- if any required attribute was not provided
-