Class Comparable
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Comparable.Builder,Comparable>
A comparable app, read from its public pricing page. Give quality or features: one of them
is required.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparable.Builderbuilder()final Doublecap()Monthly usage cap of the free tier, for FREE_CAPPED and FREEMIUM.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.features()Its scores on the characteristics infeatures, instead ofquality.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the Features property.final inthashCode()final DoubleFor PAID_SUB: units of this app's billable action the plan includes per month.final ComparableMechanismHow the comparable charges.final StringHow the comparable charges.final Stringname()Short name of the comparable app.final DoubleFor PAID_SUB withincludedUnits: price per unit past the allowance, in USD.final Priceprice()Its price: per month for PAID_SUB, per use for PER_REQUEST, 0 for FREE_CAPPED and FREEMIUM, the one-time price for ONE_TIME.final Doublequality()How good it is compared with this app, where this app is 1.static Class<? extends Comparable.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 Stringurl()The public pricing page the price was read from.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
Short name of the comparable app. Absent: the host of
url, lowercased, without a leadingwww.; when two comparables get the same name, the later ones get(2),(3).- Returns:
- Short name of the comparable app. Absent: the host of
url, lowercased, without a leadingwww.; when two comparables get the same name, the later ones get(2),(3).
-
url
The public pricing page the price was read from.
- Returns:
- The public pricing page the price was read from.
-
mechanism
How the comparable charges.
If the service returns an enum value that is not available in the current SDK version,
mechanismwill returnComparableMechanism.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommechanismAsString().- Returns:
- How the comparable charges.
- See Also:
-
mechanismAsString
How the comparable charges.
If the service returns an enum value that is not available in the current SDK version,
mechanismwill returnComparableMechanism.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommechanismAsString().- Returns:
- How the comparable charges.
- See Also:
-
price
Its price: per month for PAID_SUB, per use for PER_REQUEST, 0 for FREE_CAPPED and FREEMIUM, the one-time price for ONE_TIME. USD only: another currencyCode is rejected.
- Returns:
- Its price: per month for PAID_SUB, per use for PER_REQUEST, 0 for FREE_CAPPED and FREEMIUM, the one-time price for ONE_TIME. USD only: another currencyCode is rejected.
-
cap
Monthly usage cap of the free tier, for FREE_CAPPED and FREEMIUM. A free tier without a cap is not used.
- Returns:
- Monthly usage cap of the free tier, for FREE_CAPPED and FREEMIUM. A free tier without a cap is not used.
-
includedUnits
For PAID_SUB: units of this app's billable action the plan includes per month. With
overageRate, a customer pays the plan price plus overage at their own usage; without it, the plan stops at this allowance. Absent: the plan price covers any usage.- Returns:
- For PAID_SUB: units of this app's billable action the plan includes per month. With
overageRate, a customer pays the plan price plus overage at their own usage; without it, the plan stops at this allowance. Absent: the plan price covers any usage.
-
overageRate
For PAID_SUB with
includedUnits: price per unit past the allowance, in USD. Absent: the plan stops atincludedUnits(no overage).- Returns:
- For PAID_SUB with
includedUnits: price per unit past the allowance, in USD. Absent: the plan stops atincludedUnits(no overage).
-
quality
How good it is compared with this app, where this app is 1.
- Returns:
- How good it is compared with this app, where this app is 1.
-
hasFeatures
public final boolean hasFeatures()For responses, this returns true if the service returned a value for the Features 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. -
features
Its scores on the characteristics in
features, instead ofquality. Required whenqualityis absent.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
hasFeatures()method.- Returns:
- Its scores on the characteristics in
features, instead ofquality. Required whenqualityis absent.
-
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<Comparable.Builder,Comparable> - 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.
-