Interface SubscribedAsset.Builder

  • Method Details

    • assetId

      SubscribedAsset.Builder assetId(String assetId)

      The identifier of the asset for which the subscription grant is created.

      Parameters:
      assetId - The identifier of the asset for which the subscription grant is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assetRevision

      SubscribedAsset.Builder assetRevision(String assetRevision)

      The revision of the asset for which the subscription grant is created.

      Parameters:
      assetRevision - The revision of the asset for which the subscription grant is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assetScope

      SubscribedAsset.Builder assetScope(AssetScope assetScope)

      The asset scope of the subscribed asset.

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

      default SubscribedAsset.Builder assetScope(Consumer<AssetScope.Builder> assetScope)

      The asset scope of the subscribed asset.

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

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

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

      SubscribedAsset.Builder failureCause(FailureCause failureCause)

      The failure cause included in the details of the asset for which the subscription grant is created.

      Parameters:
      failureCause - The failure cause included in the details of the asset for which the subscription grant is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureCause

      default SubscribedAsset.Builder failureCause(Consumer<FailureCause.Builder> failureCause)

      The failure cause included in the details of the asset for which the subscription grant is created.

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

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

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

      SubscribedAsset.Builder failureTimestamp(Instant failureTimestamp)

      The failure timestamp included in the details of the asset for which the subscription grant is created.

      Parameters:
      failureTimestamp - The failure timestamp included in the details of the asset for which the subscription grant is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • grantedTimestamp

      SubscribedAsset.Builder grantedTimestamp(Instant grantedTimestamp)

      The timestamp of when the subscription grant to the asset is created.

      Parameters:
      grantedTimestamp - The timestamp of when the subscription grant to the asset is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The status of the asset for which the subscription grant is created.

      Parameters:
      status - The status of the asset for which the subscription grant is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the asset for which the subscription grant is created.

      Parameters:
      status - The status of the asset for which the subscription grant is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • targetName

      SubscribedAsset.Builder targetName(String targetName)

      The target name of the asset for which the subscription grant is created.

      Parameters:
      targetName - The target name of the asset for which the subscription grant is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.