Interface AssociatedAssetsSummary.Builder

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

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

    • id

      The ID of the asset, in UUID format.

      Parameters:
      id - The ID of the asset, in UUID format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The ARN of the asset, which has the following format.

      arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}

      Parameters:
      arn - The ARN of the asset, which has the following format.

      arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the asset.

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

      AssociatedAssetsSummary.Builder assetModelId(String assetModelId)

      The ID of the asset model used to create the asset.

      Parameters:
      assetModelId - The ID of the asset model used to create the asset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationDate

      AssociatedAssetsSummary.Builder creationDate(Instant creationDate)

      The date the asset was created, in Unix epoch time.

      Parameters:
      creationDate - The date the asset was created, in Unix epoch time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdateDate

      AssociatedAssetsSummary.Builder lastUpdateDate(Instant lastUpdateDate)

      The date the asset was last updated, in Unix epoch time.

      Parameters:
      lastUpdateDate - The date the asset was last updated, in Unix epoch time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the asset.

      Parameters:
      status - The current status of the asset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the asset.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to status(AssetStatus).

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

      A list of asset hierarchies that each contain a hierarchyId. A hierarchy specifies allowed parent/child asset relationships.

      Parameters:
      hierarchies - A list of asset hierarchies that each contain a hierarchyId. A hierarchy specifies allowed parent/child asset relationships.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hierarchies

      AssociatedAssetsSummary.Builder hierarchies(AssetHierarchy... hierarchies)

      A list of asset hierarchies that each contain a hierarchyId. A hierarchy specifies allowed parent/child asset relationships.

      Parameters:
      hierarchies - A list of asset hierarchies that each contain a hierarchyId. A hierarchy specifies allowed parent/child asset relationships.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hierarchies

      A list of asset hierarchies that each contain a hierarchyId. A hierarchy specifies allowed parent/child asset relationships.

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

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

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

      AssociatedAssetsSummary.Builder description(String description)

      A description for the asset.

      Parameters:
      description - A description for the asset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • externalId

      AssociatedAssetsSummary.Builder externalId(String externalId)

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

      Parameters:
      externalId - The external ID of the asset. 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.