Interface CancelSubscriptionResponse.Builder

  • Method Details

    • subscription

      The details of the subscription with the pending cancellation. For active subscriptions, a scheduledChange of type CANCELLATION is included.

      Parameters:
      subscription - The details of the subscription with the pending cancellation. For active subscriptions, a scheduledChange of type CANCELLATION is included.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subscription

      The details of the subscription with the pending cancellation. For active subscriptions, a scheduledChange of type CANCELLATION is included.

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

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

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

      The updated entity tag for concurrency control.

      Parameters:
      eTag - The updated entity tag for concurrency control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.