Class CfnAsset.Builder

java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAsset.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAsset>
Enclosing class:
CfnAsset

@Stability(Stable) public static final class CfnAsset.Builder extends Object implements software.amazon.jsii.Builder<CfnAsset>
A fluent builder for CfnAsset.
  • Method Details

    • create

      @Stability(Stable) public static CfnAsset.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnAsset.Builder.
    • assetModelId

      @Stability(Stable) public CfnAsset.Builder assetModelId(String assetModelId)
      The ID of the asset model from which to create the asset.

      Parameters:
      assetModelId - The ID of the asset model from which to create the asset. This parameter is required.
      Returns:
      this
    • assetName

      @Stability(Stable) public CfnAsset.Builder assetName(String assetName)
      A unique, friendly name for the asset.

      The maximum length is 256 characters with the pattern [^\ u0000-\ u001F\ u007F]+ .

      Parameters:
      assetName - A unique, friendly name for the asset. This parameter is required.
      Returns:
      this
    • assetDescription

      @Stability(Stable) public CfnAsset.Builder assetDescription(String assetDescription)
      A description for the asset.

      Parameters:
      assetDescription - A description for the asset. This parameter is required.
      Returns:
      this
    • assetHierarchies

      @Stability(Stable) public CfnAsset.Builder assetHierarchies(IResolvable assetHierarchies)
      A list of asset hierarchies that each contain a hierarchyLogicalId .

      A hierarchy specifies allowed parent/child asset relationships.

      Parameters:
      assetHierarchies - A list of asset hierarchies that each contain a hierarchyLogicalId . This parameter is required.
      Returns:
      this
    • assetHierarchies

      @Stability(Stable) public CfnAsset.Builder assetHierarchies(List<? extends Object> assetHierarchies)
      A list of asset hierarchies that each contain a hierarchyLogicalId .

      A hierarchy specifies allowed parent/child asset relationships.

      Parameters:
      assetHierarchies - A list of asset hierarchies that each contain a hierarchyLogicalId . This parameter is required.
      Returns:
      this
    • assetProperties

      @Stability(Stable) public CfnAsset.Builder assetProperties(IResolvable assetProperties)
      The list of asset properties for the asset.

      This object doesn't include properties that you define in composite models. You can find composite model properties in the assetCompositeModels object.

      Parameters:
      assetProperties - The list of asset properties for the asset. This parameter is required.
      Returns:
      this
    • assetProperties

      @Stability(Stable) public CfnAsset.Builder assetProperties(List<? extends Object> assetProperties)
      The list of asset properties for the asset.

      This object doesn't include properties that you define in composite models. You can find composite model properties in the assetCompositeModels object.

      Parameters:
      assetProperties - The list of asset properties for the asset. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnAsset.Builder tags(List<? extends CfnTag> 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 .

      Parameters:
      tags - A list of key-value pairs that contain metadata for the asset. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAsset build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAsset>
      Returns:
      a newly built instance of CfnAsset.