Interface RecommendedPlan.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RecommendedPlan.Builder,,RecommendedPlan> SdkBuilder<RecommendedPlan.Builder,,RecommendedPlan> SdkPojo
- Enclosing class:
RecommendedPlan
-
Method Summary
Modifier and TypeMethodDescriptionbillingCycle(String billingCycle) How often the plan bills, as in CreatePlan'sdefinition.billingCycle.billingCycle(BillingCycle billingCycle) How often the plan bills, as in CreatePlan'sdefinition.billingCycle.downgradePlanCodes(String... downgradePlanCodes) Plan codes a subscriber can downgrade to, cheapest first.downgradePlanCodes(Collection<String> downgradePlanCodes) Plan codes a subscriber can downgrade to, cheapest first.includedQuotas(Collection<RecommendedQuota> includedQuotas) Units included per action, with what happens past them.includedQuotas(Consumer<RecommendedQuota.Builder>... includedQuotas) Units included per action, with what happens past them.includedQuotas(RecommendedQuota... includedQuotas) Units included per action, with what happens past them.Plan name shown to buyers, for exampleProorAnnual.This plan's key within the recommendation, for examplepro.default RecommendedPlan.Builderprice(Consumer<Price.Builder> price) Subscription price per billing cycle.Subscription price per billing cycle.upgradePlanCodes(String... upgradePlanCodes) Plan codes a subscriber can upgrade to, cheapest first.upgradePlanCodes(Collection<String> upgradePlanCodes) Plan codes a subscriber can upgrade to, cheapest first.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
-
planCode
This plan's key within the recommendation, for example
pro. The request'splanOptions.planPrices, and this plan'supgradePlanCodesanddowngradePlanCodes, refer to plans by it. It is not a PlanId: CreatePlan assigns the PlanId when the plan is created.- Parameters:
planCode- This plan's key within the recommendation, for examplepro. The request'splanOptions.planPrices, and this plan'supgradePlanCodesanddowngradePlanCodes, refer to plans by it. It is not a PlanId: CreatePlan assigns the PlanId when the plan is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Plan name shown to buyers, for example
ProorAnnual.- Parameters:
name- Plan name shown to buyers, for exampleProorAnnual.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingCycle
How often the plan bills, as in CreatePlan's
definition.billingCycle.- Parameters:
billingCycle- How often the plan bills, as in CreatePlan'sdefinition.billingCycle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
billingCycle
How often the plan bills, as in CreatePlan's
definition.billingCycle.- Parameters:
billingCycle- How often the plan bills, as in CreatePlan'sdefinition.billingCycle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
price
Subscription price per billing cycle.
- Parameters:
price- Subscription price per billing cycle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
price
Subscription price per 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 toprice(Price).- Parameters:
price- 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
Units included per action, with what happens past them.
- Parameters:
includedQuotas- Units included per action, with what happens past them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includedQuotas
Units included per action, with what happens past them.
- Parameters:
includedQuotas- Units included per action, with what happens past them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includedQuotas
Units included per action, with what happens past them.
This is a convenience method that creates an instance of theRecommendedQuota.Builderavoiding the need to create one manually viaRecommendedQuota.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toincludedQuotas(List<RecommendedQuota>).- Parameters:
includedQuotas- a consumer that will call methods onRecommendedQuota.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
upgradePlanCodes
Plan codes a subscriber can upgrade to, cheapest first.
- Parameters:
upgradePlanCodes- Plan codes a subscriber can upgrade to, cheapest first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upgradePlanCodes
Plan codes a subscriber can upgrade to, cheapest first.
- Parameters:
upgradePlanCodes- Plan codes a subscriber can upgrade to, cheapest first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
downgradePlanCodes
Plan codes a subscriber can downgrade to, cheapest first.
- Parameters:
downgradePlanCodes- Plan codes a subscriber can downgrade to, cheapest first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
downgradePlanCodes
Plan codes a subscriber can downgrade to, cheapest first.
- Parameters:
downgradePlanCodes- Plan codes a subscriber can downgrade to, cheapest first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-