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

com.amazonaws.services.costexplorer.model.SavingsPlansAmortizedCommitment 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 amortized amount of Savings Plans purchased in a specific account during a specific time interval. *

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

* The amortized amount of your Savings Plans commitment that was purchased with either a Partial or a * NoUpfront. *

*/ private String amortizedRecurringCommitment; /** *

* The amortized amount of your Savings Plans commitment that was purchased with an Upfront or * PartialUpfront Savings Plans. *

*/ private String amortizedUpfrontCommitment; /** *

* The total amortized amount of your Savings Plans commitment, regardless of your Savings Plans purchase method. *

*/ private String totalAmortizedCommitment; /** *

* The amortized amount of your Savings Plans commitment that was purchased with either a Partial or a * NoUpfront. *

* * @param amortizedRecurringCommitment * The amortized amount of your Savings Plans commitment that was purchased with either a * Partial or a NoUpfront. */ public void setAmortizedRecurringCommitment(String amortizedRecurringCommitment) { this.amortizedRecurringCommitment = amortizedRecurringCommitment; } /** *

* The amortized amount of your Savings Plans commitment that was purchased with either a Partial or a * NoUpfront. *

* * @return The amortized amount of your Savings Plans commitment that was purchased with either a * Partial or a NoUpfront. */ public String getAmortizedRecurringCommitment() { return this.amortizedRecurringCommitment; } /** *

* The amortized amount of your Savings Plans commitment that was purchased with either a Partial or a * NoUpfront. *

* * @param amortizedRecurringCommitment * The amortized amount of your Savings Plans commitment that was purchased with either a * Partial or a NoUpfront. * @return Returns a reference to this object so that method calls can be chained together. */ public SavingsPlansAmortizedCommitment withAmortizedRecurringCommitment(String amortizedRecurringCommitment) { setAmortizedRecurringCommitment(amortizedRecurringCommitment); return this; } /** *

* The amortized amount of your Savings Plans commitment that was purchased with an Upfront or * PartialUpfront Savings Plans. *

* * @param amortizedUpfrontCommitment * The amortized amount of your Savings Plans commitment that was purchased with an Upfront or * PartialUpfront Savings Plans. */ public void setAmortizedUpfrontCommitment(String amortizedUpfrontCommitment) { this.amortizedUpfrontCommitment = amortizedUpfrontCommitment; } /** *

* The amortized amount of your Savings Plans commitment that was purchased with an Upfront or * PartialUpfront Savings Plans. *

* * @return The amortized amount of your Savings Plans commitment that was purchased with an Upfront or * PartialUpfront Savings Plans. */ public String getAmortizedUpfrontCommitment() { return this.amortizedUpfrontCommitment; } /** *

* The amortized amount of your Savings Plans commitment that was purchased with an Upfront or * PartialUpfront Savings Plans. *

* * @param amortizedUpfrontCommitment * The amortized amount of your Savings Plans commitment that was purchased with an Upfront or * PartialUpfront Savings Plans. * @return Returns a reference to this object so that method calls can be chained together. */ public SavingsPlansAmortizedCommitment withAmortizedUpfrontCommitment(String amortizedUpfrontCommitment) { setAmortizedUpfrontCommitment(amortizedUpfrontCommitment); return this; } /** *

* The total amortized amount of your Savings Plans commitment, regardless of your Savings Plans purchase method. *

* * @param totalAmortizedCommitment * The total amortized amount of your Savings Plans commitment, regardless of your Savings Plans purchase * method. */ public void setTotalAmortizedCommitment(String totalAmortizedCommitment) { this.totalAmortizedCommitment = totalAmortizedCommitment; } /** *

* The total amortized amount of your Savings Plans commitment, regardless of your Savings Plans purchase method. *

* * @return The total amortized amount of your Savings Plans commitment, regardless of your Savings Plans purchase * method. */ public String getTotalAmortizedCommitment() { return this.totalAmortizedCommitment; } /** *

* The total amortized amount of your Savings Plans commitment, regardless of your Savings Plans purchase method. *

* * @param totalAmortizedCommitment * The total amortized amount of your Savings Plans commitment, regardless of your Savings Plans purchase * method. * @return Returns a reference to this object so that method calls can be chained together. */ public SavingsPlansAmortizedCommitment withTotalAmortizedCommitment(String totalAmortizedCommitment) { setTotalAmortizedCommitment(totalAmortizedCommitment); 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 (getAmortizedRecurringCommitment() != null) sb.append("AmortizedRecurringCommitment: ").append(getAmortizedRecurringCommitment()).append(","); if (getAmortizedUpfrontCommitment() != null) sb.append("AmortizedUpfrontCommitment: ").append(getAmortizedUpfrontCommitment()).append(","); if (getTotalAmortizedCommitment() != null) sb.append("TotalAmortizedCommitment: ").append(getTotalAmortizedCommitment()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SavingsPlansAmortizedCommitment == false) return false; SavingsPlansAmortizedCommitment other = (SavingsPlansAmortizedCommitment) obj; if (other.getAmortizedRecurringCommitment() == null ^ this.getAmortizedRecurringCommitment() == null) return false; if (other.getAmortizedRecurringCommitment() != null && other.getAmortizedRecurringCommitment().equals(this.getAmortizedRecurringCommitment()) == false) return false; if (other.getAmortizedUpfrontCommitment() == null ^ this.getAmortizedUpfrontCommitment() == null) return false; if (other.getAmortizedUpfrontCommitment() != null && other.getAmortizedUpfrontCommitment().equals(this.getAmortizedUpfrontCommitment()) == false) return false; if (other.getTotalAmortizedCommitment() == null ^ this.getTotalAmortizedCommitment() == null) return false; if (other.getTotalAmortizedCommitment() != null && other.getTotalAmortizedCommitment().equals(this.getTotalAmortizedCommitment()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAmortizedRecurringCommitment() == null) ? 0 : getAmortizedRecurringCommitment().hashCode()); hashCode = prime * hashCode + ((getAmortizedUpfrontCommitment() == null) ? 0 : getAmortizedUpfrontCommitment().hashCode()); hashCode = prime * hashCode + ((getTotalAmortizedCommitment() == null) ? 0 : getTotalAmortizedCommitment().hashCode()); return hashCode; } @Override public SavingsPlansAmortizedCommitment clone() { try { return (SavingsPlansAmortizedCommitment) 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.SavingsPlansAmortizedCommitmentMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy