Interface PlanDefinition.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PlanDefinition.Builder,,PlanDefinition> SdkBuilder<PlanDefinition.Builder,,PlanDefinition> SdkPojo
- Enclosing class:
PlanDefinition
-
Method Summary
Modifier and TypeMethodDescriptionbillingCycle(String billingCycle) How often the plan bills.billingCycle(BillingCycle billingCycle) How often the plan bills.description(String description) A human-readable description of the plan.includedQuotas(Map<String, AppQuotaConfig> includedQuotas) The usage quotas included with the plan, keyed by metric ID.A human-readable display name for the plan.default PlanDefinition.BuilderpaymentFailurePolicy(Consumer<PaymentFailurePolicy.Builder> paymentFailurePolicy) How the plan handles a failed recurring payment.paymentFailurePolicy(PaymentFailurePolicy paymentFailurePolicy) How the plan handles a failed recurring payment.default PlanDefinition.BuildersubscriptionPrice(Consumer<Price.Builder> subscriptionPrice) The recurring subscription price charged each billing cycle.subscriptionPrice(Price subscriptionPrice) The recurring subscription price charged each billing cycle.The product tax code for the plan's price.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
-
name
A human-readable display name for the plan.
- Parameters:
name- A human-readable display name for the plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A human-readable description of the plan.
- Parameters:
description- A human-readable description of the plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingCycle
How often the plan bills.
- Parameters:
billingCycle- How often the plan bills.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
billingCycle
How often the plan bills.
- Parameters:
billingCycle- How often the plan bills.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subscriptionPrice
The recurring subscription price charged each billing cycle.
- Parameters:
subscriptionPrice- The recurring subscription price charged each billing cycle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscriptionPrice
The recurring subscription price charged each billing cycle.
This is a convenience method that creates an instance of thePrice.Builderavoiding the need to create one manually viaPrice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubscriptionPrice(Price).- Parameters:
subscriptionPrice- a consumer that will call methods onPrice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
includedQuotas
The usage quotas included with the plan, keyed by metric ID. Each entry prices one metric with either a flat grant or a tiered-priced grant.
- Parameters:
includedQuotas- The usage quotas included with the plan, keyed by metric ID. Each entry prices one metric with either a flat grant or a tiered-priced grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taxCode
The product tax code for the plan's price. See ProductTaxCode.
- Parameters:
taxCode- The product tax code for the plan's price. See ProductTaxCode.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentFailurePolicy
How the plan handles a failed recurring payment.
- Parameters:
paymentFailurePolicy- How the plan handles a failed recurring payment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentFailurePolicy
default PlanDefinition.Builder paymentFailurePolicy(Consumer<PaymentFailurePolicy.Builder> paymentFailurePolicy) How the plan handles a failed recurring payment.
This is a convenience method that creates an instance of thePaymentFailurePolicy.Builderavoiding the need to create one manually viaPaymentFailurePolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topaymentFailurePolicy(PaymentFailurePolicy).- Parameters:
paymentFailurePolicy- a consumer that will call methods onPaymentFailurePolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-