@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, by
adopting Compute Optimizer recommendations for a given resource.
|
Double |
getSavingsOpportunityPercentage()
The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer
recommendations for a given resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEstimatedMonthlySavings(EstimatedMonthlySavings estimatedMonthlySavings)
An object that describes the estimated monthly savings amount possible, based on On-Demand instance pricing, by
adopting Compute Optimizer recommendations for a given resource.
|
void |
setSavingsOpportunityPercentage(Double savingsOpportunityPercentage)
The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer
recommendations for a given resource.
|
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, by
adopting Compute Optimizer recommendations for a given resource.
|
SavingsOpportunity |
withSavingsOpportunityPercentage(Double savingsOpportunityPercentage)
The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer
recommendations for a given resource.
|
public void setSavingsOpportunityPercentage(Double savingsOpportunityPercentage)
The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer recommendations for a given resource.
savingsOpportunityPercentage
- The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer
recommendations for a given resource.public Double getSavingsOpportunityPercentage()
The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer recommendations for a given resource.
public SavingsOpportunity withSavingsOpportunityPercentage(Double savingsOpportunityPercentage)
The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer recommendations for a given resource.
savingsOpportunityPercentage
- The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer
recommendations for a given resource.public void setEstimatedMonthlySavings(EstimatedMonthlySavings estimatedMonthlySavings)
An object that describes the estimated monthly savings amount possible, based on On-Demand instance pricing, by adopting Compute Optimizer recommendations for a given resource.
estimatedMonthlySavings
- An object that describes the estimated monthly savings amount possible, based on On-Demand instance
pricing, by adopting Compute Optimizer recommendations for a given resource.public EstimatedMonthlySavings getEstimatedMonthlySavings()
An object that describes the estimated monthly savings amount possible, based on On-Demand instance pricing, by adopting Compute Optimizer recommendations for a given resource.
public SavingsOpportunity withEstimatedMonthlySavings(EstimatedMonthlySavings estimatedMonthlySavings)
An object that describes the estimated monthly savings amount possible, based on On-Demand instance pricing, by adopting Compute Optimizer recommendations for a given resource.
estimatedMonthlySavings
- An object that describes the estimated monthly savings amount possible, based on On-Demand instance
pricing, by adopting Compute Optimizer recommendations for a given resource.public String toString()
toString
in class Object
Object.toString()
public SavingsOpportunity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.