Class SavingsPlans
- java.lang.Object
-
- software.amazon.awssdk.services.costexplorer.model.SavingsPlans
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SavingsPlans.Builder,SavingsPlans>
@Generated("software.amazon.awssdk:codegen") public final class SavingsPlans extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SavingsPlans.Builder,SavingsPlans>
The Savings Plans commitment details.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSavingsPlans.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SavingsPlans.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceFamily()The instance family of the Savings Plans commitment.StringofferingId()The unique ID that's used to distinguish Savings Plans commitments from one another.PaymentOptionpaymentOption()The payment option for the Savings Plans commitment.StringpaymentOptionAsString()The payment option for the Savings Plans commitment.Stringregion()The Region associated with the Savings Plans commitment.DoublesavingsPlansCommitment()The Savings Plans commitment.SupportedSavingsPlansTypesavingsPlansType()The Savings Plans type.StringsavingsPlansTypeAsString()The Savings Plans type.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SavingsPlans.Builder>serializableBuilderClass()TermInYearstermInYears()The term that you want the Savings Plans commitment for.StringtermInYearsAsString()The term that you want the Savings Plans commitment for.SavingsPlans.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
paymentOption
public final PaymentOption paymentOption()
The payment option for the Savings Plans commitment.
If the service returns an enum value that is not available in the current SDK version,
paymentOptionwill returnPaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompaymentOptionAsString().- Returns:
- The payment option for the Savings Plans commitment.
- See Also:
PaymentOption
-
paymentOptionAsString
public final String paymentOptionAsString()
The payment option for the Savings Plans commitment.
If the service returns an enum value that is not available in the current SDK version,
paymentOptionwill returnPaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompaymentOptionAsString().- Returns:
- The payment option for the Savings Plans commitment.
- See Also:
PaymentOption
-
savingsPlansType
public final SupportedSavingsPlansType savingsPlansType()
The Savings Plans type.
If the service returns an enum value that is not available in the current SDK version,
savingsPlansTypewill returnSupportedSavingsPlansType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsavingsPlansTypeAsString().- Returns:
- The Savings Plans type.
- See Also:
SupportedSavingsPlansType
-
savingsPlansTypeAsString
public final String savingsPlansTypeAsString()
The Savings Plans type.
If the service returns an enum value that is not available in the current SDK version,
savingsPlansTypewill returnSupportedSavingsPlansType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsavingsPlansTypeAsString().- Returns:
- The Savings Plans type.
- See Also:
SupportedSavingsPlansType
-
region
public final String region()
The Region associated with the Savings Plans commitment.
- Returns:
- The Region associated with the Savings Plans commitment.
-
instanceFamily
public final String instanceFamily()
The instance family of the Savings Plans commitment.
- Returns:
- The instance family of the Savings Plans commitment.
-
termInYears
public final TermInYears termInYears()
The term that you want the Savings Plans commitment for.
If the service returns an enum value that is not available in the current SDK version,
termInYearswill returnTermInYears.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtermInYearsAsString().- Returns:
- The term that you want the Savings Plans commitment for.
- See Also:
TermInYears
-
termInYearsAsString
public final String termInYearsAsString()
The term that you want the Savings Plans commitment for.
If the service returns an enum value that is not available in the current SDK version,
termInYearswill returnTermInYears.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtermInYearsAsString().- Returns:
- The term that you want the Savings Plans commitment for.
- See Also:
TermInYears
-
savingsPlansCommitment
public final Double savingsPlansCommitment()
The Savings Plans commitment.
- Returns:
- The Savings Plans commitment.
-
offeringId
public final String offeringId()
The unique ID that's used to distinguish Savings Plans commitments from one another.
- Returns:
- The unique ID that's used to distinguish Savings Plans commitments from one another.
-
toBuilder
public SavingsPlans.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SavingsPlans.Builder,SavingsPlans>
-
builder
public static SavingsPlans.Builder builder()
-
serializableBuilderClass
public static Class<? extends SavingsPlans.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-