Interface UsageBasedPricingTerm.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UsageBasedPricingTerm.Builder,,UsageBasedPricingTerm> SdkBuilder<UsageBasedPricingTerm.Builder,,UsageBasedPricingTerm> SdkPojo
- Enclosing class:
UsageBasedPricingTerm
@Mutable
@NotThreadSafe
public static interface UsageBasedPricingTerm.Builder
extends SdkPojo, CopyableBuilder<UsageBasedPricingTerm.Builder,UsageBasedPricingTerm>
-
Method Summary
Modifier and TypeMethodDescriptioncurrencyCode(String currencyCode) Defines the currency for the prices in this term.The unique identifier of the term.rateCards(Collection<UsageBasedRateCardItem> rateCards) The rate cards containing per-unit rates for usage-based pricing.rateCards(Consumer<UsageBasedRateCardItem.Builder>... rateCards) The rate cards containing per-unit rates for usage-based pricing.rateCards(UsageBasedRateCardItem... rateCards) The rate cards containing per-unit rates for usage-based pricing.The category of the term.The category of the term.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
-
id
The unique identifier of the term.
- Parameters:
id- The unique identifier of the term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The category of the term.
- Parameters:
type- The category of the term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The category of the term.
- Parameters:
type- The category of the term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currencyCode
Defines the currency for the prices in this term.
- Parameters:
currencyCode- Defines the currency for the prices in this term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rateCards
The rate cards containing per-unit rates for usage-based pricing.
- Parameters:
rateCards- The rate cards containing per-unit rates for usage-based pricing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rateCards
The rate cards containing per-unit rates for usage-based pricing.
- Parameters:
rateCards- The rate cards containing per-unit rates for usage-based pricing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rateCards
The rate cards containing per-unit rates for usage-based pricing.
This is a convenience method that creates an instance of theUsageBasedRateCardItem.Builderavoiding the need to create one manually viaUsageBasedRateCardItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torateCards(List<UsageBasedRateCardItem>).- Parameters:
rateCards- a consumer that will call methods onUsageBasedRateCardItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-