Class CfnAssetProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • assetModelId

      @Stability(Stable) public CfnAssetProps.Builder assetModelId(String assetModelId)
      Parameters:
      assetModelId - The ID of the asset model from which to create the asset. This parameter is required.
      Returns:
      this
    • assetName

      @Stability(Stable) public CfnAssetProps.Builder assetName(String assetName)
      Parameters:
      assetName - A unique, friendly name for the asset. This parameter is required. The maximum length is 256 characters with the pattern [^\ u0000-\ u001F\ u007F]+ .
      Returns:
      this
    • assetDescription

      @Stability(Stable) public CfnAssetProps.Builder assetDescription(String assetDescription)
      Parameters:
      assetDescription - A description for the asset.
      Returns:
      this
    • assetHierarchies

      @Stability(Stable) public CfnAssetProps.Builder assetHierarchies(IResolvable assetHierarchies)
      Parameters:
      assetHierarchies - A list of asset hierarchies that each contain a hierarchyLogicalId . A hierarchy specifies allowed parent/child asset relationships.
      Returns:
      this
    • assetHierarchies

      @Stability(Stable) public CfnAssetProps.Builder assetHierarchies(List<? extends Object> assetHierarchies)
      Parameters:
      assetHierarchies - A list of asset hierarchies that each contain a hierarchyLogicalId . A hierarchy specifies allowed parent/child asset relationships.
      Returns:
      this
    • assetProperties

      @Stability(Stable) public CfnAssetProps.Builder assetProperties(IResolvable assetProperties)
      Parameters:
      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.
      Returns:
      this
    • assetProperties

      @Stability(Stable) public CfnAssetProps.Builder assetProperties(List<? extends Object> assetProperties)
      Parameters:
      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.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnAssetProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnAssetProps.getTags()
      Parameters:
      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 .
      Returns:
      this
    • build

      @Stability(Stable) public CfnAssetProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAssetProps>
      Returns:
      a new instance of CfnAssetProps
      Throws:
      NullPointerException - if any required attribute was not provided