Class SavingsOpportunity
- java.lang.Object
-
- software.amazon.awssdk.services.computeoptimizer.model.SavingsOpportunity
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SavingsOpportunity.Builder,SavingsOpportunity>
@Generated("software.amazon.awssdk:codegen") public final class SavingsOpportunity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SavingsOpportunity.Builder,SavingsOpportunity>
Describes the savings opportunity for recommendations of a given resource type or for the recommendation option of an individual resource.
Savings opportunity represents the estimated monthly savings you can achieve by implementing a given Compute Optimizer recommendation.
Savings opportunity data requires that you opt in to Cost Explorer, as well as activate Receive Amazon EC2 resource recommendations in the Cost Explorer preferences page. That creates a connection between Cost Explorer and Compute Optimizer. With this connection, Cost Explorer generates savings estimates considering the price of existing resources, the price of recommended resources, and historical usage data. Estimated monthly savings reflects the projected dollar savings associated with each of the recommendations generated. For more information, see Enabling Cost Explorer and Optimizing your cost with Rightsizing Recommendations in the Cost Management User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSavingsOpportunity.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SavingsOpportunity.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)EstimatedMonthlySavingsestimatedMonthlySavings()An object that describes the estimated monthly savings amount possible by adopting Compute Optimizer recommendations for a given resource.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()DoublesavingsOpportunityPercentage()The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer recommendations for a given resource.List<SdkField<?>>sdkFields()static Class<? extends SavingsOpportunity.Builder>serializableBuilderClass()SavingsOpportunity.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
savingsOpportunityPercentage
public final Double savingsOpportunityPercentage()
The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer recommendations for a given resource.
- Returns:
- The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer recommendations for a given resource.
-
estimatedMonthlySavings
public final EstimatedMonthlySavings estimatedMonthlySavings()
An object that describes the estimated monthly savings amount possible by adopting Compute Optimizer recommendations for a given resource. This is based on the On-Demand instance pricing..
- Returns:
- An object that describes the estimated monthly savings amount possible by adopting Compute Optimizer recommendations for a given resource. This is based on the On-Demand instance pricing..
-
toBuilder
public SavingsOpportunity.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SavingsOpportunity.Builder,SavingsOpportunity>
-
builder
public static SavingsOpportunity.Builder builder()
-
serializableBuilderClass
public static Class<? extends SavingsOpportunity.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.
-
-