Interface Subscription.Builder

  • Method Details

    • arn

      The Amazon Resource Name (ARN) that uniquely identifies this subscription.

      Parameters:
      arn - The Amazon Resource Name (ARN) that uniquely identifies this subscription.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • planFamily

      Subscription.Builder planFamily(String planFamily)

      The pricing plan family for the subscription, such as CloudFront.

      Parameters:
      planFamily - The pricing plan family for the subscription, such as CloudFront.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • planTier

      Subscription.Builder planTier(String planTier)

      The current tier level of the pricing plan, such as FREE, PRO, BUSINESS, or PREMIUM.

      Parameters:
      planTier - The current tier level of the pricing plan, such as FREE, PRO, BUSINESS, or PREMIUM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageLevel

      Subscription.Builder usageLevel(String usageLevel)

      The usage level within the plan tier. When present, indicates a specific capacity configuration beyond the base tier.

      Parameters:
      usageLevel - The usage level within the plan tier. When present, indicates a specific capacity configuration beyond the base tier.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scheduledChange

      Subscription.Builder scheduledChange(ScheduledChange scheduledChange)

      A pending change that will take effect at the end of the current billing period. This field is present only when a downgrade or cancellation is scheduled.

      Parameters:
      scheduledChange - A pending change that will take effect at the end of the current billing period. This field is present only when a downgrade or cancellation is scheduled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scheduledChange

      default Subscription.Builder scheduledChange(Consumer<ScheduledChange.Builder> scheduledChange)

      A pending change that will take effect at the end of the current billing period. This field is present only when a downgrade or cancellation is scheduled.

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

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

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

      Subscription.Builder status(String status)

      The current status of the subscription. For the list of possible values, see the Status type.

      Parameters:
      status - The current status of the subscription. For the list of possible values, see the Status type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Subscription.Builder status(Status status)

      The current status of the subscription. For the list of possible values, see the Status type.

      Parameters:
      status - The current status of the subscription. For the list of possible values, see the Status type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusReason

      Subscription.Builder statusReason(String statusReason)

      A human-readable explanation of the current status, present when additional context is available.

      Parameters:
      statusReason - A human-readable explanation of the current status, present when additional context is available.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceArns

      Subscription.Builder resourceArns(Collection<String> resourceArns)

      The ARNs of the AWS resources covered by this subscription.

      Parameters:
      resourceArns - The ARNs of the AWS resources covered by this subscription.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceArns

      Subscription.Builder resourceArns(String... resourceArns)

      The ARNs of the AWS resources covered by this subscription.

      Parameters:
      resourceArns - The ARNs of the AWS resources covered by this subscription.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Subscription.Builder createdAt(Instant createdAt)

      The date and time when the subscription was created, in ISO 8601 format.

      Parameters:
      createdAt - The date and time when the subscription was created, in ISO 8601 format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      Subscription.Builder updatedAt(Instant updatedAt)

      The date and time when the subscription was last modified, in ISO 8601 format.

      Parameters:
      updatedAt - The date and time when the subscription was last modified, in ISO 8601 format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.