Interface PlanOptions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PlanOptions.Builder,,PlanOptions> SdkBuilder<PlanOptions.Builder,,PlanOptions> SdkPojo
- Enclosing class:
PlanOptions
-
Method Summary
Modifier and TypeMethodDescriptionannualPlanInclusion(String annualPlanInclusion) Whether to add an annual plan (Annual).annualPlanInclusion(PlanInclusion annualPlanInclusion) Whether to add an annual plan (Annual).creditPackInclusion(String creditPackInclusion) Whether to add one-time credit packs alongside the plans, the response'screditPacks.creditPackInclusion(PlanInclusion creditPackInclusion) Whether to add one-time credit packs alongside the plans, the response'screditPacks.freeTierInclusion(String freeTierInclusion) Whether to include a Free plan.freeTierInclusion(PlanInclusion freeTierInclusion) Whether to include a Free plan.maxTierInclusion(String maxTierInclusion) Whether to include a Max plan for heavy users.maxTierInclusion(PlanInclusion maxTierInclusion) Whether to include a Max plan for heavy users.planPrices(Collection<PlanPrice> planPrices) Prices to evaluate instead of the recommended ones, one per plan.planPrices(Consumer<PlanPrice.Builder>... planPrices) Prices to evaluate instead of the recommended ones, one per plan.planPrices(PlanPrice... planPrices) Prices to evaluate instead of the recommended ones, one per plan.pricingModelPreference(String pricingModelPreference) Pricing model to use instead of letting the service choose.pricingModelPreference(PricingModel pricingModelPreference) Pricing model to use instead of letting the service choose.default PlanOptions.BuilderpublishedPrice(Consumer<PublishedPrice.Builder> publishedPrice) Your current or intended monthly price, in USD (another currencyCode is rejected).publishedPrice(PublishedPrice publishedPrice) Your current or intended monthly price, in USD (another currencyCode is rejected).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
-
pricingModelPreference
Pricing model to use instead of letting the service choose.
planOptions.preferenceOutcomein the response says whether it was used. Absent: the service chooses (preferenceOutcomeNOT_REQUESTED). PER_USE_SPLIT needs two or more actions. PER_USE or PER_USE_SPLIT withfreeTierInclusion,maxTierInclusionorannualPlanInclusionINCLUDE is rejected, and so is FLAT withfreeTierInclusionINCLUDE.- Parameters:
pricingModelPreference- Pricing model to use instead of letting the service choose.planOptions.preferenceOutcomein the response says whether it was used. Absent: the service chooses (preferenceOutcomeNOT_REQUESTED). PER_USE_SPLIT needs two or more actions. PER_USE or PER_USE_SPLIT withfreeTierInclusion,maxTierInclusionorannualPlanInclusionINCLUDE is rejected, and so is FLAT withfreeTierInclusionINCLUDE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pricingModelPreference
Pricing model to use instead of letting the service choose.
planOptions.preferenceOutcomein the response says whether it was used. Absent: the service chooses (preferenceOutcomeNOT_REQUESTED). PER_USE_SPLIT needs two or more actions. PER_USE or PER_USE_SPLIT withfreeTierInclusion,maxTierInclusionorannualPlanInclusionINCLUDE is rejected, and so is FLAT withfreeTierInclusionINCLUDE.- Parameters:
pricingModelPreference- Pricing model to use instead of letting the service choose.planOptions.preferenceOutcomein the response says whether it was used. Absent: the service chooses (preferenceOutcomeNOT_REQUESTED). PER_USE_SPLIT needs two or more actions. PER_USE or PER_USE_SPLIT withfreeTierInclusion,maxTierInclusionorannualPlanInclusionINCLUDE is rejected, and so is FLAT withfreeTierInclusionINCLUDE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
freeTierInclusion
Whether to include a Free plan. Absent: the segment's default, which considers a Free plan for CONSUMER and PROSUMER and not for ENTERPRISE; with a
pricingModelPreference, a Free plan is considered only for TIERED. INCLUDE with nopricingModelPreferencelimits the choice to TIERED; INCLUDE with a PER_USE, PER_USE_SPLIT or FLAT preference is rejected. The response'splanOptions.freeTiergives the outcome.- Parameters:
freeTierInclusion- Whether to include a Free plan. Absent: the segment's default, which considers a Free plan for CONSUMER and PROSUMER and not for ENTERPRISE; with apricingModelPreference, a Free plan is considered only for TIERED. INCLUDE with nopricingModelPreferencelimits the choice to TIERED; INCLUDE with a PER_USE, PER_USE_SPLIT or FLAT preference is rejected. The response'splanOptions.freeTiergives the outcome.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
freeTierInclusion
Whether to include a Free plan. Absent: the segment's default, which considers a Free plan for CONSUMER and PROSUMER and not for ENTERPRISE; with a
pricingModelPreference, a Free plan is considered only for TIERED. INCLUDE with nopricingModelPreferencelimits the choice to TIERED; INCLUDE with a PER_USE, PER_USE_SPLIT or FLAT preference is rejected. The response'splanOptions.freeTiergives the outcome.- Parameters:
freeTierInclusion- Whether to include a Free plan. Absent: the segment's default, which considers a Free plan for CONSUMER and PROSUMER and not for ENTERPRISE; with apricingModelPreference, a Free plan is considered only for TIERED. INCLUDE with nopricingModelPreferencelimits the choice to TIERED; INCLUDE with a PER_USE, PER_USE_SPLIT or FLAT preference is rejected. The response'splanOptions.freeTiergives the outcome.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxTierInclusion
Whether to include a Max plan for heavy users. On the default menu for CONSUMER and PROSUMER; for ENTERPRISE only when this is INCLUDE. Only with a value estimate: when no action has a value basis (
minutesSaved,moneySavedorvaluePerUse) and there is no experiential estimate (seevalueKind), the price is cost-based and this is ignored, with no error: the response has no Max plan and noplanOptions.maxTieroutcome. A Max plan goes with a TIERED or FLAT model, never PER_USE or PER_USE_SPLIT: INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected, and a per-use model the service chooses has no Max plan. Absent, for CONSUMER and PROSUMER: a TIERED recommendation includes it unless it would clearly lower the modeled profit or almost no paying customer would move up to it; a FLAT one includes it only when it improves the recommendation. Absent, for ENTERPRISE: no Max plan. A TIERED Max is unlimited (includedQuantity1,000,000,000 with NO_OVERAGE_THROTTLE) unless its buyers' usage would cost too much of the Max price; then it has an allowance and overage. A FLAT Max always has an allowance.- Parameters:
maxTierInclusion- Whether to include a Max plan for heavy users. On the default menu for CONSUMER and PROSUMER; for ENTERPRISE only when this is INCLUDE. Only with a value estimate: when no action has a value basis (minutesSaved,moneySavedorvaluePerUse) and there is no experiential estimate (seevalueKind), the price is cost-based and this is ignored, with no error: the response has no Max plan and noplanOptions.maxTieroutcome. A Max plan goes with a TIERED or FLAT model, never PER_USE or PER_USE_SPLIT: INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected, and a per-use model the service chooses has no Max plan. Absent, for CONSUMER and PROSUMER: a TIERED recommendation includes it unless it would clearly lower the modeled profit or almost no paying customer would move up to it; a FLAT one includes it only when it improves the recommendation. Absent, for ENTERPRISE: no Max plan. A TIERED Max is unlimited (includedQuantity1,000,000,000 with NO_OVERAGE_THROTTLE) unless its buyers' usage would cost too much of the Max price; then it has an allowance and overage. A FLAT Max always has an allowance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxTierInclusion
Whether to include a Max plan for heavy users. On the default menu for CONSUMER and PROSUMER; for ENTERPRISE only when this is INCLUDE. Only with a value estimate: when no action has a value basis (
minutesSaved,moneySavedorvaluePerUse) and there is no experiential estimate (seevalueKind), the price is cost-based and this is ignored, with no error: the response has no Max plan and noplanOptions.maxTieroutcome. A Max plan goes with a TIERED or FLAT model, never PER_USE or PER_USE_SPLIT: INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected, and a per-use model the service chooses has no Max plan. Absent, for CONSUMER and PROSUMER: a TIERED recommendation includes it unless it would clearly lower the modeled profit or almost no paying customer would move up to it; a FLAT one includes it only when it improves the recommendation. Absent, for ENTERPRISE: no Max plan. A TIERED Max is unlimited (includedQuantity1,000,000,000 with NO_OVERAGE_THROTTLE) unless its buyers' usage would cost too much of the Max price; then it has an allowance and overage. A FLAT Max always has an allowance.- Parameters:
maxTierInclusion- Whether to include a Max plan for heavy users. On the default menu for CONSUMER and PROSUMER; for ENTERPRISE only when this is INCLUDE. Only with a value estimate: when no action has a value basis (minutesSaved,moneySavedorvaluePerUse) and there is no experiential estimate (seevalueKind), the price is cost-based and this is ignored, with no error: the response has no Max plan and noplanOptions.maxTieroutcome. A Max plan goes with a TIERED or FLAT model, never PER_USE or PER_USE_SPLIT: INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected, and a per-use model the service chooses has no Max plan. Absent, for CONSUMER and PROSUMER: a TIERED recommendation includes it unless it would clearly lower the modeled profit or almost no paying customer would move up to it; a FLAT one includes it only when it improves the recommendation. Absent, for ENTERPRISE: no Max plan. A TIERED Max is unlimited (includedQuantity1,000,000,000 with NO_OVERAGE_THROTTLE) unless its buyers' usage would cost too much of the Max price; then it has an allowance and overage. A FLAT Max always has an allowance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
annualPlanInclusion
Whether to add an annual plan (
Annual). Absent: it is added when a subscription (FLAT or TIERED) is recommended, without changing the pricing model, unless every action is used less than once a month on average (typicalMonthlyUsagebelow 1). INCLUDE adds it at any usage and, when the request sends nopricingModelPreference, also limits the choice to subscriptions; INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected. EXCLUDE leaves it out.- Parameters:
annualPlanInclusion- Whether to add an annual plan (Annual). Absent: it is added when a subscription (FLAT or TIERED) is recommended, without changing the pricing model, unless every action is used less than once a month on average (typicalMonthlyUsagebelow 1). INCLUDE adds it at any usage and, when the request sends nopricingModelPreference, also limits the choice to subscriptions; INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected. EXCLUDE leaves it out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
annualPlanInclusion
Whether to add an annual plan (
Annual). Absent: it is added when a subscription (FLAT or TIERED) is recommended, without changing the pricing model, unless every action is used less than once a month on average (typicalMonthlyUsagebelow 1). INCLUDE adds it at any usage and, when the request sends nopricingModelPreference, also limits the choice to subscriptions; INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected. EXCLUDE leaves it out.- Parameters:
annualPlanInclusion- Whether to add an annual plan (Annual). Absent: it is added when a subscription (FLAT or TIERED) is recommended, without changing the pricing model, unless every action is used less than once a month on average (typicalMonthlyUsagebelow 1). INCLUDE adds it at any usage and, when the request sends nopricingModelPreference, also limits the choice to subscriptions; INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected. EXCLUDE leaves it out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creditPackInclusion
Whether to add one-time credit packs alongside the plans, the response's
creditPacks. Absent: EXCLUDE. INCLUDE is allowed with every pricing model, per-use included.- Parameters:
creditPackInclusion- Whether to add one-time credit packs alongside the plans, the response'screditPacks. Absent: EXCLUDE. INCLUDE is allowed with every pricing model, per-use included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creditPackInclusion
Whether to add one-time credit packs alongside the plans, the response's
creditPacks. Absent: EXCLUDE. INCLUDE is allowed with every pricing model, per-use included.- Parameters:
creditPackInclusion- Whether to add one-time credit packs alongside the plans, the response'screditPacks. Absent: EXCLUDE. INCLUDE is allowed with every pricing model, per-use included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
planPrices
Prices to evaluate instead of the recommended ones, one per plan. Each is evaluated against the same modeled demand and returned in
planOptions.evaluatedPlanPrices, with the recommended plans and credit packs rebuilt at that price; the recommendation itself does not change. Aproprice is evaluated with the Max plan as recommended; when that Max would sit too close to theproprice, Max is re-priced or left out, as the recommendation does when it moves Pro, and the rendered text says which. Amaxprice in the same request does not change this, so aproitem is the same as for thatproprice alone. Amaxprice must be above Pro's price, and is evaluated with this request'sproprice if it has one. Absent: none, andplanOptions.evaluatedPlanPricesis empty.- Parameters:
planPrices- Prices to evaluate instead of the recommended ones, one per plan. Each is evaluated against the same modeled demand and returned inplanOptions.evaluatedPlanPrices, with the recommended plans and credit packs rebuilt at that price; the recommendation itself does not change. Aproprice is evaluated with the Max plan as recommended; when that Max would sit too close to theproprice, Max is re-priced or left out, as the recommendation does when it moves Pro, and the rendered text says which. Amaxprice in the same request does not change this, so aproitem is the same as for thatproprice alone. Amaxprice must be above Pro's price, and is evaluated with this request'sproprice if it has one. Absent: none, andplanOptions.evaluatedPlanPricesis empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
planPrices
Prices to evaluate instead of the recommended ones, one per plan. Each is evaluated against the same modeled demand and returned in
planOptions.evaluatedPlanPrices, with the recommended plans and credit packs rebuilt at that price; the recommendation itself does not change. Aproprice is evaluated with the Max plan as recommended; when that Max would sit too close to theproprice, Max is re-priced or left out, as the recommendation does when it moves Pro, and the rendered text says which. Amaxprice in the same request does not change this, so aproitem is the same as for thatproprice alone. Amaxprice must be above Pro's price, and is evaluated with this request'sproprice if it has one. Absent: none, andplanOptions.evaluatedPlanPricesis empty.- Parameters:
planPrices- Prices to evaluate instead of the recommended ones, one per plan. Each is evaluated against the same modeled demand and returned inplanOptions.evaluatedPlanPrices, with the recommended plans and credit packs rebuilt at that price; the recommendation itself does not change. Aproprice is evaluated with the Max plan as recommended; when that Max would sit too close to theproprice, Max is re-priced or left out, as the recommendation does when it moves Pro, and the rendered text says which. Amaxprice in the same request does not change this, so aproitem is the same as for thatproprice alone. Amaxprice must be above Pro's price, and is evaluated with this request'sproprice if it has one. Absent: none, andplanOptions.evaluatedPlanPricesis empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
planPrices
Prices to evaluate instead of the recommended ones, one per plan. Each is evaluated against the same modeled demand and returned in
This is a convenience method that creates an instance of theplanOptions.evaluatedPlanPrices, with the recommended plans and credit packs rebuilt at that price; the recommendation itself does not change. Aproprice is evaluated with the Max plan as recommended; when that Max would sit too close to theproprice, Max is re-priced or left out, as the recommendation does when it moves Pro, and the rendered text says which. Amaxprice in the same request does not change this, so aproitem is the same as for thatproprice alone. Amaxprice must be above Pro's price, and is evaluated with this request'sproprice if it has one. Absent: none, andplanOptions.evaluatedPlanPricesis empty.PlanPrice.Builderavoiding the need to create one manually viaPlanPrice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toplanPrices(List<PlanPrice>).- Parameters:
planPrices- a consumer that will call methods onPlanPrice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
publishedPrice
Your current or intended monthly price, in USD (another currencyCode is rejected). Shown for comparison, except when no action has a value basis and no comparables are used: then it is the recommended price, raised to cost to serve at the lowest margin in
costs.margins(0, which is cost, when margins are omitted) when it is below that. Absent: no price is shown for comparison, and the price comes from the value estimate, comparables or cost.- Parameters:
publishedPrice- Your current or intended monthly price, in USD (another currencyCode is rejected). Shown for comparison, except when no action has a value basis and no comparables are used: then it is the recommended price, raised to cost to serve at the lowest margin incosts.margins(0, which is cost, when margins are omitted) when it is below that. Absent: no price is shown for comparison, and the price comes from the value estimate, comparables or cost.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publishedPrice
Your current or intended monthly price, in USD (another currencyCode is rejected). Shown for comparison, except when no action has a value basis and no comparables are used: then it is the recommended price, raised to cost to serve at the lowest margin in
This is a convenience method that creates an instance of thecosts.margins(0, which is cost, when margins are omitted) when it is below that. Absent: no price is shown for comparison, and the price comes from the value estimate, comparables or cost.PublishedPrice.Builderavoiding the need to create one manually viaPublishedPrice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topublishedPrice(PublishedPrice).- Parameters:
publishedPrice- a consumer that will call methods onPublishedPrice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-