Class CostInputs
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CostInputs.Builder,CostInputs>
Cost inputs beyond each action's unitCost. Couplings outside this group: margins sets the
lowest credit-pack and overage price per unit; fixedMonthlyCost with market.expectedUsers
sets the fixed cost per payer; HIGH confidence needs source LIVE or ACTUALS plus comparables in
alternatives that agree.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CostInputs.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final DoubleFixed monthly cost to run the app in USD, including non-AWS fixed costs.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 Margins property.final booleanFor responses, this returns true if the service returned a value for the Unknown property.margins()Margins the developer named, each in [0, 1).static Class<? extends CostInputs.Builder> final CostSourcesource()Where the cost figures came from.final StringWhere the cost figures came from.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.unknown()Costs the developer knows exist but could not price, for exampleemail provider.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
source
Where the cost figures came from. Required when any
actions[].unitCostis 0. Absent: NONE when no action hasunitCost, ESTIMATE when every action has it. ACTUALS, LIVE and ESTIMATE needunitCoston every action.If the service returns an enum value that is not available in the current SDK version,
sourcewill returnCostSource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsourceAsString().- Returns:
- Where the cost figures came from. Required when any
actions[].unitCostis 0. Absent: NONE when no action hasunitCost, ESTIMATE when every action has it. ACTUALS, LIVE and ESTIMATE needunitCoston every action. - See Also:
-
sourceAsString
Where the cost figures came from. Required when any
actions[].unitCostis 0. Absent: NONE when no action hasunitCost, ESTIMATE when every action has it. ACTUALS, LIVE and ESTIMATE needunitCoston every action.If the service returns an enum value that is not available in the current SDK version,
sourcewill returnCostSource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsourceAsString().- Returns:
- Where the cost figures came from. Required when any
actions[].unitCostis 0. Absent: NONE when no action hasunitCost, ESTIMATE when every action has it. ACTUALS, LIVE and ESTIMATE needunitCoston every action. - See Also:
-
hasUnknown
public final boolean hasUnknown()For responses, this returns true if the service returned a value for the Unknown 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. -
unknown
Costs the developer knows exist but could not price, for example
email provider. Omitted: the costs count as complete but unconfirmed, and the rendered text asks the developer to add any that are missing. Empty ([]): the developer confirmed there are no other costs. One or more items: the costs are incomplete, socosts.statusin the response is INCOMPLETE and the confidence is LOW, and the rendered text names each item. WithsourceNONE the items are only shown.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
hasUnknown()method.- Returns:
- Costs the developer knows exist but could not price, for example
email provider. Omitted: the costs count as complete but unconfirmed, and the rendered text asks the developer to add any that are missing. Empty ([]): the developer confirmed there are no other costs. One or more items: the costs are incomplete, socosts.statusin the response is INCOMPLETE and the confidence is LOW, and the rendered text names each item. WithsourceNONE the items are only shown.
-
fixedMonthlyCost
Fixed monthly cost to run the app in USD, including non-AWS fixed costs. Defaults to 0. It raises break-even (fixed cost per payer, with
market.expectedUsers), so it can change the verdict and the price.- Returns:
- Fixed monthly cost to run the app in USD, including non-AWS fixed costs. Defaults to 0. It raises
break-even (fixed cost per payer, with
market.expectedUsers), so it can change the verdict and the price.
-
hasMargins
public final boolean hasMargins()For responses, this returns true if the service returned a value for the Margins 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. -
margins
Margins the developer named, each in [0, 1).
costs.coverPricesin the response shows the price that covers cost to serve at each margin above 0. The lowest margin also sets the lowest overage and credit-pack price per unit; order does not matter. With no value basis and no experiential estimate (seevalueKind) the price is cost to serve at the lowest margin; omitted means a default margin of 0, labelled as a default, which prices at cost, the same as[0]. Omitted, or only 0:costs.coverPricesin the response is 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
hasMargins()method.- Returns:
- Margins the developer named, each in [0, 1).
costs.coverPricesin the response shows the price that covers cost to serve at each margin above 0. The lowest margin also sets the lowest overage and credit-pack price per unit; order does not matter. With no value basis and no experiential estimate (seevalueKind) the price is cost to serve at the lowest margin; omitted means a default margin of 0, labelled as a default, which prices at cost, the same as[0]. Omitted, or only 0:costs.coverPricesin the response is empty.
-
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<CostInputs.Builder,CostInputs> - 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.
-