/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ComputeOptimizer { namespace Model { /** */ class GetECSServiceRecommendationsRequest : public ComputeOptimizerRequest { public: AWS_COMPUTEOPTIMIZER_API GetECSServiceRecommendationsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetECSServiceRecommendations"; } AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override; AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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 *

*/ inline const Aws::Vector& GetServiceArns() const{ return m_serviceArns; } /** *

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 *

*/ inline bool ServiceArnsHasBeenSet() const { return m_serviceArnsHasBeenSet; } /** *

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 *

*/ inline void SetServiceArns(const Aws::Vector& value) { m_serviceArnsHasBeenSet = true; m_serviceArns = value; } /** *

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 *

*/ inline void SetServiceArns(Aws::Vector&& value) { m_serviceArnsHasBeenSet = true; m_serviceArns = std::move(value); } /** *

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 *

*/ inline GetECSServiceRecommendationsRequest& WithServiceArns(const Aws::Vector& value) { SetServiceArns(value); return *this;} /** *

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 *

*/ inline GetECSServiceRecommendationsRequest& WithServiceArns(Aws::Vector&& value) { SetServiceArns(std::move(value)); return *this;} /** *

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 *

*/ inline GetECSServiceRecommendationsRequest& AddServiceArns(const Aws::String& value) { m_serviceArnsHasBeenSet = true; m_serviceArns.push_back(value); return *this; } /** *

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 *

*/ inline GetECSServiceRecommendationsRequest& AddServiceArns(Aws::String&& value) { m_serviceArnsHasBeenSet = true; m_serviceArns.push_back(std::move(value)); return *this; } /** *

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 *

*/ inline GetECSServiceRecommendationsRequest& AddServiceArns(const char* value) { m_serviceArnsHasBeenSet = true; m_serviceArns.push_back(value); return *this; } /** *

The token to advance to the next page of Amazon ECS service recommendations. *

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token to advance to the next page of Amazon ECS service recommendations. *

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token to advance to the next page of Amazon ECS service recommendations. *

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token to advance to the next page of Amazon ECS service recommendations. *

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token to advance to the next page of Amazon ECS service recommendations. *

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token to advance to the next page of Amazon ECS service recommendations. *

*/ inline GetECSServiceRecommendationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token to advance to the next page of Amazon ECS service recommendations. *

*/ inline GetECSServiceRecommendationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token to advance to the next page of Amazon ECS service recommendations. *

*/ inline GetECSServiceRecommendationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

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.

*/ inline int GetMaxResults() const{ return m_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.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

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.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

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.

*/ inline GetECSServiceRecommendationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

An array of objects to specify a filter that returns a more specific list of * Amazon ECS service recommendations.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

An array of objects to specify a filter that returns a more specific list of * Amazon ECS service recommendations.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

An array of objects to specify a filter that returns a more specific list of * Amazon ECS service recommendations.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

An array of objects to specify a filter that returns a more specific list of * Amazon ECS service recommendations.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

An array of objects to specify a filter that returns a more specific list of * Amazon ECS service recommendations.

*/ inline GetECSServiceRecommendationsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

An array of objects to specify a filter that returns a more specific list of * Amazon ECS service recommendations.

*/ inline GetECSServiceRecommendationsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

An array of objects to specify a filter that returns a more specific list of * Amazon ECS service recommendations.

*/ inline GetECSServiceRecommendationsRequest& AddFilters(const ECSServiceRecommendationFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

An array of objects to specify a filter that returns a more specific list of * Amazon ECS service recommendations.

*/ inline GetECSServiceRecommendationsRequest& AddFilters(ECSServiceRecommendationFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

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.

*/ inline const Aws::Vector& GetAccountIds() const{ return m_accountIds; } /** *

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.

*/ inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; } /** *

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.

*/ inline void SetAccountIds(const Aws::Vector& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; } /** *

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.

*/ inline void SetAccountIds(Aws::Vector&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); } /** *

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.

*/ inline GetECSServiceRecommendationsRequest& WithAccountIds(const Aws::Vector& value) { SetAccountIds(value); return *this;} /** *

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.

*/ inline GetECSServiceRecommendationsRequest& WithAccountIds(Aws::Vector&& value) { SetAccountIds(std::move(value)); return *this;} /** *

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.

*/ inline GetECSServiceRecommendationsRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } /** *

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.

*/ inline GetECSServiceRecommendationsRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; } /** *

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.

*/ inline GetECSServiceRecommendationsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } private: Aws::Vector m_serviceArns; bool m_serviceArnsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; Aws::Vector m_accountIds; bool m_accountIdsHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws