Interface AssetCompositeModel.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AssetCompositeModel.Builder,AssetCompositeModel>, SdkBuilder<AssetCompositeModel.Builder,AssetCompositeModel>, SdkPojo
Enclosing class:
AssetCompositeModel

public static interface AssetCompositeModel.Builder extends SdkPojo, CopyableBuilder<AssetCompositeModel.Builder,AssetCompositeModel>
  • Method Details

    • name

      The name of the composite model.

      Parameters:
      name - The name of the composite model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      AssetCompositeModel.Builder description(String description)

      The description of the composite model.

      Parameters:
      description - The description of the composite model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The type of the composite model. For alarm composite models, this type is AWS/ALARM.

      Parameters:
      type - The type of the composite model. For alarm composite models, this type is AWS/ALARM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • properties

      The asset properties that this composite model defines.

      Parameters:
      properties - The asset properties that this composite model defines.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • properties

      AssetCompositeModel.Builder properties(AssetProperty... properties)

      The asset properties that this composite model defines.

      Parameters:
      properties - The asset properties that this composite model defines.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • properties

      The asset properties that this composite model defines.

      This is a convenience method that creates an instance of the AssetProperty.Builder avoiding the need to create one manually via AssetProperty.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to properties(List<AssetProperty>).

      Parameters:
      properties - a consumer that will call methods on AssetProperty.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • id

      The ID of the asset composite model.

      Parameters:
      id - The ID of the asset composite model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • externalId

      AssetCompositeModel.Builder externalId(String externalId)

      The external ID of the asset composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.

      Parameters:
      externalId - The external ID of the asset composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.