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

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

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

    /**
     * 

* Information that regards this specific recommendation set. *

*/ private SavingsPlansPurchaseRecommendationMetadata metadata; /** *

* Contains your request parameters, Savings Plan Recommendations Summary, and Details. *

*/ private SavingsPlansPurchaseRecommendation savingsPlansPurchaseRecommendation; /** *

* The token for the next set of retrievable results. Amazon Web Services provides the token when the response from * a previous call has more results than the maximum page size. *

*/ private String nextPageToken; /** *

* Information that regards this specific recommendation set. *

* * @param metadata * Information that regards this specific recommendation set. */ public void setMetadata(SavingsPlansPurchaseRecommendationMetadata metadata) { this.metadata = metadata; } /** *

* Information that regards this specific recommendation set. *

* * @return Information that regards this specific recommendation set. */ public SavingsPlansPurchaseRecommendationMetadata getMetadata() { return this.metadata; } /** *

* Information that regards this specific recommendation set. *

* * @param metadata * Information that regards this specific recommendation set. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSavingsPlansPurchaseRecommendationResult withMetadata(SavingsPlansPurchaseRecommendationMetadata metadata) { setMetadata(metadata); return this; } /** *

* Contains your request parameters, Savings Plan Recommendations Summary, and Details. *

* * @param savingsPlansPurchaseRecommendation * Contains your request parameters, Savings Plan Recommendations Summary, and Details. */ public void setSavingsPlansPurchaseRecommendation(SavingsPlansPurchaseRecommendation savingsPlansPurchaseRecommendation) { this.savingsPlansPurchaseRecommendation = savingsPlansPurchaseRecommendation; } /** *

* Contains your request parameters, Savings Plan Recommendations Summary, and Details. *

* * @return Contains your request parameters, Savings Plan Recommendations Summary, and Details. */ public SavingsPlansPurchaseRecommendation getSavingsPlansPurchaseRecommendation() { return this.savingsPlansPurchaseRecommendation; } /** *

* Contains your request parameters, Savings Plan Recommendations Summary, and Details. *

* * @param savingsPlansPurchaseRecommendation * Contains your request parameters, Savings Plan Recommendations Summary, and Details. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSavingsPlansPurchaseRecommendationResult withSavingsPlansPurchaseRecommendation( SavingsPlansPurchaseRecommendation savingsPlansPurchaseRecommendation) { setSavingsPlansPurchaseRecommendation(savingsPlansPurchaseRecommendation); return this; } /** *

* The token for the next set of retrievable results. Amazon Web Services provides the token when the response from * a previous call has more results than the maximum page size. *

* * @param nextPageToken * The token for the next set of retrievable results. Amazon Web Services provides the token when the * response from a previous call has more results than the maximum page size. */ public void setNextPageToken(String nextPageToken) { this.nextPageToken = nextPageToken; } /** *

* The token for the next set of retrievable results. Amazon Web Services provides the token when the response from * a previous call has more results than the maximum page size. *

* * @return The token for the next set of retrievable results. Amazon Web Services provides the token when the * response from a previous call has more results than the maximum page size. */ public String getNextPageToken() { return this.nextPageToken; } /** *

* The token for the next set of retrievable results. Amazon Web Services provides the token when the response from * a previous call has more results than the maximum page size. *

* * @param nextPageToken * The token for the next set of retrievable results. Amazon Web Services provides the token when the * response from a previous call has more results than the maximum page size. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSavingsPlansPurchaseRecommendationResult withNextPageToken(String nextPageToken) { setNextPageToken(nextPageToken); 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 (getMetadata() != null) sb.append("Metadata: ").append(getMetadata()).append(","); if (getSavingsPlansPurchaseRecommendation() != null) sb.append("SavingsPlansPurchaseRecommendation: ").append(getSavingsPlansPurchaseRecommendation()).append(","); if (getNextPageToken() != null) sb.append("NextPageToken: ").append(getNextPageToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetSavingsPlansPurchaseRecommendationResult == false) return false; GetSavingsPlansPurchaseRecommendationResult other = (GetSavingsPlansPurchaseRecommendationResult) obj; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false) return false; if (other.getSavingsPlansPurchaseRecommendation() == null ^ this.getSavingsPlansPurchaseRecommendation() == null) return false; if (other.getSavingsPlansPurchaseRecommendation() != null && other.getSavingsPlansPurchaseRecommendation().equals(this.getSavingsPlansPurchaseRecommendation()) == false) return false; if (other.getNextPageToken() == null ^ this.getNextPageToken() == null) return false; if (other.getNextPageToken() != null && other.getNextPageToken().equals(this.getNextPageToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); hashCode = prime * hashCode + ((getSavingsPlansPurchaseRecommendation() == null) ? 0 : getSavingsPlansPurchaseRecommendation().hashCode()); hashCode = prime * hashCode + ((getNextPageToken() == null) ? 0 : getNextPageToken().hashCode()); return hashCode; } @Override public GetSavingsPlansPurchaseRecommendationResult clone() { try { return (GetSavingsPlansPurchaseRecommendationResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy