Interface TieredOverage.Builder

  • Method Details

    • semantics

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

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

      Parameters:
      tiers - The ordered price bands, from lowest units to highest.
      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.

      Parameters:
      tiers - The ordered price bands, from lowest units to highest.
      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.

      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: