Class ParentSavingsPlanOffering
- java.lang.Object
-
- software.amazon.awssdk.services.savingsplans.model.ParentSavingsPlanOffering
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ParentSavingsPlanOffering.Builder,ParentSavingsPlanOffering>
@Generated("software.amazon.awssdk:codegen") public final class ParentSavingsPlanOffering extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ParentSavingsPlanOffering.Builder,ParentSavingsPlanOffering>
Information about a Savings Plan offering.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceParentSavingsPlanOffering.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParentSavingsPlanOffering.Builderbuilder()CurrencyCodecurrency()The currency.StringcurrencyAsString()The currency.LongdurationSeconds()The duration, in seconds.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringofferingId()The ID of the offering.SavingsPlanPaymentOptionpaymentOption()The payment option.StringpaymentOptionAsString()The payment option.StringplanDescription()The description.SavingsPlanTypeplanType()The plan type.StringplanTypeAsString()The plan type.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ParentSavingsPlanOffering.Builder>serializableBuilderClass()ParentSavingsPlanOffering.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
-
offeringId
public final String offeringId()
The ID of the offering.
- Returns:
- The ID of the offering.
-
paymentOption
public final SavingsPlanPaymentOption paymentOption()
The payment option.
If the service returns an enum value that is not available in the current SDK version,
paymentOptionwill returnSavingsPlanPaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompaymentOptionAsString().- Returns:
- The payment option.
- See Also:
SavingsPlanPaymentOption
-
paymentOptionAsString
public final String paymentOptionAsString()
The payment option.
If the service returns an enum value that is not available in the current SDK version,
paymentOptionwill returnSavingsPlanPaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompaymentOptionAsString().- Returns:
- The payment option.
- See Also:
SavingsPlanPaymentOption
-
planType
public final SavingsPlanType planType()
The plan type.
If the service returns an enum value that is not available in the current SDK version,
planTypewill returnSavingsPlanType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromplanTypeAsString().- Returns:
- The plan type.
- See Also:
SavingsPlanType
-
planTypeAsString
public final String planTypeAsString()
The plan type.
If the service returns an enum value that is not available in the current SDK version,
planTypewill returnSavingsPlanType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromplanTypeAsString().- Returns:
- The plan type.
- See Also:
SavingsPlanType
-
durationSeconds
public final Long durationSeconds()
The duration, in seconds.
- Returns:
- The duration, in seconds.
-
currency
public final CurrencyCode currency()
The currency.
If the service returns an enum value that is not available in the current SDK version,
currencywill returnCurrencyCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcurrencyAsString().- Returns:
- The currency.
- See Also:
CurrencyCode
-
currencyAsString
public final String currencyAsString()
The currency.
If the service returns an enum value that is not available in the current SDK version,
currencywill returnCurrencyCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcurrencyAsString().- Returns:
- The currency.
- See Also:
CurrencyCode
-
planDescription
public final String planDescription()
The description.
- Returns:
- The description.
-
toBuilder
public ParentSavingsPlanOffering.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ParentSavingsPlanOffering.Builder,ParentSavingsPlanOffering>
-
builder
public static ParentSavingsPlanOffering.Builder builder()
-
serializableBuilderClass
public static Class<? extends ParentSavingsPlanOffering.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
-
-