@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() |
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 String offeringId()
The ID of the offering.
public String savingsPlanId()
The ID of the Savings Plan.
public String savingsPlanArn()
The Amazon Resource Name (ARN) of the Savings Plan.
public String description()
The description.
public String start()
The start time.
public String end()
The end time.
public 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 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 String region()
The AWS Region.
public String ec2InstanceFamily()
The EC2 instance family.
public 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 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 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 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 List<SavingsPlanProductType> productTypes()
The product types.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> productTypesAsStrings()
The product types.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public 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 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 String commitment()
The hourly commitment, in USD.
public String upfrontPaymentAmount()
The up-front payment amount.
public String recurringPaymentAmount()
The recurring payment amount.
public Long termDurationInSeconds()
The duration of the term, in seconds.
public Map<String,String> tags()
One or more tags.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public SavingsPlan.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SavingsPlan.Builder,SavingsPlan>public static SavingsPlan.Builder builder()
public static Class<? extends SavingsPlan.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2019. All rights reserved.