Class GetPlanRecommendationRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetPlanRecommendationRequest.Builder,GetPlanRecommendationRequest>
Input for GetPlanRecommendation. Only segment, appType and actions are
required. The optional inputs are grouped by what they describe: costs, alternatives,
market and planOptions. Each optional member's doc says what its absence means. The service
checks the inputs against each other itself and rejects, with a ValidationException naming the member, the
combinations stated on valueKind, hourlyRate, valueShare,
features, a customer type's featureWeights and the planOptions inclusion
members, each an input the rest of the request leaves unused or contradicts. Members this structure does not define
are ignored. Smallest call that returns MEDIUM confidence:
{"segment":"CONSUMER","appType":"DAILY_WORKFLOW","actions":[{"unitCost":0.02,"typicalMonthlyUsage":30,"valuePerUse":0.40}]}
.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal List<BillableAction> actions()The things that your app charges for, each with its cost to serve, typical usage, and value to a customer.final AlternativeInputsWhat customers could use instead of the app: comparable apps and what they do without any product.final StringappName()Display name of the app, used in the rendered text.appType()Kind of app.final StringKind of app.builder()final RequestContextcontext()Where the inputs came from, and notes on them.final CostInputscosts()Cost inputs beyond each action'sunitCost: where the costs came from, any costs that could not be priced, fixed monthly cost and target margins.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final FeatureScoresfeatures()How this app scores on the characteristics customers decide on, and how much each one matters.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final booleanFor responses, this returns true if the service returned a value for the Actions property.final inthashCode()final DoubleWhat one hour of a customer's time is worth, in USD: the hourly rate of the person whose time the app saves.final MarketInputsmarket()Who the customers are, how many there are and, for a deployed app, how many pay today; and any checkout drop-off rates to use instead of the benchmarks.final PlanOptionsThe pricing model and optional plans to consider, prices to evaluate, and the developer's own price (publishedPrice).final CustomerSegmentsegment()Who buys the app.final StringWho buys the app.static Class<? extends GetPlanRecommendationRequest.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.final ValueKindWhat kind of value the app gives its users.final StringWhat kind of value the app gives its users.final DoubleThe most a typical customer would pay for the app, as a share of the time value it saves them (minutesSaved/ 60 timeshourlyRate).Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
appName
Display name of the app, used in the rendered text. Absent:
your app.- Returns:
- Display name of the app, used in the rendered text. Absent:
your app.
-
segment
Who buys the app.
If the service returns an enum value that is not available in the current SDK version,
segmentwill returnCustomerSegment.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsegmentAsString().- Returns:
- Who buys the app.
- See Also:
-
segmentAsString
Who buys the app.
If the service returns an enum value that is not available in the current SDK version,
segmentwill returnCustomerSegment.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsegmentAsString().- Returns:
- Who buys the app.
- See Also:
-
appType
Kind of app. It sets the service's usage and value benchmarks for this kind of app.
If the service returns an enum value that is not available in the current SDK version,
appTypewill returnPlanRecommendationAppType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromappTypeAsString().- Returns:
- Kind of app. It sets the service's usage and value benchmarks for this kind of app.
- See Also:
-
appTypeAsString
Kind of app. It sets the service's usage and value benchmarks for this kind of app.
If the service returns an enum value that is not available in the current SDK version,
appTypewill returnPlanRecommendationAppType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromappTypeAsString().- Returns:
- Kind of app. It sets the service's usage and value benchmarks for this kind of app.
- See Also:
-
valueKind
What kind of value the app gives its users. Absent: PRODUCTIVITY. An experiential app has no time or money value, so with EXPERIENTIAL each of
actions[].minutesSaved,actions[].moneySaved,actions[].valuePerUse,hourlyRateandvalueSharethat is sent is rejected. With EXPERIENTIAL, noplanOptions.publishedPriceand no comparables used, a CONSUMER app is valued at the typical monthly price of public apps of itsappType(there is none for API_WRAPPER), shown as an estimate. That estimate is not used when it is too close to a typical user's usage cost, so the estimate alone never makes the verdict NOT_MONETIZABLE. The estimate exists only for CONSUMER: a PROSUMER or ENTERPRISE experiential app with noplanOptions.publishedPriceand no usable comparables is priced from cost (verdict COST_ONLY, or COST_NOT_CHECKED when costs are not checked: nounitCost, orcosts.sourceNONE; confidence LOW).If the service returns an enum value that is not available in the current SDK version,
valueKindwill returnValueKind.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvalueKindAsString().- Returns:
- What kind of value the app gives its users. Absent: PRODUCTIVITY. An experiential app has no time or
money value, so with EXPERIENTIAL each of
actions[].minutesSaved,actions[].moneySaved,actions[].valuePerUse,hourlyRateandvalueSharethat is sent is rejected. With EXPERIENTIAL, noplanOptions.publishedPriceand no comparables used, a CONSUMER app is valued at the typical monthly price of public apps of itsappType(there is none for API_WRAPPER), shown as an estimate. That estimate is not used when it is too close to a typical user's usage cost, so the estimate alone never makes the verdict NOT_MONETIZABLE. The estimate exists only for CONSUMER: a PROSUMER or ENTERPRISE experiential app with noplanOptions.publishedPriceand no usable comparables is priced from cost (verdict COST_ONLY, or COST_NOT_CHECKED when costs are not checked: nounitCost, orcosts.sourceNONE; confidence LOW). - See Also:
-
valueKindAsString
What kind of value the app gives its users. Absent: PRODUCTIVITY. An experiential app has no time or money value, so with EXPERIENTIAL each of
actions[].minutesSaved,actions[].moneySaved,actions[].valuePerUse,hourlyRateandvalueSharethat is sent is rejected. With EXPERIENTIAL, noplanOptions.publishedPriceand no comparables used, a CONSUMER app is valued at the typical monthly price of public apps of itsappType(there is none for API_WRAPPER), shown as an estimate. That estimate is not used when it is too close to a typical user's usage cost, so the estimate alone never makes the verdict NOT_MONETIZABLE. The estimate exists only for CONSUMER: a PROSUMER or ENTERPRISE experiential app with noplanOptions.publishedPriceand no usable comparables is priced from cost (verdict COST_ONLY, or COST_NOT_CHECKED when costs are not checked: nounitCost, orcosts.sourceNONE; confidence LOW).If the service returns an enum value that is not available in the current SDK version,
valueKindwill returnValueKind.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvalueKindAsString().- Returns:
- What kind of value the app gives its users. Absent: PRODUCTIVITY. An experiential app has no time or
money value, so with EXPERIENTIAL each of
actions[].minutesSaved,actions[].moneySaved,actions[].valuePerUse,hourlyRateandvalueSharethat is sent is rejected. With EXPERIENTIAL, noplanOptions.publishedPriceand no comparables used, a CONSUMER app is valued at the typical monthly price of public apps of itsappType(there is none for API_WRAPPER), shown as an estimate. That estimate is not used when it is too close to a typical user's usage cost, so the estimate alone never makes the verdict NOT_MONETIZABLE. The estimate exists only for CONSUMER: a PROSUMER or ENTERPRISE experiential app with noplanOptions.publishedPriceand no usable comparables is priced from cost (verdict COST_ONLY, or COST_NOT_CHECKED when costs are not checked: nounitCost, orcosts.sourceNONE; confidence LOW). - See Also:
-
hasActions
public final boolean hasActions()For responses, this returns true if the service returned a value for the Actions 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. -
actions
The things that your app charges for, each with its cost to serve, typical usage, and value to a customer. Names must be unique. Give a value basis (
minutesSaved,moneySavedorvaluePerUse, one per action) on every action or on none: when no action has a value basis and there is no experiential estimate (seevalueKind), the price is based on cost (and comparables, if opted in, orplanOptions.publishedPrice) and the confidence is LOW. GiveunitCoston every action or on none.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
hasActions()method.- Returns:
- The things that your app charges for, each with its cost to serve, typical usage, and value to a
customer. Names must be unique. Give a value basis (
minutesSaved,moneySavedorvaluePerUse, one per action) on every action or on none: when no action has a value basis and there is no experiential estimate (seevalueKind), the price is based on cost (and comparables, if opted in, orplanOptions.publishedPrice) and the confidence is LOW. GiveunitCoston every action or on none.
-
hourlyRate
What one hour of a customer's time is worth, in USD: the hourly rate of the person whose time the app saves. Required when any action has
minutesSaved. There is no default. It is used only withactions[].minutesSaved: sent when no action hasminutesSaved, or withvalueKindEXPERIENTIAL, it is rejected.- Returns:
- What one hour of a customer's time is worth, in USD: the hourly rate of the person whose time the app
saves. Required when any action has
minutesSaved. There is no default. It is used only withactions[].minutesSaved: sent when no action hasminutesSaved, or withvalueKindEXPERIENTIAL, it is rejected.
-
features
How this app scores on the characteristics customers decide on, and how much each one matters. Required when a comparable or an outside option in
alternativesis scored byfeatures, and used only then: sent when no comparable and no outside option is scored byfeatures, it is rejected. A comparable withalternatives.comparablesOptInOPTED_OUT is validated but not used, sofeaturesscored only against such comparables is validated with them and changes nothing. Absent: every comparable and outside option is scored by itsquality.- Returns:
- How this app scores on the characteristics customers decide on, and how much each one matters. Required
when a comparable or an outside option in
alternativesis scored byfeatures, and used only then: sent when no comparable and no outside option is scored byfeatures, it is rejected. A comparable withalternatives.comparablesOptInOPTED_OUT is validated but not used, sofeaturesscored only against such comparables is validated with them and changes nothing. Absent: every comparable and outside option is scored by itsquality.
-
costs
Cost inputs beyond each action's
unitCost: where the costs came from, any costs that could not be priced, fixed monthly cost and target margins. Absent:costs.sourceis inferred fromactions[].unitCost, and the costs count as complete but unconfirmed (seecosts.unknown).- Returns:
- Cost inputs beyond each action's
unitCost: where the costs came from, any costs that could not be priced, fixed monthly cost and target margins. Absent:costs.sourceis inferred fromactions[].unitCost, and the costs count as complete but unconfirmed (seecosts.unknown).
-
alternatives
What customers could use instead of the app: comparable apps and what they do without any product. Absent: no comparables (
comparablesOptInOPTED_OUT) and no outside options.- Returns:
- What customers could use instead of the app: comparable apps and what they do without any product.
Absent: no comparables (
comparablesOptInOPTED_OUT) and no outside options.
-
market
Who the customers are, how many there are and, for a deployed app, how many pay today; and any checkout drop-off rates to use instead of the benchmarks. Absent: each member's default (see
MarketInputs).- Returns:
- Who the customers are, how many there are and, for a deployed app, how many pay today; and any checkout
drop-off rates to use instead of the benchmarks. Absent: each member's default (see
MarketInputs).
-
planOptions
The pricing model and optional plans to consider, prices to evaluate, and the developer's own price (
publishedPrice). Absent: each member's default (seePlanOptions); the service chooses the pricing model and plans.- Returns:
- The pricing model and optional plans to consider, prices to evaluate, and the developer's own price (
publishedPrice). Absent: each member's default (seePlanOptions); the service chooses the pricing model and plans.
-
context
Where the inputs came from, and notes on them. Changes no price, plan, verdict or confidence label: only how
summaryanddetailslabel and word the inputs. Absent: the rendered text uses default labels.- Returns:
- Where the inputs came from, and notes on them. Changes no price, plan, verdict or confidence label: only
how
summaryanddetailslabel and word the inputs. Absent: the rendered text uses default labels.
-
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<GetPlanRecommendationRequest.Builder,GetPlanRecommendationRequest> - Specified by:
toBuilderin classAppMonetizationRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
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
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-