Interface DescribeAssetResponse.Builder

    • Method Detail

      • assetId

        DescribeAssetResponse.Builder assetId​(String assetId)

        The ID of the asset, in UUID format.

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

        DescribeAssetResponse.Builder assetArn​(String assetArn)

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

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

        Parameters:
        assetArn - 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.
      • assetName

        DescribeAssetResponse.Builder assetName​(String assetName)

        The name of the asset.

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

        DescribeAssetResponse.Builder assetModelId​(String assetModelId)

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

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

        DescribeAssetResponse.Builder assetProperties​(Collection<AssetProperty> 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 object doesn't include properties that you define in composite models. You can find composite model properties in the assetCompositeModels object.

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

        DescribeAssetResponse.Builder assetProperties​(AssetProperty... 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 object doesn't include properties that you define in composite models. You can find composite model properties in the assetCompositeModels object.

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

        DescribeAssetResponse.Builder assetProperties​(Consumer<AssetProperty.Builder>... 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.

        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 #assetProperties(List).

        Parameters:
        assetProperties - 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:
        #assetProperties(java.util.Collection)
      • assetHierarchies

        DescribeAssetResponse.Builder assetHierarchies​(Collection<AssetHierarchy> assetHierarchies)

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

        Parameters:
        assetHierarchies - 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.
      • assetHierarchies

        DescribeAssetResponse.Builder assetHierarchies​(AssetHierarchy... assetHierarchies)

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

        Parameters:
        assetHierarchies - 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.
      • assetCompositeModels

        DescribeAssetResponse.Builder assetCompositeModels​(Collection<AssetCompositeModel> assetCompositeModels)

        The composite models for the asset.

        Parameters:
        assetCompositeModels - The composite models for the asset.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • assetCompositeModels

        DescribeAssetResponse.Builder assetCompositeModels​(AssetCompositeModel... assetCompositeModels)

        The composite models for the asset.

        Parameters:
        assetCompositeModels - The composite models for the asset.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • assetCreationDate

        DescribeAssetResponse.Builder assetCreationDate​(Instant assetCreationDate)

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

        Parameters:
        assetCreationDate - 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.
      • assetLastUpdateDate

        DescribeAssetResponse.Builder assetLastUpdateDate​(Instant assetLastUpdateDate)

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

        Parameters:
        assetLastUpdateDate - 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.
      • assetStatus

        DescribeAssetResponse.Builder assetStatus​(AssetStatus assetStatus)

        The current status of the asset, which contains a state and any error message.

        Parameters:
        assetStatus - The current status of the asset, which contains a state and any error message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • assetDescription

        DescribeAssetResponse.Builder assetDescription​(String assetDescription)

        A description for the asset.

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

        DescribeAssetResponse.Builder assetCompositeModelSummaries​(Collection<AssetCompositeModelSummary> assetCompositeModelSummaries)

        The list of the immediate child custom composite model summaries for the asset.

        Parameters:
        assetCompositeModelSummaries - The list of the immediate child custom composite model summaries for the asset.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • assetCompositeModelSummaries

        DescribeAssetResponse.Builder assetCompositeModelSummaries​(AssetCompositeModelSummary... assetCompositeModelSummaries)

        The list of the immediate child custom composite model summaries for the asset.

        Parameters:
        assetCompositeModelSummaries - The list of the immediate child custom composite model summaries for the asset.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • assetExternalId

        DescribeAssetResponse.Builder assetExternalId​(String assetExternalId)

        The external ID of the asset, if any.

        Parameters:
        assetExternalId - The external ID of the asset, if any.
        Returns:
        Returns a reference to this object so that method calls can be chained together.