Interface TieredPrice.Builder

  • Method Details

    • semantics

      TieredPrice.Builder semantics(String semantics)

      Whether the bands price graduated (each band's units at its own rate, summed) or volume (all charged units at the rate of the band reached).

      Parameters:
      semantics - Whether the bands price graduated (each band's units at its own rate, summed) or volume (all charged units at the rate of the band reached).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • semantics

      TieredPrice.Builder semantics(TierSemantics semantics)

      Whether the bands price graduated (each band's units at its own rate, summed) or volume (all charged units at the rate of the band reached).

      Parameters:
      semantics - Whether the bands price graduated (each band's units at its own rate, summed) or volume (all charged units at the rate of the band reached).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tiers

      The ordered price bands, from lowest units to highest. Uses the same TierBand shape (firstUnit/lastUnit/unitPrice) as tiered overage bands.

      Parameters:
      tiers - The ordered price bands, from lowest units to highest. Uses the same TierBand shape (firstUnit/lastUnit/unitPrice) as tiered overage bands.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tiers

      TieredPrice.Builder tiers(TierBand... tiers)

      The ordered price bands, from lowest units to highest. Uses the same TierBand shape (firstUnit/lastUnit/unitPrice) as tiered overage bands.

      Parameters:
      tiers - The ordered price bands, from lowest units to highest. Uses the same TierBand shape (firstUnit/lastUnit/unitPrice) as tiered overage bands.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tiers

      The ordered price bands, from lowest units to highest. Uses the same TierBand shape (firstUnit/lastUnit/unitPrice) as tiered overage bands.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tiers(List<TierBand>).

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