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

com.amazonaws.services.costexplorer.model.ReservationPurchaseRecommendationSummary Maven / Gradle / Ivy

Go to download

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

The newest version!
/*
 * Copyright 2020-2025 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.costexplorer.model;

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

/**
 * 

* A summary about this recommendation, such as the currency code, the amount that Amazon Web Services estimates that * you could save, and the total amount of reservation to purchase. *

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

* The total amount that Amazon Web Services estimates that this recommendation could save you in a month. *

*/ private String totalEstimatedMonthlySavingsAmount; /** *

* The total amount that Amazon Web Services estimates that this recommendation could save you in a month, as a * percentage of your costs. *

*/ private String totalEstimatedMonthlySavingsPercentage; /** *

* The currency code used for this recommendation. *

*/ private String currencyCode; /** *

* The total amount that Amazon Web Services estimates that this recommendation could save you in a month. *

* * @param totalEstimatedMonthlySavingsAmount * The total amount that Amazon Web Services estimates that this recommendation could save you in a month. */ public void setTotalEstimatedMonthlySavingsAmount(String totalEstimatedMonthlySavingsAmount) { this.totalEstimatedMonthlySavingsAmount = totalEstimatedMonthlySavingsAmount; } /** *

* The total amount that Amazon Web Services estimates that this recommendation could save you in a month. *

* * @return The total amount that Amazon Web Services estimates that this recommendation could save you in a month. */ public String getTotalEstimatedMonthlySavingsAmount() { return this.totalEstimatedMonthlySavingsAmount; } /** *

* The total amount that Amazon Web Services estimates that this recommendation could save you in a month. *

* * @param totalEstimatedMonthlySavingsAmount * The total amount that Amazon Web Services estimates that this recommendation could save you in a month. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationPurchaseRecommendationSummary withTotalEstimatedMonthlySavingsAmount(String totalEstimatedMonthlySavingsAmount) { setTotalEstimatedMonthlySavingsAmount(totalEstimatedMonthlySavingsAmount); return this; } /** *

* The total amount that Amazon Web Services estimates that this recommendation could save you in a month, as a * percentage of your costs. *

* * @param totalEstimatedMonthlySavingsPercentage * The total amount that Amazon Web Services estimates that this recommendation could save you in a month, as * a percentage of your costs. */ public void setTotalEstimatedMonthlySavingsPercentage(String totalEstimatedMonthlySavingsPercentage) { this.totalEstimatedMonthlySavingsPercentage = totalEstimatedMonthlySavingsPercentage; } /** *

* The total amount that Amazon Web Services estimates that this recommendation could save you in a month, as a * percentage of your costs. *

* * @return The total amount that Amazon Web Services estimates that this recommendation could save you in a month, * as a percentage of your costs. */ public String getTotalEstimatedMonthlySavingsPercentage() { return this.totalEstimatedMonthlySavingsPercentage; } /** *

* The total amount that Amazon Web Services estimates that this recommendation could save you in a month, as a * percentage of your costs. *

* * @param totalEstimatedMonthlySavingsPercentage * The total amount that Amazon Web Services estimates that this recommendation could save you in a month, as * a percentage of your costs. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationPurchaseRecommendationSummary withTotalEstimatedMonthlySavingsPercentage(String totalEstimatedMonthlySavingsPercentage) { setTotalEstimatedMonthlySavingsPercentage(totalEstimatedMonthlySavingsPercentage); return this; } /** *

* The currency code used for this recommendation. *

* * @param currencyCode * The currency code used for this recommendation. */ public void setCurrencyCode(String currencyCode) { this.currencyCode = currencyCode; } /** *

* The currency code used for this recommendation. *

* * @return The currency code used for this recommendation. */ public String getCurrencyCode() { return this.currencyCode; } /** *

* The currency code used for this recommendation. *

* * @param currencyCode * The currency code used for this recommendation. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationPurchaseRecommendationSummary withCurrencyCode(String currencyCode) { setCurrencyCode(currencyCode); 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 (getTotalEstimatedMonthlySavingsAmount() != null) sb.append("TotalEstimatedMonthlySavingsAmount: ").append(getTotalEstimatedMonthlySavingsAmount()).append(","); if (getTotalEstimatedMonthlySavingsPercentage() != null) sb.append("TotalEstimatedMonthlySavingsPercentage: ").append(getTotalEstimatedMonthlySavingsPercentage()).append(","); if (getCurrencyCode() != null) sb.append("CurrencyCode: ").append(getCurrencyCode()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReservationPurchaseRecommendationSummary == false) return false; ReservationPurchaseRecommendationSummary other = (ReservationPurchaseRecommendationSummary) obj; if (other.getTotalEstimatedMonthlySavingsAmount() == null ^ this.getTotalEstimatedMonthlySavingsAmount() == null) return false; if (other.getTotalEstimatedMonthlySavingsAmount() != null && other.getTotalEstimatedMonthlySavingsAmount().equals(this.getTotalEstimatedMonthlySavingsAmount()) == false) return false; if (other.getTotalEstimatedMonthlySavingsPercentage() == null ^ this.getTotalEstimatedMonthlySavingsPercentage() == null) return false; if (other.getTotalEstimatedMonthlySavingsPercentage() != null && other.getTotalEstimatedMonthlySavingsPercentage().equals(this.getTotalEstimatedMonthlySavingsPercentage()) == false) return false; if (other.getCurrencyCode() == null ^ this.getCurrencyCode() == null) return false; if (other.getCurrencyCode() != null && other.getCurrencyCode().equals(this.getCurrencyCode()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTotalEstimatedMonthlySavingsAmount() == null) ? 0 : getTotalEstimatedMonthlySavingsAmount().hashCode()); hashCode = prime * hashCode + ((getTotalEstimatedMonthlySavingsPercentage() == null) ? 0 : getTotalEstimatedMonthlySavingsPercentage().hashCode()); hashCode = prime * hashCode + ((getCurrencyCode() == null) ? 0 : getCurrencyCode().hashCode()); return hashCode; } @Override public ReservationPurchaseRecommendationSummary clone() { try { return (ReservationPurchaseRecommendationSummary) 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.costexplorer.model.transform.ReservationPurchaseRecommendationSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy