Interface FixedUpfrontPricingTerm.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FixedUpfrontPricingTerm.Builder,,FixedUpfrontPricingTerm> SdkBuilder<FixedUpfrontPricingTerm.Builder,,FixedUpfrontPricingTerm> SdkPojo
- Enclosing class:
FixedUpfrontPricingTerm
@Mutable
@NotThreadSafe
public static interface FixedUpfrontPricingTerm.Builder
extends SdkPojo, CopyableBuilder<FixedUpfrontPricingTerm.Builder,FixedUpfrontPricingTerm>
-
Method Summary
Modifier and TypeMethodDescriptioncurrencyCode(String currencyCode) Defines the currency for the prices in this term.The duration of the fixed pricing term, in ISO 8601 format.grants(Collection<GrantItem> grants) The entitlements granted to the buyer as part of this term.grants(Consumer<GrantItem.Builder>... grants) The entitlements granted to the buyer as part of this term.The entitlements granted to the buyer as part of this term.The unique identifier of the term.The price charged upfront for this term.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.
-
duration
The duration of the fixed pricing term, in ISO 8601 format.
- Parameters:
duration- The duration of the fixed pricing term, in ISO 8601 format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
price
The price charged upfront for this term.
- Parameters:
price- The price charged upfront for this term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
The entitlements granted to the buyer as part of this term.
- Parameters:
grants- The entitlements granted to the buyer as part of this term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
The entitlements granted to the buyer as part of this term.
- Parameters:
grants- The entitlements granted to the buyer as part of this term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
The entitlements granted to the buyer as part of this term.
This is a convenience method that creates an instance of theGrantItem.Builderavoiding the need to create one manually viaGrantItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togrants(List<GrantItem>).- Parameters:
grants- a consumer that will call methods onGrantItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-