@Generated(value="software.amazon.awssdk:codegen") public final class SavingsPlan extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SavingsPlan.Builder,SavingsPlan>
Information about a Savings Plan.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SavingsPlan.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SavingsPlan.Builder |
builder() |
String |
commitment()
The hourly commitment, in USD.
|
CurrencyCode |
currency()
The currency.
|
String |
currencyAsString()
The currency.
|
String |
description()
The description.
|
String |
ec2InstanceFamily()
The EC2 instance family.
|
String |
end()
The end time.
|
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 |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
offeringId()
The ID of the offering.
|
SavingsPlanPaymentOption |
paymentOption()
The payment option.
|
String |
paymentOptionAsString()
The payment option.
|
List<SavingsPlanProductType> |
productTypes()
The product types.
|
List<String> |
productTypesAsStrings()
The product types.
|
String |
recurringPaymentAmount()
The recurring payment amount.
|
String |
region()
The AWS Region.
|
String |
savingsPlanArn()
The Amazon Resource Name (ARN) of the Savings Plan.
|
String |
savingsPlanId()
The ID of the Savings Plan.
|
SavingsPlanType |
savingsPlanType()
The plan type.
|
String |
savingsPlanTypeAsString()
The plan type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SavingsPlan.Builder> |
serializableBuilderClass() |
String |
start()
The start time.
|
SavingsPlanState |
state()
The state.
|
String |
stateAsString()
The state.
|
Map<String,String> |
tags()
One or more tags.
|
Long |
termDurationInSeconds()
The duration of the term, in seconds.
|
SavingsPlan.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
upfrontPaymentAmount()
The up-front payment amount.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String offeringId()
The ID of the offering.
public final String savingsPlanId()
The ID of the Savings Plan.
public final String savingsPlanArn()
The Amazon Resource Name (ARN) of the Savings Plan.
public final String description()
The description.
public final String start()
The start time.
public final String end()
The end time.
public final SavingsPlanState state()
The state.
If the service returns an enum value that is not available in the current SDK version, state will return
SavingsPlanState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
SavingsPlanStatepublic final String stateAsString()
The state.
If the service returns an enum value that is not available in the current SDK version, state will return
SavingsPlanState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
SavingsPlanStatepublic final String region()
The AWS Region.
public final String ec2InstanceFamily()
The EC2 instance family.
public final SavingsPlanType savingsPlanType()
The plan type.
If the service returns an enum value that is not available in the current SDK version, savingsPlanType
will return SavingsPlanType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from savingsPlanTypeAsString().
SavingsPlanTypepublic final String savingsPlanTypeAsString()
The plan type.
If the service returns an enum value that is not available in the current SDK version, savingsPlanType
will return SavingsPlanType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from savingsPlanTypeAsString().
SavingsPlanTypepublic 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 List<SavingsPlanProductType> productTypes()
The product types.
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 types.
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 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 commitment()
The hourly commitment, in USD.
public final String upfrontPaymentAmount()
The up-front payment amount.
public final String recurringPaymentAmount()
The recurring payment amount.
public final Long termDurationInSeconds()
The duration of the term, in seconds.
public final boolean hasTags()
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 Map<String,String> tags()
One or more tags.
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 hasTags() method.
public SavingsPlan.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SavingsPlan.Builder,SavingsPlan>public static SavingsPlan.Builder builder()
public static Class<? extends SavingsPlan.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.