Interface TierBand.Builder

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

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

    • firstUnit

      TierBand.Builder firstUnit(Long firstUnit)

      The first unit covered by this band.

      Parameters:
      firstUnit - The first unit covered by this band.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUnit

      TierBand.Builder lastUnit(Long lastUnit)

      The last unit covered by this band. Absent on the final, unbounded band.

      Parameters:
      lastUnit - The last unit covered by this band. Absent on the final, unbounded band.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unitPrice

      TierBand.Builder unitPrice(Price unitPrice)

      The per-unit price charged within this band.

      Parameters:
      unitPrice - The per-unit price charged within this band.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unitPrice

      default TierBand.Builder unitPrice(Consumer<Price.Builder> unitPrice)

      The per-unit price charged within this band.

      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 unitPrice(Price).

      Parameters:
      unitPrice - 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: