Class PlanOptions
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PlanOptions.Builder,PlanOptions>
The pricing model and optional plans to consider, prices to evaluate, and the developer's own price. The response's
planOptions.freeTier and planOptions.maxTier report the outcome of the inclusion members. A
per-use price has no Free, Max or Annual plan, so freeTierInclusion, maxTierInclusion or
annualPlanInclusion INCLUDE together with a pricingModelPreference of PER_USE or
PER_USE_SPLIT is rejected. A Free plan makes a flat price tiered, so freeTierInclusion INCLUDE with FLAT
is rejected too: TIERED with freeTierInclusion INCLUDE asks for a Free plan.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal PlanInclusionWhether to add an annual plan (Annual).final StringWhether to add an annual plan (Annual).static PlanOptions.Builderbuilder()final PlanInclusionWhether to add one-time credit packs alongside the plans, the response'screditPacks.final StringWhether to add one-time credit packs alongside the plans, the response'screditPacks.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final PlanInclusionWhether to include a Free plan.final StringWhether to include a Free plan.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the PlanPrices property.final PlanInclusionWhether to include a Max plan for heavy users.final StringWhether to include a Max plan for heavy users.Prices to evaluate instead of the recommended ones, one per plan.final PricingModelPricing model to use instead of letting the service choose.final StringPricing model to use instead of letting the service choose.final PublishedPriceYour current or intended monthly price, in USD (another currencyCode is rejected).static Class<? extends PlanOptions.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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.If the service returns an enum value that is not available in the current SDK version,
pricingModelPreferencewill returnPricingModel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompricingModelPreferenceAsString().- Returns:
- 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. - See Also:
-
pricingModelPreferenceAsString
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.If the service returns an enum value that is not available in the current SDK version,
pricingModelPreferencewill returnPricingModel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompricingModelPreferenceAsString().- Returns:
- 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. - 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.If the service returns an enum value that is not available in the current SDK version,
freeTierInclusionwill returnPlanInclusion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfreeTierInclusionAsString().- Returns:
- 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. - See Also:
-
freeTierInclusionAsString
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.If the service returns an enum value that is not available in the current SDK version,
freeTierInclusionwill returnPlanInclusion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfreeTierInclusionAsString().- Returns:
- 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. - 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.If the service returns an enum value that is not available in the current SDK version,
maxTierInclusionwill returnPlanInclusion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommaxTierInclusionAsString().- Returns:
- 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. - See Also:
-
maxTierInclusionAsString
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.If the service returns an enum value that is not available in the current SDK version,
maxTierInclusionwill returnPlanInclusion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommaxTierInclusionAsString().- Returns:
- 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. - 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.If the service returns an enum value that is not available in the current SDK version,
annualPlanInclusionwill returnPlanInclusion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromannualPlanInclusionAsString().- Returns:
- 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. - See Also:
-
annualPlanInclusionAsString
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.If the service returns an enum value that is not available in the current SDK version,
annualPlanInclusionwill returnPlanInclusion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromannualPlanInclusionAsString().- Returns:
- 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. - 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.If the service returns an enum value that is not available in the current SDK version,
creditPackInclusionwill returnPlanInclusion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcreditPackInclusionAsString().- Returns:
- 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. - See Also:
-
creditPackInclusionAsString
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.If the service returns an enum value that is not available in the current SDK version,
creditPackInclusionwill returnPlanInclusion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcreditPackInclusionAsString().- Returns:
- 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. - See Also:
-
hasPlanPrices
public final boolean hasPlanPrices()For responses, this returns true if the service returned a value for the PlanPrices property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
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.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPlanPrices()method.- Returns:
- 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.
-
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.- Returns:
- 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.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PlanOptions.Builder,PlanOptions> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-