/* * Copyright 2018-2023 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.computeoptimizer.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 GetECSServiceRecommendationsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ARN that identifies the Amazon ECS service. *
** The following is the format of the ARN: *
*
* arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
*
* The token to advance to the next page of Amazon ECS service recommendations. *
*/ private String nextToken; /** ** The maximum number of Amazon ECS service recommendations to return with a single request. *
*
* To retrieve the remaining results, make another request with the returned nextToken
value.
*
* An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations. *
*/ private java.util.List* Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs. *
** If your account is the management account or the delegated administrator of an organization, use this parameter * to return the Amazon ECS service recommendations to specific member accounts. *
** You can only specify one account ID per request. *
*/ private java.util.List* The ARN that identifies the Amazon ECS service. *
** The following is the format of the ARN: *
*
* arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
*
* The following is the format of the ARN: *
*
*
* The ARN that identifies the Amazon ECS service.
*
* The following is the format of the ARN:
*
* arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
*/
public java.util.Listarn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
*
* The following is the format of the ARN: *
*
*
* The ARN that identifies the Amazon ECS service.
*
* The following is the format of the ARN:
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setServiceArns(java.util.Collection)} or {@link #withServiceArns(java.util.Collection)} if you want to
* override the existing values.
* arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
*/
public void setServiceArns(java.util.Collectionarn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
*
* The following is the format of the ARN: *
*
*
* The ARN that identifies the Amazon ECS service.
*
* The following is the format of the ARN:
*
* arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetECSServiceRecommendationsRequest withServiceArns(String... serviceArns) {
if (this.serviceArns == null) {
setServiceArns(new java.util.ArrayListarn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
*
* The following is the format of the ARN: *
*
*
* The token to advance to the next page of Amazon ECS service recommendations.
*
* The token to advance to the next page of Amazon ECS service recommendations.
*
* The token to advance to the next page of Amazon ECS service recommendations.
*
* The maximum number of Amazon ECS service recommendations to return with a single request.
*
* To retrieve the remaining results, make another request with the returned arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetECSServiceRecommendationsRequest withServiceArns(java.util.CollectionnextToken
value.
*
* To retrieve the remaining results, make another request with the returned nextToken
value.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of Amazon ECS service recommendations to return with a single request. *
*
* To retrieve the remaining results, make another request with the returned nextToken
value.
*
* To retrieve the remaining results, make another request with the returned nextToken
value.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of Amazon ECS service recommendations to return with a single request. *
*
* To retrieve the remaining results, make another request with the returned nextToken
value.
*
* To retrieve the remaining results, make another request with the returned nextToken
value.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetECSServiceRecommendationsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations. *
* * @return An array of objects to specify a filter that returns a more specific list of Amazon ECS service * recommendations. */ public java.util.List* An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations. *
* * @param filters * An array of objects to specify a filter that returns a more specific list of Amazon ECS service * recommendations. */ public void setFilters(java.util.Collection* An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFilters(java.util.Collection)} or {@link #withFilters(java.util.Collection)} if you want to override * the existing values. *
* * @param filters * An array of objects to specify a filter that returns a more specific list of Amazon ECS service * recommendations. * @return Returns a reference to this object so that method calls can be chained together. */ public GetECSServiceRecommendationsRequest withFilters(ECSServiceRecommendationFilter... filters) { if (this.filters == null) { setFilters(new java.util.ArrayList* An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations. *
* * @param filters * An array of objects to specify a filter that returns a more specific list of Amazon ECS service * recommendations. * @return Returns a reference to this object so that method calls can be chained together. */ public GetECSServiceRecommendationsRequest withFilters(java.util.Collection* Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs. *
** If your account is the management account or the delegated administrator of an organization, use this parameter * to return the Amazon ECS service recommendations to specific member accounts. *
** You can only specify one account ID per request. *
* * @return Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs. ** If your account is the management account or the delegated administrator of an organization, use this * parameter to return the Amazon ECS service recommendations to specific member accounts. *
*
* You can only specify one account ID per request.
*/
public java.util.List
* Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs.
*
* If your account is the management account or the delegated administrator of an organization, use this parameter
* to return the Amazon ECS service recommendations to specific member accounts.
*
* You can only specify one account ID per request.
*
* If your account is the management account or the delegated administrator of an organization, use this * parameter to return the Amazon ECS service recommendations to specific member accounts. *
*
* You can only specify one account ID per request.
*/
public void setAccountIds(java.util.Collection
* Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs.
*
* If your account is the management account or the delegated administrator of an organization, use this parameter
* to return the Amazon ECS service recommendations to specific member accounts.
*
* You can only specify one account ID per request.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAccountIds(java.util.Collection)} or {@link #withAccountIds(java.util.Collection)} if you want to
* override the existing values.
*
* If your account is the management account or the delegated administrator of an organization, use this * parameter to return the Amazon ECS service recommendations to specific member accounts. *
*
* You can only specify one account ID per request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetECSServiceRecommendationsRequest withAccountIds(String... accountIds) {
if (this.accountIds == null) {
setAccountIds(new java.util.ArrayList
* Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs.
*
* If your account is the management account or the delegated administrator of an organization, use this parameter
* to return the Amazon ECS service recommendations to specific member accounts.
*
* You can only specify one account ID per request.
*
* If your account is the management account or the delegated administrator of an organization, use this * parameter to return the Amazon ECS service recommendations to specific member accounts. *
*
* You can only specify one account ID per request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetECSServiceRecommendationsRequest withAccountIds(java.util.Collection