Interface TieredPrice.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TieredPrice.Builder,,TieredPrice> SdkBuilder<TieredPrice.Builder,,TieredPrice> SdkPojo
- Enclosing class:
TieredPrice
-
Method Summary
Modifier and TypeMethodDescriptionWhether 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).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).tiers(Collection<TierBand> tiers) The ordered price bands, from lowest units to highest.tiers(Consumer<TierBand.Builder>... tiers) The ordered price bands, from lowest units to highest.The ordered price bands, from lowest units to highest.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
-
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
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
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 theTierBand.Builderavoiding the need to create one manually viaTierBand.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totiers(List<TierBand>).- Parameters:
tiers- a consumer that will call methods onTierBand.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-