All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.computeoptimizer.model.InstanceSavingsOpportunityAfterDiscounts Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Compute Optimizer module holds the client classes that are used for communicating with AWS Compute Optimizer Service

The newest version!
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.computeoptimizer.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Describes the savings opportunity for instance recommendations after applying the Savings Plans and Reserved * Instances discounts. *

*

* Savings opportunity after discounts represents the estimated monthly savings you can achieve by implementing Compute * Optimizer recommendations. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InstanceSavingsOpportunityAfterDiscounts implements Serializable, Cloneable, StructuredPojo { /** *

* The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans and * Reserved Instances discounts. This saving can be achieved by adopting Compute Optimizer’s EC2 instance * recommendations. *

*/ private Double savingsOpportunityPercentage; /** *

* An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 * instance recommendations. This is based on pricing after applying the Savings Plans and Reserved Instances * discounts. *

*/ private InstanceEstimatedMonthlySavings estimatedMonthlySavings; /** *

* The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans and * Reserved Instances discounts. This saving can be achieved by adopting Compute Optimizer’s EC2 instance * recommendations. *

* * @param savingsOpportunityPercentage * The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans * and Reserved Instances discounts. This saving can be achieved by adopting Compute Optimizer’s EC2 instance * recommendations. */ public void setSavingsOpportunityPercentage(Double savingsOpportunityPercentage) { this.savingsOpportunityPercentage = savingsOpportunityPercentage; } /** *

* The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans and * Reserved Instances discounts. This saving can be achieved by adopting Compute Optimizer’s EC2 instance * recommendations. *

* * @return The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans * and Reserved Instances discounts. This saving can be achieved by adopting Compute Optimizer’s EC2 * instance recommendations. */ public Double getSavingsOpportunityPercentage() { return this.savingsOpportunityPercentage; } /** *

* The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans and * Reserved Instances discounts. This saving can be achieved by adopting Compute Optimizer’s EC2 instance * recommendations. *

* * @param savingsOpportunityPercentage * The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans * and Reserved Instances discounts. This saving can be achieved by adopting Compute Optimizer’s EC2 instance * recommendations. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceSavingsOpportunityAfterDiscounts withSavingsOpportunityPercentage(Double savingsOpportunityPercentage) { setSavingsOpportunityPercentage(savingsOpportunityPercentage); return this; } /** *

* An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 * instance recommendations. This is based on pricing after applying the Savings Plans and Reserved Instances * discounts. *

* * @param estimatedMonthlySavings * An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 * instance recommendations. This is based on pricing after applying the Savings Plans and Reserved Instances * discounts. */ public void setEstimatedMonthlySavings(InstanceEstimatedMonthlySavings estimatedMonthlySavings) { this.estimatedMonthlySavings = estimatedMonthlySavings; } /** *

* An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 * instance recommendations. This is based on pricing after applying the Savings Plans and Reserved Instances * discounts. *

* * @return An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon * EC2 instance recommendations. This is based on pricing after applying the Savings Plans and Reserved * Instances discounts. */ public InstanceEstimatedMonthlySavings getEstimatedMonthlySavings() { return this.estimatedMonthlySavings; } /** *

* An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 * instance recommendations. This is based on pricing after applying the Savings Plans and Reserved Instances * discounts. *

* * @param estimatedMonthlySavings * An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 * instance recommendations. This is based on pricing after applying the Savings Plans and Reserved Instances * discounts. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceSavingsOpportunityAfterDiscounts withEstimatedMonthlySavings(InstanceEstimatedMonthlySavings estimatedMonthlySavings) { setEstimatedMonthlySavings(estimatedMonthlySavings); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSavingsOpportunityPercentage() != null) sb.append("SavingsOpportunityPercentage: ").append(getSavingsOpportunityPercentage()).append(","); if (getEstimatedMonthlySavings() != null) sb.append("EstimatedMonthlySavings: ").append(getEstimatedMonthlySavings()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InstanceSavingsOpportunityAfterDiscounts == false) return false; InstanceSavingsOpportunityAfterDiscounts other = (InstanceSavingsOpportunityAfterDiscounts) obj; if (other.getSavingsOpportunityPercentage() == null ^ this.getSavingsOpportunityPercentage() == null) return false; if (other.getSavingsOpportunityPercentage() != null && other.getSavingsOpportunityPercentage().equals(this.getSavingsOpportunityPercentage()) == false) return false; if (other.getEstimatedMonthlySavings() == null ^ this.getEstimatedMonthlySavings() == null) return false; if (other.getEstimatedMonthlySavings() != null && other.getEstimatedMonthlySavings().equals(this.getEstimatedMonthlySavings()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSavingsOpportunityPercentage() == null) ? 0 : getSavingsOpportunityPercentage().hashCode()); hashCode = prime * hashCode + ((getEstimatedMonthlySavings() == null) ? 0 : getEstimatedMonthlySavings().hashCode()); return hashCode; } @Override public InstanceSavingsOpportunityAfterDiscounts clone() { try { return (InstanceSavingsOpportunityAfterDiscounts) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.computeoptimizer.model.transform.InstanceSavingsOpportunityAfterDiscountsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy