Interface AppQuota.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AppQuota.Builder,AppQuota>, SdkBuilder<AppQuota.Builder,AppQuota>, SdkPojo
Enclosing class:
AppQuota

@Mutable @NotThreadSafe public static interface AppQuota.Builder extends SdkPojo, CopyableBuilder<AppQuota.Builder,AppQuota>
  • Method Details

    • includedQuantity

      AppQuota.Builder includedQuantity(Long includedQuantity)

      The free allowance included with the plan for this metric.

      Parameters:
      includedQuantity - The free allowance included with the plan for this metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overagePolicy

      AppQuota.Builder overagePolicy(String overagePolicy)

      How usage beyond the included allowance is handled.

      Parameters:
      overagePolicy - How usage beyond the included allowance is handled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overagePolicy

      AppQuota.Builder overagePolicy(OveragePolicy overagePolicy)

      How usage beyond the included allowance is handled.

      Parameters:
      overagePolicy - How usage beyond the included allowance is handled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overagePrice

      AppQuota.Builder overagePrice(Price overagePrice)

      The per-unit price charged for usage beyond the included allowance under a fixed overage policy.

      Parameters:
      overagePrice - The per-unit price charged for usage beyond the included allowance under a fixed overage policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overagePrice

      default AppQuota.Builder overagePrice(Consumer<Price.Builder> overagePrice)

      The per-unit price charged for usage beyond the included allowance under a fixed overage policy.

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

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

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

      AppQuota.Builder tieredOverage(TieredOverage tieredOverage)

      The tiered overage schedule applied to usage beyond the included allowance under a tiered overage policy.

      Parameters:
      tieredOverage - The tiered overage schedule applied to usage beyond the included allowance under a tiered overage policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tieredOverage

      default AppQuota.Builder tieredOverage(Consumer<TieredOverage.Builder> tieredOverage)

      The tiered overage schedule applied to usage beyond the included allowance under a tiered overage policy.

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

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

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

      AppQuota.Builder maxQuantity(Long maxQuantity)

      Usage at which further entitlement checks for this metric are denied, in whole units per billing period, counting the included allowance. Must be at least includedQuantity (equal is a hard stop at the allowance) and is allowed only on a grant that charges past its allowance. Checked at entitlement time against usage already recorded; one allowed action's quantity is not clamped. Prepaid usage-pack units sit outside it. One cap per billing period. Absent means no cap.

      Parameters:
      maxQuantity - Usage at which further entitlement checks for this metric are denied, in whole units per billing period, counting the included allowance. Must be at least includedQuantity (equal is a hard stop at the allowance) and is allowed only on a grant that charges past its allowance. Checked at entitlement time against usage already recorded; one allowed action's quantity is not clamped. Prepaid usage-pack units sit outside it. One cap per billing period. Absent means no cap.
      Returns:
      Returns a reference to this object so that method calls can be chained together.