Class BillingPreferenceSummary
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BillingPreferenceSummary.Builder,BillingPreferenceSummary>
A single billing preference entry returned by GetBillingPreferences.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe associated Amazon Web Services account ID.final StringThe display name of the account.final BillingPeriodThe billing period associated with the preference change.builder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final BillingFeaturefeature()The feature this preference belongs to.final StringThe feature this preference belongs to.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringkey()The preference key.static Class<? extends BillingPreferenceSummary.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 PreferenceValuevalue()The preference value.final StringThe preference value.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
feature
The feature this preference belongs to.
If the service returns an enum value that is not available in the current SDK version,
featurewill returnBillingFeature.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfeatureAsString().- Returns:
- The feature this preference belongs to.
- See Also:
-
featureAsString
The feature this preference belongs to.
If the service returns an enum value that is not available in the current SDK version,
featurewill returnBillingFeature.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfeatureAsString().- Returns:
- The feature this preference belongs to.
- See Also:
-
key
The preference key. Format depends on the feature.
- Returns:
- The preference key. Format depends on the feature.
-
value
The preference value. Valid values:
ENABLEDorDISABLED.If the service returns an enum value that is not available in the current SDK version,
valuewill returnPreferenceValue.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvalueAsString().- Returns:
- The preference value. Valid values:
ENABLEDorDISABLED. - See Also:
-
valueAsString
The preference value. Valid values:
ENABLEDorDISABLED.If the service returns an enum value that is not available in the current SDK version,
valuewill returnPreferenceValue.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvalueAsString().- Returns:
- The preference value. Valid values:
ENABLEDorDISABLED. - See Also:
-
accountName
The display name of the account. Populated together with
accountId;nullotherwise.- Returns:
- The display name of the account. Populated together with
accountId;nullotherwise.
-
accountId
The associated Amazon Web Services account ID. Populated for account-list keys;
nullotherwise.- Returns:
- The associated Amazon Web Services account ID. Populated for account-list keys;
nullotherwise.
-
billingPeriod
The billing period associated with the preference change. Populated only for the history features
RI_SHARING_HISTORYandCREDIT_SHARING_HISTORY.- Returns:
- The billing period associated with the preference change. Populated only for the history features
RI_SHARING_HISTORYandCREDIT_SHARING_HISTORY.
-
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<BillingPreferenceSummary.Builder,BillingPreferenceSummary> - 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.
-