@Generated(value="software.amazon.awssdk:codegen") public final class SavingsPlanOffering extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SavingsPlanOffering.Builder,SavingsPlanOffering>
Information about a Savings Plan offering.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SavingsPlanOffering.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SavingsPlanOffering.Builder |
builder() |
CurrencyCode |
currency()
The currency.
|
String |
currencyAsString()
The currency.
|
String |
description()
The description.
|
Long |
durationSeconds()
The duration, in seconds.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasProductTypes()
For responses, this returns true if the service returned a value for the ProductTypes property.
|
boolean |
hasProperties()
For responses, this returns true if the service returned a value for the Properties property.
|
String |
offeringId()
The ID of the offering.
|
String |
operation()
The specific AWS operation for the line item in the billing report.
|
SavingsPlanPaymentOption |
paymentOption()
The payment option.
|
String |
paymentOptionAsString()
The payment option.
|
SavingsPlanType |
planType()
The plan type.
|
String |
planTypeAsString()
The plan type.
|
List<SavingsPlanProductType> |
productTypes()
The product type.
|
List<String> |
productTypesAsStrings()
The product type.
|
List<SavingsPlanOfferingProperty> |
properties()
The properties.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SavingsPlanOffering.Builder> |
serializableBuilderClass() |
String |
serviceCode()
The service.
|
SavingsPlanOffering.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
usageType()
The usage details of the line item in the billing report.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String offeringId()
The ID of the offering.
public final List<SavingsPlanProductType> productTypes()
The product type.
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 hasProductTypes() method.
public final boolean hasProductTypes()
isEmpty() 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.public final List<String> productTypesAsStrings()
The product type.
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 hasProductTypes() method.
public final SavingsPlanType planType()
The plan type.
If the service returns an enum value that is not available in the current SDK version, planType will
return SavingsPlanType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
planTypeAsString().
SavingsPlanTypepublic final String planTypeAsString()
The plan type.
If the service returns an enum value that is not available in the current SDK version, planType will
return SavingsPlanType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
planTypeAsString().
SavingsPlanTypepublic final String description()
The description.
public final SavingsPlanPaymentOption paymentOption()
The payment option.
If the service returns an enum value that is not available in the current SDK version, paymentOption
will return SavingsPlanPaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from paymentOptionAsString().
SavingsPlanPaymentOptionpublic final String paymentOptionAsString()
The payment option.
If the service returns an enum value that is not available in the current SDK version, paymentOption
will return SavingsPlanPaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from paymentOptionAsString().
SavingsPlanPaymentOptionpublic final Long durationSeconds()
The duration, in seconds.
public final CurrencyCode currency()
The currency.
If the service returns an enum value that is not available in the current SDK version, currency will
return CurrencyCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
currencyAsString().
CurrencyCodepublic final String currencyAsString()
The currency.
If the service returns an enum value that is not available in the current SDK version, currency will
return CurrencyCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
currencyAsString().
CurrencyCodepublic final String serviceCode()
The service.
public final String usageType()
The usage details of the line item in the billing report.
public final String operation()
The specific AWS operation for the line item in the billing report.
public final boolean hasProperties()
isEmpty() 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.public final List<SavingsPlanOfferingProperty> properties()
The properties.
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 hasProperties() method.
public SavingsPlanOffering.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SavingsPlanOffering.Builder,SavingsPlanOffering>public static SavingsPlanOffering.Builder builder()
public static Class<? extends SavingsPlanOffering.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.