Class EvaluatedPlanPrice
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EvaluatedPlanPrice.Builder,EvaluatedPlanPrice>
Modeled monthly outcome of one price in the request's planOptions.planPrices.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EvaluatedPlanPrice.Builderbuilder()final List<RecommendedCreditPack> The credit packs at this price, in the same form as the response'screditPacks.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 booleanFor responses, this returns true if the service returned a value for the CreditPacks property.final inthashCode()final booleanhasPlans()For responses, this returns true if the service returned a value for the Plans property.final StringModeled monthly profit at this price, which can be negative.final DoubleModeled share of potential customers who pay, to 2 decimal places.final StringplanCode()The plan code this price was evaluated for.final List<RecommendedPlan> plans()The recommended plans rebuilt at this price by the same rules, in the same form as the response'splans: aproprice sets Pro's overage rates and the annual plan, and apay_as_you_gorate sets that action's rate.final Priceprice()The price evaluated: forpay_as_you_gowith anactionNamein the request, that action's rate.static Class<? extends EvaluatedPlanPrice.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 RecommendationVerdictverdict()Viability verdict at this price.final StringViability verdict at this price.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
planCode
The plan code this price was evaluated for.
- Returns:
- The plan code this price was evaluated for.
-
price
The price evaluated: for
pay_as_you_gowith anactionNamein the request, that action's rate.- Returns:
- The price evaluated: for
pay_as_you_gowith anactionNamein the request, that action's rate.
-
monthlyProfit
Modeled monthly profit at this price, which can be negative.
- Returns:
- Modeled monthly profit at this price, which can be negative.
-
verdict
Viability verdict at this price.
If the service returns an enum value that is not available in the current SDK version,
verdictwill returnRecommendationVerdict.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromverdictAsString().- Returns:
- Viability verdict at this price.
- See Also:
-
verdictAsString
Viability verdict at this price.
If the service returns an enum value that is not available in the current SDK version,
verdictwill returnRecommendationVerdict.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromverdictAsString().- Returns:
- Viability verdict at this price.
- See Also:
-
hasPlans
public final boolean hasPlans()For responses, this returns true if the service returned a value for the Plans 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. -
plans
The recommended plans rebuilt at this price by the same rules, in the same form as the response's
plans: aproprice sets Pro's overage rates and the annual plan, and apay_as_you_gorate sets that action's rate. At the recommended price, equal toplans.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
hasPlans()method.- Returns:
- The recommended plans rebuilt at this price by the same rules, in the same form as the response's
plans: aproprice sets Pro's overage rates and the annual plan, and apay_as_you_gorate sets that action's rate. At the recommended price, equal toplans.
-
hasCreditPacks
public final boolean hasCreditPacks()For responses, this returns true if the service returned a value for the CreditPacks 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. -
creditPacks
The credit packs at this price, in the same form as the response's
creditPacks. At the recommended price, equal tocreditPacks.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
hasCreditPacks()method.- Returns:
- The credit packs at this price, in the same form as the response's
creditPacks. At the recommended price, equal tocreditPacks.
-
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<EvaluatedPlanPrice.Builder,EvaluatedPlanPrice> - 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.
-