Interface AppTieredQuota.Builder

  • Method Details

    • includedQuantity

      AppTieredQuota.Builder includedQuantity(Long includedQuantity)

      The free allowance included with the plan for this metric. May be 0, in which case the metric is tier-priced from the first charged unit.

      Parameters:
      includedQuantity - The free allowance included with the plan for this metric. May be 0, in which case the metric is tier-priced from the first charged unit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tieredPrice

      AppTieredQuota.Builder tieredPrice(TieredPrice tieredPrice)

      The tiered price schedule applied to charged usage for this metric.

      Parameters:
      tieredPrice - The tiered price schedule applied to charged usage for this metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tieredPrice

      default AppTieredQuota.Builder tieredPrice(Consumer<TieredPrice.Builder> tieredPrice)

      The tiered price schedule applied to charged usage for this metric.

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

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

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

      AppTieredQuota.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.