@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()
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 |
hasTags()
Returns true if the Tags 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.
|
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.
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 types.
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 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()
public final Map<String,String> tags()
One or more tags.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
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.