Interface UsageBasedPricingTerm.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UsageBasedPricingTerm.Builder,,UsageBasedPricingTerm> SdkBuilder<UsageBasedPricingTerm.Builder,,UsageBasedPricingTerm> SdkPojo
- Enclosing class:
UsageBasedPricingTerm
public static interface UsageBasedPricingTerm.Builder
extends SdkPojo, CopyableBuilder<UsageBasedPricingTerm.Builder,UsageBasedPricingTerm>
-
Method Summary
Modifier and TypeMethodDescriptioncurrencyCode(String currencyCode) Defines the currency for the prices mentioned in the term.rateCards(Collection<UsageBasedRateCardItem> rateCards) List of rate cards.rateCards(Consumer<UsageBasedRateCardItem.Builder>... rateCards) List of rate cards.rateCards(UsageBasedRateCardItem... rateCards) List of rate cards.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
-
currencyCode
Defines the currency for the prices mentioned in the term.
- Parameters:
currencyCode- Defines the currency for the prices mentioned in the term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rateCards
List of rate cards.
- Parameters:
rateCards- List of rate cards.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rateCards
List of rate cards.
- Parameters:
rateCards- List of rate cards.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rateCards
List of rate cards.
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:
-
type
Category of the term.
- Parameters:
type- Category of the term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-