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

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

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

    private Expression filter;
    /**
     * 

* You can use Configuration to customize recommendations across two attributes. You can choose to view * recommendations for instances within the same instance families or across different instance families. You can * also choose to view your estimated savings that are associated with recommendations with consideration of * existing Savings Plans or RI benefits, or neither. *

*/ private RightsizingRecommendationConfiguration configuration; /** *

* The specific service that you want recommendations for. The only valid value for * GetRightsizingRecommendation is "AmazonEC2". *

*/ private String service; /** *

* The number of recommendations that you want returned in a single response object. *

*/ private Integer pageSize; /** *

* The pagination token that indicates the next set of results that you want to retrieve. *

*/ private String nextPageToken; /** * @param filter */ public void setFilter(Expression filter) { this.filter = filter; } /** * @return */ public Expression getFilter() { return this.filter; } /** * @param filter * @return Returns a reference to this object so that method calls can be chained together. */ public GetRightsizingRecommendationRequest withFilter(Expression filter) { setFilter(filter); return this; } /** *

* You can use Configuration to customize recommendations across two attributes. You can choose to view * recommendations for instances within the same instance families or across different instance families. You can * also choose to view your estimated savings that are associated with recommendations with consideration of * existing Savings Plans or RI benefits, or neither. *

* * @param configuration * You can use Configuration to customize recommendations across two attributes. You can choose to view * recommendations for instances within the same instance families or across different instance families. You * can also choose to view your estimated savings that are associated with recommendations with consideration * of existing Savings Plans or RI benefits, or neither. */ public void setConfiguration(RightsizingRecommendationConfiguration configuration) { this.configuration = configuration; } /** *

* You can use Configuration to customize recommendations across two attributes. You can choose to view * recommendations for instances within the same instance families or across different instance families. You can * also choose to view your estimated savings that are associated with recommendations with consideration of * existing Savings Plans or RI benefits, or neither. *

* * @return You can use Configuration to customize recommendations across two attributes. You can choose to view * recommendations for instances within the same instance families or across different instance families. * You can also choose to view your estimated savings that are associated with recommendations with * consideration of existing Savings Plans or RI benefits, or neither. */ public RightsizingRecommendationConfiguration getConfiguration() { return this.configuration; } /** *

* You can use Configuration to customize recommendations across two attributes. You can choose to view * recommendations for instances within the same instance families or across different instance families. You can * also choose to view your estimated savings that are associated with recommendations with consideration of * existing Savings Plans or RI benefits, or neither. *

* * @param configuration * You can use Configuration to customize recommendations across two attributes. You can choose to view * recommendations for instances within the same instance families or across different instance families. You * can also choose to view your estimated savings that are associated with recommendations with consideration * of existing Savings Plans or RI benefits, or neither. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRightsizingRecommendationRequest withConfiguration(RightsizingRecommendationConfiguration configuration) { setConfiguration(configuration); return this; } /** *

* The specific service that you want recommendations for. The only valid value for * GetRightsizingRecommendation is "AmazonEC2". *

* * @param service * The specific service that you want recommendations for. The only valid value for * GetRightsizingRecommendation is "AmazonEC2". */ public void setService(String service) { this.service = service; } /** *

* The specific service that you want recommendations for. The only valid value for * GetRightsizingRecommendation is "AmazonEC2". *

* * @return The specific service that you want recommendations for. The only valid value for * GetRightsizingRecommendation is "AmazonEC2". */ public String getService() { return this.service; } /** *

* The specific service that you want recommendations for. The only valid value for * GetRightsizingRecommendation is "AmazonEC2". *

* * @param service * The specific service that you want recommendations for. The only valid value for * GetRightsizingRecommendation is "AmazonEC2". * @return Returns a reference to this object so that method calls can be chained together. */ public GetRightsizingRecommendationRequest withService(String service) { setService(service); return this; } /** *

* The number of recommendations that you want returned in a single response object. *

* * @param pageSize * The number of recommendations that you want returned in a single response object. */ public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } /** *

* The number of recommendations that you want returned in a single response object. *

* * @return The number of recommendations that you want returned in a single response object. */ public Integer getPageSize() { return this.pageSize; } /** *

* The number of recommendations that you want returned in a single response object. *

* * @param pageSize * The number of recommendations that you want returned in a single response object. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRightsizingRecommendationRequest withPageSize(Integer pageSize) { setPageSize(pageSize); return this; } /** *

* The pagination token that indicates the next set of results that you want to retrieve. *

* * @param nextPageToken * The pagination token that indicates the next set of results that you want to retrieve. */ public void setNextPageToken(String nextPageToken) { this.nextPageToken = nextPageToken; } /** *

* The pagination token that indicates the next set of results that you want to retrieve. *

* * @return The pagination token that indicates the next set of results that you want to retrieve. */ public String getNextPageToken() { return this.nextPageToken; } /** *

* The pagination token that indicates the next set of results that you want to retrieve. *

* * @param nextPageToken * The pagination token that indicates the next set of results that you want to retrieve. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRightsizingRecommendationRequest 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 (getFilter() != null) sb.append("Filter: ").append(getFilter()).append(","); if (getConfiguration() != null) sb.append("Configuration: ").append(getConfiguration()).append(","); if (getService() != null) sb.append("Service: ").append(getService()).append(","); if (getPageSize() != null) sb.append("PageSize: ").append(getPageSize()).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 GetRightsizingRecommendationRequest == false) return false; GetRightsizingRecommendationRequest other = (GetRightsizingRecommendationRequest) obj; if (other.getFilter() == null ^ this.getFilter() == null) return false; if (other.getFilter() != null && other.getFilter().equals(this.getFilter()) == false) return false; if (other.getConfiguration() == null ^ this.getConfiguration() == null) return false; if (other.getConfiguration() != null && other.getConfiguration().equals(this.getConfiguration()) == false) return false; if (other.getService() == null ^ this.getService() == null) return false; if (other.getService() != null && other.getService().equals(this.getService()) == false) return false; if (other.getPageSize() == null ^ this.getPageSize() == null) return false; if (other.getPageSize() != null && other.getPageSize().equals(this.getPageSize()) == 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 + ((getFilter() == null) ? 0 : getFilter().hashCode()); hashCode = prime * hashCode + ((getConfiguration() == null) ? 0 : getConfiguration().hashCode()); hashCode = prime * hashCode + ((getService() == null) ? 0 : getService().hashCode()); hashCode = prime * hashCode + ((getPageSize() == null) ? 0 : getPageSize().hashCode()); hashCode = prime * hashCode + ((getNextPageToken() == null) ? 0 : getNextPageToken().hashCode()); return hashCode; } @Override public GetRightsizingRecommendationRequest clone() { return (GetRightsizingRecommendationRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy