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

com.amazonaws.services.costexplorer.model.ReservationAggregates 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;

/**
 * 

* The aggregated numbers for your reservation usage. *

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

* The percentage of reservation time that you used. *

*/ private String utilizationPercentage; /** *

* The percentage of Amazon EC2 reservation time that you used. It's converted to normalized units. Normalized units * are available only for Amazon EC2 usage after November 11, 2017. *

*/ private String utilizationPercentageInUnits; /** *

* How many reservation hours that you purchased. *

*/ private String purchasedHours; /** *

* The number of Amazon EC2 reservation hours that you purchased. It's converted to normalized units. Normalized * units are available only for Amazon EC2 usage after November 11, 2017. *

*/ private String purchasedUnits; /** *

* The total number of reservation hours that you used. *

*/ private String totalActualHours; /** *

* The total number of Amazon EC2 reservation hours that you used. It's converted to normalized units. Normalized * units are available only for Amazon EC2 usage after November 11, 2017. *

*/ private String totalActualUnits; /** *

* The number of reservation hours that you didn't use. *

*/ private String unusedHours; /** *

* The number of Amazon EC2 reservation hours that you didn't use. It's converted to normalized units. Normalized * units are available only for Amazon EC2 usage after November 11, 2017. *

*/ private String unusedUnits; /** *

* How much your reservation costs if charged On-Demand rates. *

*/ private String onDemandCostOfRIHoursUsed; /** *

* How much you saved due to purchasing and utilizing reservation. Amazon Web Services calculates this by * subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed. *

*/ private String netRISavings; /** *

* How much you might save if you use your entire reservation. *

*/ private String totalPotentialRISavings; /** *

* The upfront cost of your reservation. It's amortized over the reservation period. *

*/ private String amortizedUpfrontFee; /** *

* The monthly cost of your reservation. It's amortized over the reservation period. *

*/ private String amortizedRecurringFee; /** *

* The total cost of your reservation. It's amortized over the reservation period. *

*/ private String totalAmortizedFee; /** *

* The cost of unused hours for your reservation. *

*/ private String rICostForUnusedHours; /** *

* The realized savings because of purchasing and using a reservation. *

*/ private String realizedSavings; /** *

* The unrealized savings because of purchasing and using a reservation. *

*/ private String unrealizedSavings; /** *

* The percentage of reservation time that you used. *

* * @param utilizationPercentage * The percentage of reservation time that you used. */ public void setUtilizationPercentage(String utilizationPercentage) { this.utilizationPercentage = utilizationPercentage; } /** *

* The percentage of reservation time that you used. *

* * @return The percentage of reservation time that you used. */ public String getUtilizationPercentage() { return this.utilizationPercentage; } /** *

* The percentage of reservation time that you used. *

* * @param utilizationPercentage * The percentage of reservation time that you used. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withUtilizationPercentage(String utilizationPercentage) { setUtilizationPercentage(utilizationPercentage); return this; } /** *

* The percentage of Amazon EC2 reservation time that you used. It's converted to normalized units. Normalized units * are available only for Amazon EC2 usage after November 11, 2017. *

* * @param utilizationPercentageInUnits * The percentage of Amazon EC2 reservation time that you used. It's converted to normalized units. * Normalized units are available only for Amazon EC2 usage after November 11, 2017. */ public void setUtilizationPercentageInUnits(String utilizationPercentageInUnits) { this.utilizationPercentageInUnits = utilizationPercentageInUnits; } /** *

* The percentage of Amazon EC2 reservation time that you used. It's converted to normalized units. Normalized units * are available only for Amazon EC2 usage after November 11, 2017. *

* * @return The percentage of Amazon EC2 reservation time that you used. It's converted to normalized units. * Normalized units are available only for Amazon EC2 usage after November 11, 2017. */ public String getUtilizationPercentageInUnits() { return this.utilizationPercentageInUnits; } /** *

* The percentage of Amazon EC2 reservation time that you used. It's converted to normalized units. Normalized units * are available only for Amazon EC2 usage after November 11, 2017. *

* * @param utilizationPercentageInUnits * The percentage of Amazon EC2 reservation time that you used. It's converted to normalized units. * Normalized units are available only for Amazon EC2 usage after November 11, 2017. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withUtilizationPercentageInUnits(String utilizationPercentageInUnits) { setUtilizationPercentageInUnits(utilizationPercentageInUnits); return this; } /** *

* How many reservation hours that you purchased. *

* * @param purchasedHours * How many reservation hours that you purchased. */ public void setPurchasedHours(String purchasedHours) { this.purchasedHours = purchasedHours; } /** *

* How many reservation hours that you purchased. *

* * @return How many reservation hours that you purchased. */ public String getPurchasedHours() { return this.purchasedHours; } /** *

* How many reservation hours that you purchased. *

* * @param purchasedHours * How many reservation hours that you purchased. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withPurchasedHours(String purchasedHours) { setPurchasedHours(purchasedHours); return this; } /** *

* The number of Amazon EC2 reservation hours that you purchased. It's converted to normalized units. Normalized * units are available only for Amazon EC2 usage after November 11, 2017. *

* * @param purchasedUnits * The number of Amazon EC2 reservation hours that you purchased. It's converted to normalized units. * Normalized units are available only for Amazon EC2 usage after November 11, 2017. */ public void setPurchasedUnits(String purchasedUnits) { this.purchasedUnits = purchasedUnits; } /** *

* The number of Amazon EC2 reservation hours that you purchased. It's converted to normalized units. Normalized * units are available only for Amazon EC2 usage after November 11, 2017. *

* * @return The number of Amazon EC2 reservation hours that you purchased. It's converted to normalized units. * Normalized units are available only for Amazon EC2 usage after November 11, 2017. */ public String getPurchasedUnits() { return this.purchasedUnits; } /** *

* The number of Amazon EC2 reservation hours that you purchased. It's converted to normalized units. Normalized * units are available only for Amazon EC2 usage after November 11, 2017. *

* * @param purchasedUnits * The number of Amazon EC2 reservation hours that you purchased. It's converted to normalized units. * Normalized units are available only for Amazon EC2 usage after November 11, 2017. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withPurchasedUnits(String purchasedUnits) { setPurchasedUnits(purchasedUnits); return this; } /** *

* The total number of reservation hours that you used. *

* * @param totalActualHours * The total number of reservation hours that you used. */ public void setTotalActualHours(String totalActualHours) { this.totalActualHours = totalActualHours; } /** *

* The total number of reservation hours that you used. *

* * @return The total number of reservation hours that you used. */ public String getTotalActualHours() { return this.totalActualHours; } /** *

* The total number of reservation hours that you used. *

* * @param totalActualHours * The total number of reservation hours that you used. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withTotalActualHours(String totalActualHours) { setTotalActualHours(totalActualHours); return this; } /** *

* The total number of Amazon EC2 reservation hours that you used. It's converted to normalized units. Normalized * units are available only for Amazon EC2 usage after November 11, 2017. *

* * @param totalActualUnits * The total number of Amazon EC2 reservation hours that you used. It's converted to normalized units. * Normalized units are available only for Amazon EC2 usage after November 11, 2017. */ public void setTotalActualUnits(String totalActualUnits) { this.totalActualUnits = totalActualUnits; } /** *

* The total number of Amazon EC2 reservation hours that you used. It's converted to normalized units. Normalized * units are available only for Amazon EC2 usage after November 11, 2017. *

* * @return The total number of Amazon EC2 reservation hours that you used. It's converted to normalized units. * Normalized units are available only for Amazon EC2 usage after November 11, 2017. */ public String getTotalActualUnits() { return this.totalActualUnits; } /** *

* The total number of Amazon EC2 reservation hours that you used. It's converted to normalized units. Normalized * units are available only for Amazon EC2 usage after November 11, 2017. *

* * @param totalActualUnits * The total number of Amazon EC2 reservation hours that you used. It's converted to normalized units. * Normalized units are available only for Amazon EC2 usage after November 11, 2017. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withTotalActualUnits(String totalActualUnits) { setTotalActualUnits(totalActualUnits); return this; } /** *

* The number of reservation hours that you didn't use. *

* * @param unusedHours * The number of reservation hours that you didn't use. */ public void setUnusedHours(String unusedHours) { this.unusedHours = unusedHours; } /** *

* The number of reservation hours that you didn't use. *

* * @return The number of reservation hours that you didn't use. */ public String getUnusedHours() { return this.unusedHours; } /** *

* The number of reservation hours that you didn't use. *

* * @param unusedHours * The number of reservation hours that you didn't use. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withUnusedHours(String unusedHours) { setUnusedHours(unusedHours); return this; } /** *

* The number of Amazon EC2 reservation hours that you didn't use. It's converted to normalized units. Normalized * units are available only for Amazon EC2 usage after November 11, 2017. *

* * @param unusedUnits * The number of Amazon EC2 reservation hours that you didn't use. It's converted to normalized units. * Normalized units are available only for Amazon EC2 usage after November 11, 2017. */ public void setUnusedUnits(String unusedUnits) { this.unusedUnits = unusedUnits; } /** *

* The number of Amazon EC2 reservation hours that you didn't use. It's converted to normalized units. Normalized * units are available only for Amazon EC2 usage after November 11, 2017. *

* * @return The number of Amazon EC2 reservation hours that you didn't use. It's converted to normalized units. * Normalized units are available only for Amazon EC2 usage after November 11, 2017. */ public String getUnusedUnits() { return this.unusedUnits; } /** *

* The number of Amazon EC2 reservation hours that you didn't use. It's converted to normalized units. Normalized * units are available only for Amazon EC2 usage after November 11, 2017. *

* * @param unusedUnits * The number of Amazon EC2 reservation hours that you didn't use. It's converted to normalized units. * Normalized units are available only for Amazon EC2 usage after November 11, 2017. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withUnusedUnits(String unusedUnits) { setUnusedUnits(unusedUnits); return this; } /** *

* How much your reservation costs if charged On-Demand rates. *

* * @param onDemandCostOfRIHoursUsed * How much your reservation costs if charged On-Demand rates. */ public void setOnDemandCostOfRIHoursUsed(String onDemandCostOfRIHoursUsed) { this.onDemandCostOfRIHoursUsed = onDemandCostOfRIHoursUsed; } /** *

* How much your reservation costs if charged On-Demand rates. *

* * @return How much your reservation costs if charged On-Demand rates. */ public String getOnDemandCostOfRIHoursUsed() { return this.onDemandCostOfRIHoursUsed; } /** *

* How much your reservation costs if charged On-Demand rates. *

* * @param onDemandCostOfRIHoursUsed * How much your reservation costs if charged On-Demand rates. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withOnDemandCostOfRIHoursUsed(String onDemandCostOfRIHoursUsed) { setOnDemandCostOfRIHoursUsed(onDemandCostOfRIHoursUsed); return this; } /** *

* How much you saved due to purchasing and utilizing reservation. Amazon Web Services calculates this by * subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed. *

* * @param netRISavings * How much you saved due to purchasing and utilizing reservation. Amazon Web Services calculates this by * subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed. */ public void setNetRISavings(String netRISavings) { this.netRISavings = netRISavings; } /** *

* How much you saved due to purchasing and utilizing reservation. Amazon Web Services calculates this by * subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed. *

* * @return How much you saved due to purchasing and utilizing reservation. Amazon Web Services calculates this by * subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed. */ public String getNetRISavings() { return this.netRISavings; } /** *

* How much you saved due to purchasing and utilizing reservation. Amazon Web Services calculates this by * subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed. *

* * @param netRISavings * How much you saved due to purchasing and utilizing reservation. Amazon Web Services calculates this by * subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withNetRISavings(String netRISavings) { setNetRISavings(netRISavings); return this; } /** *

* How much you might save if you use your entire reservation. *

* * @param totalPotentialRISavings * How much you might save if you use your entire reservation. */ public void setTotalPotentialRISavings(String totalPotentialRISavings) { this.totalPotentialRISavings = totalPotentialRISavings; } /** *

* How much you might save if you use your entire reservation. *

* * @return How much you might save if you use your entire reservation. */ public String getTotalPotentialRISavings() { return this.totalPotentialRISavings; } /** *

* How much you might save if you use your entire reservation. *

* * @param totalPotentialRISavings * How much you might save if you use your entire reservation. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withTotalPotentialRISavings(String totalPotentialRISavings) { setTotalPotentialRISavings(totalPotentialRISavings); return this; } /** *

* The upfront cost of your reservation. It's amortized over the reservation period. *

* * @param amortizedUpfrontFee * The upfront cost of your reservation. It's amortized over the reservation period. */ public void setAmortizedUpfrontFee(String amortizedUpfrontFee) { this.amortizedUpfrontFee = amortizedUpfrontFee; } /** *

* The upfront cost of your reservation. It's amortized over the reservation period. *

* * @return The upfront cost of your reservation. It's amortized over the reservation period. */ public String getAmortizedUpfrontFee() { return this.amortizedUpfrontFee; } /** *

* The upfront cost of your reservation. It's amortized over the reservation period. *

* * @param amortizedUpfrontFee * The upfront cost of your reservation. It's amortized over the reservation period. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withAmortizedUpfrontFee(String amortizedUpfrontFee) { setAmortizedUpfrontFee(amortizedUpfrontFee); return this; } /** *

* The monthly cost of your reservation. It's amortized over the reservation period. *

* * @param amortizedRecurringFee * The monthly cost of your reservation. It's amortized over the reservation period. */ public void setAmortizedRecurringFee(String amortizedRecurringFee) { this.amortizedRecurringFee = amortizedRecurringFee; } /** *

* The monthly cost of your reservation. It's amortized over the reservation period. *

* * @return The monthly cost of your reservation. It's amortized over the reservation period. */ public String getAmortizedRecurringFee() { return this.amortizedRecurringFee; } /** *

* The monthly cost of your reservation. It's amortized over the reservation period. *

* * @param amortizedRecurringFee * The monthly cost of your reservation. It's amortized over the reservation period. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withAmortizedRecurringFee(String amortizedRecurringFee) { setAmortizedRecurringFee(amortizedRecurringFee); return this; } /** *

* The total cost of your reservation. It's amortized over the reservation period. *

* * @param totalAmortizedFee * The total cost of your reservation. It's amortized over the reservation period. */ public void setTotalAmortizedFee(String totalAmortizedFee) { this.totalAmortizedFee = totalAmortizedFee; } /** *

* The total cost of your reservation. It's amortized over the reservation period. *

* * @return The total cost of your reservation. It's amortized over the reservation period. */ public String getTotalAmortizedFee() { return this.totalAmortizedFee; } /** *

* The total cost of your reservation. It's amortized over the reservation period. *

* * @param totalAmortizedFee * The total cost of your reservation. It's amortized over the reservation period. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withTotalAmortizedFee(String totalAmortizedFee) { setTotalAmortizedFee(totalAmortizedFee); return this; } /** *

* The cost of unused hours for your reservation. *

* * @param rICostForUnusedHours * The cost of unused hours for your reservation. */ public void setRICostForUnusedHours(String rICostForUnusedHours) { this.rICostForUnusedHours = rICostForUnusedHours; } /** *

* The cost of unused hours for your reservation. *

* * @return The cost of unused hours for your reservation. */ public String getRICostForUnusedHours() { return this.rICostForUnusedHours; } /** *

* The cost of unused hours for your reservation. *

* * @param rICostForUnusedHours * The cost of unused hours for your reservation. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withRICostForUnusedHours(String rICostForUnusedHours) { setRICostForUnusedHours(rICostForUnusedHours); return this; } /** *

* The realized savings because of purchasing and using a reservation. *

* * @param realizedSavings * The realized savings because of purchasing and using a reservation. */ public void setRealizedSavings(String realizedSavings) { this.realizedSavings = realizedSavings; } /** *

* The realized savings because of purchasing and using a reservation. *

* * @return The realized savings because of purchasing and using a reservation. */ public String getRealizedSavings() { return this.realizedSavings; } /** *

* The realized savings because of purchasing and using a reservation. *

* * @param realizedSavings * The realized savings because of purchasing and using a reservation. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withRealizedSavings(String realizedSavings) { setRealizedSavings(realizedSavings); return this; } /** *

* The unrealized savings because of purchasing and using a reservation. *

* * @param unrealizedSavings * The unrealized savings because of purchasing and using a reservation. */ public void setUnrealizedSavings(String unrealizedSavings) { this.unrealizedSavings = unrealizedSavings; } /** *

* The unrealized savings because of purchasing and using a reservation. *

* * @return The unrealized savings because of purchasing and using a reservation. */ public String getUnrealizedSavings() { return this.unrealizedSavings; } /** *

* The unrealized savings because of purchasing and using a reservation. *

* * @param unrealizedSavings * The unrealized savings because of purchasing and using a reservation. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservationAggregates withUnrealizedSavings(String unrealizedSavings) { setUnrealizedSavings(unrealizedSavings); 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 (getUtilizationPercentage() != null) sb.append("UtilizationPercentage: ").append(getUtilizationPercentage()).append(","); if (getUtilizationPercentageInUnits() != null) sb.append("UtilizationPercentageInUnits: ").append(getUtilizationPercentageInUnits()).append(","); if (getPurchasedHours() != null) sb.append("PurchasedHours: ").append(getPurchasedHours()).append(","); if (getPurchasedUnits() != null) sb.append("PurchasedUnits: ").append(getPurchasedUnits()).append(","); if (getTotalActualHours() != null) sb.append("TotalActualHours: ").append(getTotalActualHours()).append(","); if (getTotalActualUnits() != null) sb.append("TotalActualUnits: ").append(getTotalActualUnits()).append(","); if (getUnusedHours() != null) sb.append("UnusedHours: ").append(getUnusedHours()).append(","); if (getUnusedUnits() != null) sb.append("UnusedUnits: ").append(getUnusedUnits()).append(","); if (getOnDemandCostOfRIHoursUsed() != null) sb.append("OnDemandCostOfRIHoursUsed: ").append(getOnDemandCostOfRIHoursUsed()).append(","); if (getNetRISavings() != null) sb.append("NetRISavings: ").append(getNetRISavings()).append(","); if (getTotalPotentialRISavings() != null) sb.append("TotalPotentialRISavings: ").append(getTotalPotentialRISavings()).append(","); if (getAmortizedUpfrontFee() != null) sb.append("AmortizedUpfrontFee: ").append(getAmortizedUpfrontFee()).append(","); if (getAmortizedRecurringFee() != null) sb.append("AmortizedRecurringFee: ").append(getAmortizedRecurringFee()).append(","); if (getTotalAmortizedFee() != null) sb.append("TotalAmortizedFee: ").append(getTotalAmortizedFee()).append(","); if (getRICostForUnusedHours() != null) sb.append("RICostForUnusedHours: ").append(getRICostForUnusedHours()).append(","); if (getRealizedSavings() != null) sb.append("RealizedSavings: ").append(getRealizedSavings()).append(","); if (getUnrealizedSavings() != null) sb.append("UnrealizedSavings: ").append(getUnrealizedSavings()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReservationAggregates == false) return false; ReservationAggregates other = (ReservationAggregates) obj; if (other.getUtilizationPercentage() == null ^ this.getUtilizationPercentage() == null) return false; if (other.getUtilizationPercentage() != null && other.getUtilizationPercentage().equals(this.getUtilizationPercentage()) == false) return false; if (other.getUtilizationPercentageInUnits() == null ^ this.getUtilizationPercentageInUnits() == null) return false; if (other.getUtilizationPercentageInUnits() != null && other.getUtilizationPercentageInUnits().equals(this.getUtilizationPercentageInUnits()) == false) return false; if (other.getPurchasedHours() == null ^ this.getPurchasedHours() == null) return false; if (other.getPurchasedHours() != null && other.getPurchasedHours().equals(this.getPurchasedHours()) == false) return false; if (other.getPurchasedUnits() == null ^ this.getPurchasedUnits() == null) return false; if (other.getPurchasedUnits() != null && other.getPurchasedUnits().equals(this.getPurchasedUnits()) == false) return false; if (other.getTotalActualHours() == null ^ this.getTotalActualHours() == null) return false; if (other.getTotalActualHours() != null && other.getTotalActualHours().equals(this.getTotalActualHours()) == false) return false; if (other.getTotalActualUnits() == null ^ this.getTotalActualUnits() == null) return false; if (other.getTotalActualUnits() != null && other.getTotalActualUnits().equals(this.getTotalActualUnits()) == false) return false; if (other.getUnusedHours() == null ^ this.getUnusedHours() == null) return false; if (other.getUnusedHours() != null && other.getUnusedHours().equals(this.getUnusedHours()) == false) return false; if (other.getUnusedUnits() == null ^ this.getUnusedUnits() == null) return false; if (other.getUnusedUnits() != null && other.getUnusedUnits().equals(this.getUnusedUnits()) == false) return false; if (other.getOnDemandCostOfRIHoursUsed() == null ^ this.getOnDemandCostOfRIHoursUsed() == null) return false; if (other.getOnDemandCostOfRIHoursUsed() != null && other.getOnDemandCostOfRIHoursUsed().equals(this.getOnDemandCostOfRIHoursUsed()) == false) return false; if (other.getNetRISavings() == null ^ this.getNetRISavings() == null) return false; if (other.getNetRISavings() != null && other.getNetRISavings().equals(this.getNetRISavings()) == false) return false; if (other.getTotalPotentialRISavings() == null ^ this.getTotalPotentialRISavings() == null) return false; if (other.getTotalPotentialRISavings() != null && other.getTotalPotentialRISavings().equals(this.getTotalPotentialRISavings()) == false) return false; if (other.getAmortizedUpfrontFee() == null ^ this.getAmortizedUpfrontFee() == null) return false; if (other.getAmortizedUpfrontFee() != null && other.getAmortizedUpfrontFee().equals(this.getAmortizedUpfrontFee()) == false) return false; if (other.getAmortizedRecurringFee() == null ^ this.getAmortizedRecurringFee() == null) return false; if (other.getAmortizedRecurringFee() != null && other.getAmortizedRecurringFee().equals(this.getAmortizedRecurringFee()) == false) return false; if (other.getTotalAmortizedFee() == null ^ this.getTotalAmortizedFee() == null) return false; if (other.getTotalAmortizedFee() != null && other.getTotalAmortizedFee().equals(this.getTotalAmortizedFee()) == false) return false; if (other.getRICostForUnusedHours() == null ^ this.getRICostForUnusedHours() == null) return false; if (other.getRICostForUnusedHours() != null && other.getRICostForUnusedHours().equals(this.getRICostForUnusedHours()) == false) return false; if (other.getRealizedSavings() == null ^ this.getRealizedSavings() == null) return false; if (other.getRealizedSavings() != null && other.getRealizedSavings().equals(this.getRealizedSavings()) == false) return false; if (other.getUnrealizedSavings() == null ^ this.getUnrealizedSavings() == null) return false; if (other.getUnrealizedSavings() != null && other.getUnrealizedSavings().equals(this.getUnrealizedSavings()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUtilizationPercentage() == null) ? 0 : getUtilizationPercentage().hashCode()); hashCode = prime * hashCode + ((getUtilizationPercentageInUnits() == null) ? 0 : getUtilizationPercentageInUnits().hashCode()); hashCode = prime * hashCode + ((getPurchasedHours() == null) ? 0 : getPurchasedHours().hashCode()); hashCode = prime * hashCode + ((getPurchasedUnits() == null) ? 0 : getPurchasedUnits().hashCode()); hashCode = prime * hashCode + ((getTotalActualHours() == null) ? 0 : getTotalActualHours().hashCode()); hashCode = prime * hashCode + ((getTotalActualUnits() == null) ? 0 : getTotalActualUnits().hashCode()); hashCode = prime * hashCode + ((getUnusedHours() == null) ? 0 : getUnusedHours().hashCode()); hashCode = prime * hashCode + ((getUnusedUnits() == null) ? 0 : getUnusedUnits().hashCode()); hashCode = prime * hashCode + ((getOnDemandCostOfRIHoursUsed() == null) ? 0 : getOnDemandCostOfRIHoursUsed().hashCode()); hashCode = prime * hashCode + ((getNetRISavings() == null) ? 0 : getNetRISavings().hashCode()); hashCode = prime * hashCode + ((getTotalPotentialRISavings() == null) ? 0 : getTotalPotentialRISavings().hashCode()); hashCode = prime * hashCode + ((getAmortizedUpfrontFee() == null) ? 0 : getAmortizedUpfrontFee().hashCode()); hashCode = prime * hashCode + ((getAmortizedRecurringFee() == null) ? 0 : getAmortizedRecurringFee().hashCode()); hashCode = prime * hashCode + ((getTotalAmortizedFee() == null) ? 0 : getTotalAmortizedFee().hashCode()); hashCode = prime * hashCode + ((getRICostForUnusedHours() == null) ? 0 : getRICostForUnusedHours().hashCode()); hashCode = prime * hashCode + ((getRealizedSavings() == null) ? 0 : getRealizedSavings().hashCode()); hashCode = prime * hashCode + ((getUnrealizedSavings() == null) ? 0 : getUnrealizedSavings().hashCode()); return hashCode; } @Override public ReservationAggregates clone() { try { return (ReservationAggregates) 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.ReservationAggregatesMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy