Class BillableAction
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BillableAction.Builder,BillableAction>
One billable action: something a user does that costs money to serve and can be charged for.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BillableAction.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final DoubleMinutes one unit saves a customer compared with doing the task by hand.final DoubleMoney one use saves the buyer, in USD: what they would otherwise spend on it (a service, a contractor, compute or paid staff time).final Stringname()Action name, used as the metric key inplans,unitPricesandcreditPacks.static Class<? extends BillableAction.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 DoubleTypical number of units one user consumes per month.final Stringunit()Unit the action is counted in, for examplelessonorreport.final DoubleunitCost()Cost to serve one unit, in USD.final DoubleValue of one unit to a typical customer, in USD: the final dollar value of one use (valueSharedoes not apply), for an action that saves no time or money but has a dollar value (for example a lead worth 2 USD).Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
Action name, used as the metric key in
plans,unitPricesandcreditPacks. Unique within the request. Required when there is more than one action. Absent with exactly one action:usage.- Returns:
- Action name, used as the metric key in
plans,unitPricesandcreditPacks. Unique within the request. Required when there is more than one action. Absent with exactly one action:usage.
-
unit
Unit the action is counted in, for example
lessonorreport. Defaults toname.- Returns:
- Unit the action is counted in, for example
lessonorreport. Defaults toname.
-
unitCost
Cost to serve one unit, in USD. Give it on every action or on none: required when another action has
unitCost, and whencosts.sourceis ACTUALS, LIVE or ESTIMATE. Absent on every action: cost to serve is not checked (costs.sourceNONE). When any action'sunitCostis 0,costs.sourceis required.- Returns:
- Cost to serve one unit, in USD. Give it on every action or on none: required when another action has
unitCost, and whencosts.sourceis ACTUALS, LIVE or ESTIMATE. Absent on every action: cost to serve is not checked (costs.sourceNONE). When any action'sunitCostis 0,costs.sourceis required.
-
typicalMonthlyUsage
Typical number of units one user consumes per month.
- Returns:
- Typical number of units one user consumes per month.
-
minutesSaved
Minutes one unit saves a customer compared with doing the task by hand. Sets the value of one use, together with
hourlyRate(required with it):minutesSaved/ 60 xhourlyRatex the value share thatvalueSharedescribes. Give at most one ofminutesSaved,moneySavedandvaluePerUseper action: a request that gives two on the same action is rejected. Rejected withvalueKindEXPERIENTIAL, as aremoneySavedandvaluePerUse. Absent: this action's value, if any, ismoneySavedorvaluePerUse(seevaluePerUsefor no value).- Returns:
- Minutes one unit saves a customer compared with doing the task by hand. Sets the value of one use,
together with
hourlyRate(required with it):minutesSaved/ 60 xhourlyRatex the value share thatvalueSharedescribes. Give at most one ofminutesSaved,moneySavedandvaluePerUseper action: a request that gives two on the same action is rejected. Rejected withvalueKindEXPERIENTIAL, as aremoneySavedandvaluePerUse. Absent: this action's value, if any, ismoneySavedorvaluePerUse(seevaluePerUsefor no value).
-
moneySaved
Money one use saves the buyer, in USD: what they would otherwise spend on it (a service, a contractor, compute or paid staff time). The server values one use at a share of it; the share is set server-side, not an input (
valueSharedoes not apply). Give at most one ofminutesSaved,moneySavedandvaluePerUseper action: a request that gives two on the same action is rejected. UsevaluePerUsewhen you have already worked out the dollar value of one use. Rejected withvalueKindEXPERIENTIAL. Absent: this action's value, if any, isminutesSavedorvaluePerUse(seevaluePerUsefor no value).- Returns:
- Money one use saves the buyer, in USD: what they would otherwise spend on it (a service, a contractor,
compute or paid staff time). The server values one use at a share of it; the share is set server-side,
not an input (
valueSharedoes not apply). Give at most one ofminutesSaved,moneySavedandvaluePerUseper action: a request that gives two on the same action is rejected. UsevaluePerUsewhen you have already worked out the dollar value of one use. Rejected withvalueKindEXPERIENTIAL. Absent: this action's value, if any, isminutesSavedorvaluePerUse(seevaluePerUsefor no value).
-
valuePerUse
Value of one unit to a typical customer, in USD: the final dollar value of one use (
valueSharedoes not apply), for an action that saves no time or money but has a dollar value (for example a lead worth 2 USD). Give at most one ofminutesSaved,moneySavedandvaluePerUseper action: a request that gives two on the same action is rejected. One of them is required when another action has a value basis (0 is allowed). 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. For an action whose value is the time it saves, giveminutesSavedinstead; say how the figures were worked out incontext.valueBasis. Rejected withvalueKindEXPERIENTIAL.- Returns:
- Value of one unit to a typical customer, in USD: the final dollar value of one use (
valueSharedoes not apply), for an action that saves no time or money but has a dollar value (for example a lead worth 2 USD). Give at most one ofminutesSaved,moneySavedandvaluePerUseper action: a request that gives two on the same action is rejected. One of them is required when another action has a value basis (0 is allowed). 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. For an action whose value is the time it saves, giveminutesSavedinstead; say how the figures were worked out incontext.valueBasis. Rejected withvalueKindEXPERIENTIAL.
-
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<BillableAction.Builder,BillableAction> - 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.
-