Interface CancelSubscriptionResponse.Builder

  • Method Details

    • createdAt

      The timestamp that specifies when the request to cancel the subscription was created.

      Parameters:
      createdAt - The timestamp that specifies when the request to cancel the subscription was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdBy

      Specifies the Amazon DataZone user who is cancelling the subscription.

      Parameters:
      createdBy - Specifies the Amazon DataZone user who is cancelling the subscription.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • domainId

      The unique identifier of the Amazon DataZone domain where the subscription is being cancelled.

      Parameters:
      domainId - The unique identifier of the Amazon DataZone domain where the subscription is being cancelled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      The identifier of the subscription.

      Parameters:
      id - The identifier of the subscription.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retainPermissions

      CancelSubscriptionResponse.Builder retainPermissions(Boolean retainPermissions)

      Specifies whether the permissions to the asset are retained after the subscription is cancelled.

      Parameters:
      retainPermissions - Specifies whether the permissions to the asset are retained after the subscription is cancelled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The status of the request to cancel the subscription.

      Parameters:
      status - The status of the request to cancel the subscription.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the request to cancel the subscription.

      Parameters:
      status - The status of the request to cancel the subscription.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • subscribedListing

      CancelSubscriptionResponse.Builder subscribedListing(SubscribedListing subscribedListing)

      The asset to which a subscription is being cancelled.

      Parameters:
      subscribedListing - The asset to which a subscription is being cancelled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subscribedListing

      default CancelSubscriptionResponse.Builder subscribedListing(Consumer<SubscribedListing.Builder> subscribedListing)

      The asset to which a subscription is being cancelled.

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

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

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

      CancelSubscriptionResponse.Builder subscribedPrincipal(SubscribedPrincipal subscribedPrincipal)

      The Amazon DataZone user who is made a subscriber to the specified asset by the subscription that is being cancelled.

      Parameters:
      subscribedPrincipal - The Amazon DataZone user who is made a subscriber to the specified asset by the subscription that is being cancelled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subscribedPrincipal

      default CancelSubscriptionResponse.Builder subscribedPrincipal(Consumer<SubscribedPrincipal.Builder> subscribedPrincipal)

      The Amazon DataZone user who is made a subscriber to the specified asset by the subscription that is being cancelled.

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

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

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

      CancelSubscriptionResponse.Builder subscriptionRequestId(String subscriptionRequestId)

      The unique ID of the subscripton request for the subscription that is being cancelled.

      Parameters:
      subscriptionRequestId - The unique ID of the subscripton request for the subscription that is being cancelled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      The timestamp that specifies when the subscription was cancelled.

      Parameters:
      updatedAt - The timestamp that specifies when the subscription was cancelled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedBy

      The Amazon DataZone user that cancelled the subscription.

      Parameters:
      updatedBy - The Amazon DataZone user that cancelled the subscription.
      Returns:
      Returns a reference to this object so that method calls can be chained together.