/** * 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 GetLambdaFunctionRecommendationsRequest : public ComputeOptimizerRequest { public: AWS_COMPUTEOPTIMIZER_API GetLambdaFunctionRecommendationsRequest(); // 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 "GetLambdaFunctionRecommendations"; } AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override; AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the functions for which to return * recommendations.

You can specify a qualified or unqualified ARN. If you * specify an unqualified ARN without a function version suffix, Compute Optimizer * will return recommendations for the latest ($LATEST) version of the * function. If you specify a qualified ARN with a version suffix, Compute * Optimizer will return recommendations for the specified function version. For * more information about using function versions, see Using * versions in the Lambda Developer Guide.

*/ inline const Aws::Vector& GetFunctionArns() const{ return m_functionArns; } /** *

The Amazon Resource Name (ARN) of the functions for which to return * recommendations.

You can specify a qualified or unqualified ARN. If you * specify an unqualified ARN without a function version suffix, Compute Optimizer * will return recommendations for the latest ($LATEST) version of the * function. If you specify a qualified ARN with a version suffix, Compute * Optimizer will return recommendations for the specified function version. For * more information about using function versions, see Using * versions in the Lambda Developer Guide.

*/ inline bool FunctionArnsHasBeenSet() const { return m_functionArnsHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the functions for which to return * recommendations.

You can specify a qualified or unqualified ARN. If you * specify an unqualified ARN without a function version suffix, Compute Optimizer * will return recommendations for the latest ($LATEST) version of the * function. If you specify a qualified ARN with a version suffix, Compute * Optimizer will return recommendations for the specified function version. For * more information about using function versions, see Using * versions in the Lambda Developer Guide.

*/ inline void SetFunctionArns(const Aws::Vector& value) { m_functionArnsHasBeenSet = true; m_functionArns = value; } /** *

The Amazon Resource Name (ARN) of the functions for which to return * recommendations.

You can specify a qualified or unqualified ARN. If you * specify an unqualified ARN without a function version suffix, Compute Optimizer * will return recommendations for the latest ($LATEST) version of the * function. If you specify a qualified ARN with a version suffix, Compute * Optimizer will return recommendations for the specified function version. For * more information about using function versions, see Using * versions in the Lambda Developer Guide.

*/ inline void SetFunctionArns(Aws::Vector&& value) { m_functionArnsHasBeenSet = true; m_functionArns = std::move(value); } /** *

The Amazon Resource Name (ARN) of the functions for which to return * recommendations.

You can specify a qualified or unqualified ARN. If you * specify an unqualified ARN without a function version suffix, Compute Optimizer * will return recommendations for the latest ($LATEST) version of the * function. If you specify a qualified ARN with a version suffix, Compute * Optimizer will return recommendations for the specified function version. For * more information about using function versions, see Using * versions in the Lambda Developer Guide.

*/ inline GetLambdaFunctionRecommendationsRequest& WithFunctionArns(const Aws::Vector& value) { SetFunctionArns(value); return *this;} /** *

The Amazon Resource Name (ARN) of the functions for which to return * recommendations.

You can specify a qualified or unqualified ARN. If you * specify an unqualified ARN without a function version suffix, Compute Optimizer * will return recommendations for the latest ($LATEST) version of the * function. If you specify a qualified ARN with a version suffix, Compute * Optimizer will return recommendations for the specified function version. For * more information about using function versions, see Using * versions in the Lambda Developer Guide.

*/ inline GetLambdaFunctionRecommendationsRequest& WithFunctionArns(Aws::Vector&& value) { SetFunctionArns(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the functions for which to return * recommendations.

You can specify a qualified or unqualified ARN. If you * specify an unqualified ARN without a function version suffix, Compute Optimizer * will return recommendations for the latest ($LATEST) version of the * function. If you specify a qualified ARN with a version suffix, Compute * Optimizer will return recommendations for the specified function version. For * more information about using function versions, see Using * versions in the Lambda Developer Guide.

*/ inline GetLambdaFunctionRecommendationsRequest& AddFunctionArns(const Aws::String& value) { m_functionArnsHasBeenSet = true; m_functionArns.push_back(value); return *this; } /** *

The Amazon Resource Name (ARN) of the functions for which to return * recommendations.

You can specify a qualified or unqualified ARN. If you * specify an unqualified ARN without a function version suffix, Compute Optimizer * will return recommendations for the latest ($LATEST) version of the * function. If you specify a qualified ARN with a version suffix, Compute * Optimizer will return recommendations for the specified function version. For * more information about using function versions, see Using * versions in the Lambda Developer Guide.

*/ inline GetLambdaFunctionRecommendationsRequest& AddFunctionArns(Aws::String&& value) { m_functionArnsHasBeenSet = true; m_functionArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the functions for which to return * recommendations.

You can specify a qualified or unqualified ARN. If you * specify an unqualified ARN without a function version suffix, Compute Optimizer * will return recommendations for the latest ($LATEST) version of the * function. If you specify a qualified ARN with a version suffix, Compute * Optimizer will return recommendations for the specified function version. For * more information about using function versions, see Using * versions in the Lambda Developer Guide.

*/ inline GetLambdaFunctionRecommendationsRequest& AddFunctionArns(const char* value) { m_functionArnsHasBeenSet = true; m_functionArns.push_back(value); return *this; } /** *

The ID of the Amazon Web Services account for which to return function * recommendations.

If your account is the management account of an * organization, use this parameter to specify the member account for which you * want to return function recommendations.

Only one account ID can be * specified per request.

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

The ID of the Amazon Web Services account for which to return function * recommendations.

If your account is the management account of an * organization, use this parameter to specify the member account for which you * want to return function recommendations.

Only one account ID can be * specified per request.

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

The ID of the Amazon Web Services account for which to return function * recommendations.

If your account is the management account of an * organization, use this parameter to specify the member account for which you * want to return function recommendations.

Only one account ID can be * specified per request.

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

The ID of the Amazon Web Services account for which to return function * recommendations.

If your account is the management account of an * organization, use this parameter to specify the member account for which you * want to return function recommendations.

Only one account ID can be * specified per request.

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

The ID of the Amazon Web Services account for which to return function * recommendations.

If your account is the management account of an * organization, use this parameter to specify the member account for which you * want to return function recommendations.

Only one account ID can be * specified per request.

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

The ID of the Amazon Web Services account for which to return function * recommendations.

If your account is the management account of an * organization, use this parameter to specify the member account for which you * want to return function recommendations.

Only one account ID can be * specified per request.

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

The ID of the Amazon Web Services account for which to return function * recommendations.

If your account is the management account of an * organization, use this parameter to specify the member account for which you * want to return function recommendations.

Only one account ID can be * specified per request.

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

The ID of the Amazon Web Services account for which to return function * recommendations.

If your account is the management account of an * organization, use this parameter to specify the member account for which you * want to return function recommendations.

Only one account ID can be * specified per request.

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

The ID of the Amazon Web Services account for which to return function * recommendations.

If your account is the management account of an * organization, use this parameter to specify the member account for which you * want to return function recommendations.

Only one account ID can be * specified per request.

*/ inline GetLambdaFunctionRecommendationsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } /** *

An array of objects to specify a filter that returns a more specific list of * function 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 * function recommendations.

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

An array of objects to specify a filter that returns a more specific list of * function 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 * function 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 * function recommendations.

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

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

*/ inline GetLambdaFunctionRecommendationsRequest& 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 * function recommendations.

*/ inline GetLambdaFunctionRecommendationsRequest& AddFilters(const LambdaFunctionRecommendationFilter& 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 * function recommendations.

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

The token to advance to the next page of function recommendations.

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

The token to advance to the next page of function recommendations.

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

The token to advance to the next page of function recommendations.

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

The token to advance to the next page of function recommendations.

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

The token to advance to the next page of function recommendations.

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

The token to advance to the next page of function recommendations.

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

The token to advance to the next page of function recommendations.

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

The token to advance to the next page of function recommendations.

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

The maximum number of function 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 function 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 function 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 function recommendations to return with a single * request.

To retrieve the remaining results, make another request with the * returned nextToken value.

*/ inline GetLambdaFunctionRecommendationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::Vector m_functionArns; bool m_functionArnsHasBeenSet = false; Aws::Vector m_accountIds; bool m_accountIdsHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws