AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetLambdaFunctionRecommendationsRequest.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/ComputeOptimizerRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/compute-optimizer/model/LambdaFunctionRecommendationFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ComputeOptimizer
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_COMPUTEOPTIMIZER_API GetLambdaFunctionRecommendationsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetLambdaFunctionRecommendations"; }
33
34 AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override;
35
36 AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
51 inline const Aws::Vector<Aws::String>& GetFunctionArns() const { return m_functionArns; }
52 inline bool FunctionArnsHasBeenSet() const { return m_functionArnsHasBeenSet; }
53 template<typename FunctionArnsT = Aws::Vector<Aws::String>>
54 void SetFunctionArns(FunctionArnsT&& value) { m_functionArnsHasBeenSet = true; m_functionArns = std::forward<FunctionArnsT>(value); }
55 template<typename FunctionArnsT = Aws::Vector<Aws::String>>
56 GetLambdaFunctionRecommendationsRequest& WithFunctionArns(FunctionArnsT&& value) { SetFunctionArns(std::forward<FunctionArnsT>(value)); return *this;}
57 template<typename FunctionArnsT = Aws::String>
58 GetLambdaFunctionRecommendationsRequest& AddFunctionArns(FunctionArnsT&& value) { m_functionArnsHasBeenSet = true; m_functionArns.emplace_back(std::forward<FunctionArnsT>(value)); return *this; }
60
62
69 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
70 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
71 template<typename AccountIdsT = Aws::Vector<Aws::String>>
72 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
73 template<typename AccountIdsT = Aws::Vector<Aws::String>>
74 GetLambdaFunctionRecommendationsRequest& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
75 template<typename AccountIdsT = Aws::String>
76 GetLambdaFunctionRecommendationsRequest& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
78
80
84 inline const Aws::Vector<LambdaFunctionRecommendationFilter>& GetFilters() const { return m_filters; }
85 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
86 template<typename FiltersT = Aws::Vector<LambdaFunctionRecommendationFilter>>
87 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
88 template<typename FiltersT = Aws::Vector<LambdaFunctionRecommendationFilter>>
89 GetLambdaFunctionRecommendationsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
90 template<typename FiltersT = LambdaFunctionRecommendationFilter>
91 GetLambdaFunctionRecommendationsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
93
95
98 inline const Aws::String& GetNextToken() const { return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 template<typename NextTokenT = Aws::String>
101 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
102 template<typename NextTokenT = Aws::String>
103 GetLambdaFunctionRecommendationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
105
107
112 inline int GetMaxResults() const { return m_maxResults; }
113 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
114 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
115 inline GetLambdaFunctionRecommendationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
117 private:
118
119 Aws::Vector<Aws::String> m_functionArns;
120 bool m_functionArnsHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_accountIds;
123 bool m_accountIdsHasBeenSet = false;
124
126 bool m_filtersHasBeenSet = false;
127
128 Aws::String m_nextToken;
129 bool m_nextTokenHasBeenSet = false;
130
131 int m_maxResults{0};
132 bool m_maxResultsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace ComputeOptimizer
137} // namespace Aws
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
GetLambdaFunctionRecommendationsRequest & WithAccountIds(AccountIdsT &&value)
GetLambdaFunctionRecommendationsRequest & WithNextToken(NextTokenT &&value)
GetLambdaFunctionRecommendationsRequest & WithFunctionArns(FunctionArnsT &&value)
GetLambdaFunctionRecommendationsRequest & AddAccountIds(AccountIdsT &&value)
const Aws::Vector< LambdaFunctionRecommendationFilter > & GetFilters() const
AWS_COMPUTEOPTIMIZER_API GetLambdaFunctionRecommendationsRequest()=default
GetLambdaFunctionRecommendationsRequest & AddFunctionArns(FunctionArnsT &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector