Interface FreeTrialPricingTerm.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FreeTrialPricingTerm.Builder,,FreeTrialPricingTerm> SdkBuilder<FreeTrialPricingTerm.Builder,,FreeTrialPricingTerm> SdkPojo
- Enclosing class:
FreeTrialPricingTerm
@Mutable
@NotThreadSafe
public static interface FreeTrialPricingTerm.Builder
extends SdkPojo, CopyableBuilder<FreeTrialPricingTerm.Builder,FreeTrialPricingTerm>
-
Method Summary
Modifier and TypeMethodDescriptionThe duration of the free trial period.grants(Collection<GrantItem> grants) The entitlements granted to the buyer during the free trial.grants(Consumer<GrantItem.Builder>... grants) The entitlements granted to the buyer during the free trial.The entitlements granted to the buyer during the free trial.The unique identifier of the 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:
-
duration
The duration of the free trial period.
- Parameters:
duration- The duration of the free trial period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
The entitlements granted to the buyer during the free trial.
- Parameters:
grants- The entitlements granted to the buyer during the free trial.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
The entitlements granted to the buyer during the free trial.
- Parameters:
grants- The entitlements granted to the buyer during the free trial.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
The entitlements granted to the buyer during the free trial.
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:
-