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

com.amazonaws.services.computeoptimizer.model.EBSSavingsOpportunityAfterDiscounts 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 Amazon EBS volume recommendations after applying specific discounts. *

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

* The estimated monthly savings possible as a percentage of monthly cost after applying the specific discounts. * This saving can be achieved by adopting Compute Optimizer’s Amazon EBS volume recommendations. *

*/ private Double savingsOpportunityPercentage; /** *

* The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer’s Amazon EBS * volume recommendations. This saving includes any applicable discounts. *

*/ private EBSEstimatedMonthlySavings estimatedMonthlySavings; /** *

* The estimated monthly savings possible as a percentage of monthly cost after applying the specific discounts. * This saving can be achieved by adopting Compute Optimizer’s Amazon EBS volume recommendations. *

* * @param savingsOpportunityPercentage * The estimated monthly savings possible as a percentage of monthly cost after applying the specific * discounts. This saving can be achieved by adopting Compute Optimizer’s Amazon EBS volume recommendations. */ public void setSavingsOpportunityPercentage(Double savingsOpportunityPercentage) { this.savingsOpportunityPercentage = savingsOpportunityPercentage; } /** *

* The estimated monthly savings possible as a percentage of monthly cost after applying the specific discounts. * This saving can be achieved by adopting Compute Optimizer’s Amazon EBS volume recommendations. *

* * @return The estimated monthly savings possible as a percentage of monthly cost after applying the specific * discounts. This saving can be achieved by adopting Compute Optimizer’s Amazon EBS volume recommendations. */ public Double getSavingsOpportunityPercentage() { return this.savingsOpportunityPercentage; } /** *

* The estimated monthly savings possible as a percentage of monthly cost after applying the specific discounts. * This saving can be achieved by adopting Compute Optimizer’s Amazon EBS volume recommendations. *

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

* The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer’s Amazon EBS * volume recommendations. This saving includes any applicable discounts. *

* * @param estimatedMonthlySavings * The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer’s * Amazon EBS volume recommendations. This saving includes any applicable discounts. */ public void setEstimatedMonthlySavings(EBSEstimatedMonthlySavings estimatedMonthlySavings) { this.estimatedMonthlySavings = estimatedMonthlySavings; } /** *

* The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer’s Amazon EBS * volume recommendations. This saving includes any applicable discounts. *

* * @return The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer’s * Amazon EBS volume recommendations. This saving includes any applicable discounts. */ public EBSEstimatedMonthlySavings getEstimatedMonthlySavings() { return this.estimatedMonthlySavings; } /** *

* The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer’s Amazon EBS * volume recommendations. This saving includes any applicable discounts. *

* * @param estimatedMonthlySavings * The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer’s * Amazon EBS volume recommendations. This saving includes any applicable discounts. * @return Returns a reference to this object so that method calls can be chained together. */ public EBSSavingsOpportunityAfterDiscounts withEstimatedMonthlySavings(EBSEstimatedMonthlySavings 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 EBSSavingsOpportunityAfterDiscounts == false) return false; EBSSavingsOpportunityAfterDiscounts other = (EBSSavingsOpportunityAfterDiscounts) 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 EBSSavingsOpportunityAfterDiscounts clone() { try { return (EBSSavingsOpportunityAfterDiscounts) 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.EBSSavingsOpportunityAfterDiscountsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy