Interface CancelSubscriptionResponse.Builder

  • Method Details

    • subscription

      The subscription as it stands after the cancellation is scheduled.

      Parameters:
      subscription - The subscription as it stands after the cancellation is scheduled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subscription

      The subscription as it stands after the cancellation is scheduled.

      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:
    • cancellationEffectiveAt

      CancelSubscriptionResponse.Builder cancellationEffectiveAt(Instant cancellationEffectiveAt)

      The time when the cancellation takes effect, at the end of the current billing period. The subscription remains active until this time.

      Parameters:
      cancellationEffectiveAt - The time when the cancellation takes effect, at the end of the current billing period. The subscription remains active until this time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.