Class InstanceEstimatedMonthlySavings
- java.lang.Object
-
- software.amazon.awssdk.services.computeoptimizer.model.InstanceEstimatedMonthlySavings
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InstanceEstimatedMonthlySavings.Builder,InstanceEstimatedMonthlySavings>
@Generated("software.amazon.awssdk:codegen") public final class InstanceEstimatedMonthlySavings extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceEstimatedMonthlySavings.Builder,InstanceEstimatedMonthlySavings>
An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 instance recommendations. This is based on the Savings Plans and Reserved Instances pricing discounts.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInstanceEstimatedMonthlySavings.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceEstimatedMonthlySavings.Builderbuilder()Currencycurrency()The currency of the estimated monthly savings.StringcurrencyAsString()The currency of the estimated monthly savings.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends InstanceEstimatedMonthlySavings.Builder>serializableBuilderClass()InstanceEstimatedMonthlySavings.BuildertoBuilder()StringtoString()Returns a string representation of this object.Doublevalue()The value of the estimated monthly savings.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
currency
public final Currency currency()
The currency of the estimated monthly savings.
If the service returns an enum value that is not available in the current SDK version,
currencywill returnCurrency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcurrencyAsString().- Returns:
- The currency of the estimated monthly savings.
- See Also:
Currency
-
currencyAsString
public final String currencyAsString()
The currency of the estimated monthly savings.
If the service returns an enum value that is not available in the current SDK version,
currencywill returnCurrency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcurrencyAsString().- Returns:
- The currency of the estimated monthly savings.
- See Also:
Currency
-
value
public final Double value()
The value of the estimated monthly savings.
- Returns:
- The value of the estimated monthly savings.
-
toBuilder
public InstanceEstimatedMonthlySavings.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InstanceEstimatedMonthlySavings.Builder,InstanceEstimatedMonthlySavings>
-
builder
public static InstanceEstimatedMonthlySavings.Builder builder()
-
serializableBuilderClass
public static Class<? extends InstanceEstimatedMonthlySavings.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-