Class AppQuotaConfig
java.lang.Object
software.amazon.awssdk.services.appmonetization.model.AppQuotaConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AppQuotaConfig.Builder,AppQuotaConfig>
@Generated("software.amazon.awssdk:codegen")
public final class AppQuotaConfig
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<AppQuotaConfig.Builder,AppQuotaConfig>
How one metric is priced on a plan: exactly one of a flat grant or a tiered-priced grant. Both arms carry the free
allowance (includedQuantity) with the same meaning.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic AppQuotaConfig.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final AppQuotaflat()A flat grant: free allowance plus an optional overage policy.static AppQuotaConfigfromFlat(Consumer<AppQuota.Builder> flat) Create an instance of this class withflat()initialized to the given value.static AppQuotaConfigCreate an instance of this class withflat()initialized to the given value.static AppQuotaConfigfromTiered(Consumer<AppTieredQuota.Builder> tiered) Create an instance of this class withtiered()initialized to the given value.static AppQuotaConfigfromTiered(AppTieredQuota tiered) Create an instance of this class withtiered()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends AppQuotaConfig.Builder> final AppTieredQuotatiered()A tiered-priced grant: free allowance plus a tier-ladder price schedule.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.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
flat
A flat grant: free allowance plus an optional overage policy.
- Returns:
- A flat grant: free allowance plus an optional overage policy.
-
tiered
A tiered-priced grant: free allowance plus a tier-ladder price schedule.
- Returns:
- A tiered-priced grant: free allowance plus a tier-ladder price schedule.
-
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<AppQuotaConfig.Builder,AppQuotaConfig> - 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
-
fromFlat
Create an instance of this class withflat()initialized to the given value.A flat grant: free allowance plus an optional overage policy.
- Parameters:
flat- A flat grant: free allowance plus an optional overage policy.
-
fromFlat
Create an instance of this class withflat()initialized to the given value.A flat grant: free allowance plus an optional overage policy.
- Parameters:
flat- A flat grant: free allowance plus an optional overage policy.
-
fromTiered
Create an instance of this class withtiered()initialized to the given value.A tiered-priced grant: free allowance plus a tier-ladder price schedule.
- Parameters:
tiered- A tiered-priced grant: free allowance plus a tier-ladder price schedule.
-
fromTiered
Create an instance of this class withtiered()initialized to the given value.A tiered-priced grant: free allowance plus a tier-ladder price schedule.
- Parameters:
tiered- A tiered-priced grant: free allowance plus a tier-ladder price schedule.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beAppQuotaConfig.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beAppQuotaConfig.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-