@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()
Returns true if the ProductTypes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasProperties()
Returns true if the Properties property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
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.
You can use hasProductTypes() to see if a value was sent in this field.
public final boolean hasProductTypes()
public final List<String> productTypesAsStrings()
The product type.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasProductTypes() to see if a value was sent in this field.
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()
public final List<SavingsPlanOfferingProperty> properties()
The properties.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasProperties() to see if a value was sent in this field.
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 © 2021. All rights reserved.