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 Summary
Modifier and TypeMethodDescriptionThe first unit covered by this band.The last unit covered by this band.default TierBand.BuilderunitPrice(Consumer<Price.Builder> unitPrice) The per-unit price charged within this band.The per-unit price charged within this band.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
The per-unit price charged within this band.
This is a convenience method that creates an instance of thePrice.Builderavoiding the need to create one manually viaPrice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tounitPrice(Price).- Parameters:
unitPrice- a consumer that will call methods onPrice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-