AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetLambdaFunctionRecommendationsRequest.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizerRequest.h>
8#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
9#include <aws/compute-optimizer/model/LambdaFunctionRecommendationFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ComputeOptimizer {
17namespace Model {
18
22 public:
23 AWS_COMPUTEOPTIMIZER_API GetLambdaFunctionRecommendationsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetLambdaFunctionRecommendations"; }
30
31 AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override;
32
33 AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
47 inline const Aws::Vector<Aws::String>& GetFunctionArns() const { return m_functionArns; }
48 inline bool FunctionArnsHasBeenSet() const { return m_functionArnsHasBeenSet; }
49 template <typename FunctionArnsT = Aws::Vector<Aws::String>>
50 void SetFunctionArns(FunctionArnsT&& value) {
51 m_functionArnsHasBeenSet = true;
52 m_functionArns = std::forward<FunctionArnsT>(value);
53 }
54 template <typename FunctionArnsT = Aws::Vector<Aws::String>>
56 SetFunctionArns(std::forward<FunctionArnsT>(value));
57 return *this;
58 }
59 template <typename FunctionArnsT = Aws::String>
61 m_functionArnsHasBeenSet = true;
62 m_functionArns.emplace_back(std::forward<FunctionArnsT>(value));
63 return *this;
64 }
66
68
75 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
76 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
77 template <typename AccountIdsT = Aws::Vector<Aws::String>>
78 void SetAccountIds(AccountIdsT&& value) {
79 m_accountIdsHasBeenSet = true;
80 m_accountIds = std::forward<AccountIdsT>(value);
81 }
82 template <typename AccountIdsT = Aws::Vector<Aws::String>>
84 SetAccountIds(std::forward<AccountIdsT>(value));
85 return *this;
86 }
87 template <typename AccountIdsT = Aws::String>
89 m_accountIdsHasBeenSet = true;
90 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<LambdaFunctionRecommendationFilter>& GetFilters() const { return m_filters; }
101 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
102 template <typename FiltersT = Aws::Vector<LambdaFunctionRecommendationFilter>>
103 void SetFilters(FiltersT&& value) {
104 m_filtersHasBeenSet = true;
105 m_filters = std::forward<FiltersT>(value);
106 }
107 template <typename FiltersT = Aws::Vector<LambdaFunctionRecommendationFilter>>
109 SetFilters(std::forward<FiltersT>(value));
110 return *this;
111 }
112 template <typename FiltersT = LambdaFunctionRecommendationFilter>
114 m_filtersHasBeenSet = true;
115 m_filters.emplace_back(std::forward<FiltersT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetNextToken() const { return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 template <typename NextTokenT = Aws::String>
127 void SetNextToken(NextTokenT&& value) {
128 m_nextTokenHasBeenSet = true;
129 m_nextToken = std::forward<NextTokenT>(value);
130 }
131 template <typename NextTokenT = Aws::String>
133 SetNextToken(std::forward<NextTokenT>(value));
134 return *this;
135 }
137
139
144 inline int GetMaxResults() const { return m_maxResults; }
145 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
146 inline void SetMaxResults(int value) {
147 m_maxResultsHasBeenSet = true;
148 m_maxResults = value;
149 }
151 SetMaxResults(value);
152 return *this;
153 }
155 private:
156 Aws::Vector<Aws::String> m_functionArns;
157
158 Aws::Vector<Aws::String> m_accountIds;
159
161
162 Aws::String m_nextToken;
163
164 int m_maxResults{0};
165 bool m_functionArnsHasBeenSet = false;
166 bool m_accountIdsHasBeenSet = false;
167 bool m_filtersHasBeenSet = false;
168 bool m_nextTokenHasBeenSet = false;
169 bool m_maxResultsHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace ComputeOptimizer
174} // 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