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 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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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.Builder
avoiding the need to create one manually viaUsageBasedRateCardItem.builder()
.When the
Consumer
completes,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.
-