Class CfnAssetModel.Builder

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

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

    • create

      @Stability(Stable) public static CfnAssetModel.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 CfnAssetModel.Builder.
    • assetModelName

      @Stability(Stable) public CfnAssetModel.Builder assetModelName(String assetModelName)
      A unique, friendly name for the asset model.

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

      Parameters:
      assetModelName - A unique, friendly name for the asset model. This parameter is required.
      Returns:
      this
    • assetModelCompositeModels

      @Stability(Stable) public CfnAssetModel.Builder assetModelCompositeModels(IResolvable assetModelCompositeModels)
      The composite asset models that are part of this asset model.

      Composite asset models are asset models that contain specific properties. Each composite model has a type that defines the properties that the composite model supports. You can use composite asset models to define alarms on this asset model.

      Parameters:
      assetModelCompositeModels - The composite asset models that are part of this asset model. This parameter is required.
      Returns:
      this
    • assetModelCompositeModels

      @Stability(Stable) public CfnAssetModel.Builder assetModelCompositeModels(List<? extends Object> assetModelCompositeModels)
      The composite asset models that are part of this asset model.

      Composite asset models are asset models that contain specific properties. Each composite model has a type that defines the properties that the composite model supports. You can use composite asset models to define alarms on this asset model.

      Parameters:
      assetModelCompositeModels - The composite asset models that are part of this asset model. This parameter is required.
      Returns:
      this
    • assetModelDescription

      @Stability(Stable) public CfnAssetModel.Builder assetModelDescription(String assetModelDescription)
      A description for the asset model.

      Parameters:
      assetModelDescription - A description for the asset model. This parameter is required.
      Returns:
      this
    • assetModelHierarchies

      @Stability(Stable) public CfnAssetModel.Builder assetModelHierarchies(IResolvable assetModelHierarchies)
      The hierarchy definitions of the asset model.

      Each hierarchy specifies an asset model whose assets can be children of any other assets created from this asset model. For more information, see Defining relationships between assets in the AWS IoT SiteWise User Guide .

      You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide .

      Parameters:
      assetModelHierarchies - The hierarchy definitions of the asset model. This parameter is required.
      Returns:
      this
    • assetModelHierarchies

      @Stability(Stable) public CfnAssetModel.Builder assetModelHierarchies(List<? extends Object> assetModelHierarchies)
      The hierarchy definitions of the asset model.

      Each hierarchy specifies an asset model whose assets can be children of any other assets created from this asset model. For more information, see Defining relationships between assets in the AWS IoT SiteWise User Guide .

      You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide .

      Parameters:
      assetModelHierarchies - The hierarchy definitions of the asset model. This parameter is required.
      Returns:
      this
    • assetModelProperties

      @Stability(Stable) public CfnAssetModel.Builder assetModelProperties(IResolvable assetModelProperties)
      The property definitions of the asset model.

      For more information, see Defining data properties in the AWS IoT SiteWise User Guide .

      You can specify up to 200 properties per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide .

      Parameters:
      assetModelProperties - The property definitions of the asset model. This parameter is required.
      Returns:
      this
    • assetModelProperties

      @Stability(Stable) public CfnAssetModel.Builder assetModelProperties(List<? extends Object> assetModelProperties)
      The property definitions of the asset model.

      For more information, see Defining data properties in the AWS IoT SiteWise User Guide .

      You can specify up to 200 properties per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide .

      Parameters:
      assetModelProperties - The property definitions of the asset model. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnAssetModel.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 CfnAssetModel build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAssetModel>
      Returns:
      a newly built instance of CfnAssetModel.