@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SavingsOpportunity extends Object implements Serializable, Cloneable, StructuredPojo
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.
| Constructor and Description |
|---|
SavingsOpportunity() |
| Modifier and Type | Method and Description |
|---|---|
SavingsOpportunity |
clone() |
boolean |
equals(Object obj) |
EstimatedMonthlySavings |
getEstimatedMonthlySavings()
An object that describes the estimated monthly savings amount possible based on On-Demand instance pricing.
|
Double |
getSavingsOpportunityPercentage()
The estimated monthly savings possible as a percentage of monthly cost.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setEstimatedMonthlySavings(EstimatedMonthlySavings estimatedMonthlySavings)
An object that describes the estimated monthly savings amount possible based on On-Demand instance pricing.
|
void |
setSavingsOpportunityPercentage(Double savingsOpportunityPercentage)
The estimated monthly savings possible as a percentage of monthly cost.
|
String |
toString()
Returns a string representation of this object.
|
SavingsOpportunity |
withEstimatedMonthlySavings(EstimatedMonthlySavings estimatedMonthlySavings)
An object that describes the estimated monthly savings amount possible based on On-Demand instance pricing.
|
SavingsOpportunity |
withSavingsOpportunityPercentage(Double savingsOpportunityPercentage)
The estimated monthly savings possible as a percentage of monthly cost.
|
public void setSavingsOpportunityPercentage(Double savingsOpportunityPercentage)
The estimated monthly savings possible as a percentage of monthly cost.
savingsOpportunityPercentage - The estimated monthly savings possible as a percentage of monthly cost.public Double getSavingsOpportunityPercentage()
The estimated monthly savings possible as a percentage of monthly cost.
public SavingsOpportunity withSavingsOpportunityPercentage(Double savingsOpportunityPercentage)
The estimated monthly savings possible as a percentage of monthly cost.
savingsOpportunityPercentage - The estimated monthly savings possible as a percentage of monthly cost.public void setEstimatedMonthlySavings(EstimatedMonthlySavings estimatedMonthlySavings)
An object that describes the estimated monthly savings amount possible based on On-Demand instance pricing.
estimatedMonthlySavings - An object that describes the estimated monthly savings amount possible based on On-Demand instance
pricing.public EstimatedMonthlySavings getEstimatedMonthlySavings()
An object that describes the estimated monthly savings amount possible based on On-Demand instance pricing.
public SavingsOpportunity withEstimatedMonthlySavings(EstimatedMonthlySavings estimatedMonthlySavings)
An object that describes the estimated monthly savings amount possible based on On-Demand instance pricing.
estimatedMonthlySavings - An object that describes the estimated monthly savings amount possible based on On-Demand instance
pricing.public String toString()
toString in class ObjectObject.toString()public SavingsOpportunity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.