AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
ServerlessFunctionAggregation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/MapFilter.h>
10#include <aws/inspector2/model/ServerlessFunctionSortBy.h>
11#include <aws/inspector2/model/SortOrder.h>
12#include <aws/inspector2/model/StringFilter.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2 {
24namespace Model {
25
33 public:
34 AWS_INSPECTOR2_API ServerlessFunctionAggregation() = default;
37 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<StringFilter>& GetResourceIds() const { return m_resourceIds; }
44 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
45 template <typename ResourceIdsT = Aws::Vector<StringFilter>>
46 void SetResourceIds(ResourceIdsT&& value) {
47 m_resourceIdsHasBeenSet = true;
48 m_resourceIds = std::forward<ResourceIdsT>(value);
49 }
50 template <typename ResourceIdsT = Aws::Vector<StringFilter>>
52 SetResourceIds(std::forward<ResourceIdsT>(value));
53 return *this;
54 }
55 template <typename ResourceIdsT = StringFilter>
57 m_resourceIdsHasBeenSet = true;
58 m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<StringFilter>& GetFunctionNames() const { return m_functionNames; }
68 inline bool FunctionNamesHasBeenSet() const { return m_functionNamesHasBeenSet; }
69 template <typename FunctionNamesT = Aws::Vector<StringFilter>>
70 void SetFunctionNames(FunctionNamesT&& value) {
71 m_functionNamesHasBeenSet = true;
72 m_functionNames = std::forward<FunctionNamesT>(value);
73 }
74 template <typename FunctionNamesT = Aws::Vector<StringFilter>>
76 SetFunctionNames(std::forward<FunctionNamesT>(value));
77 return *this;
78 }
79 template <typename FunctionNamesT = StringFilter>
81 m_functionNamesHasBeenSet = true;
82 m_functionNames.emplace_back(std::forward<FunctionNamesT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Vector<StringFilter>& GetRuntimes() const { return m_runtimes; }
92 inline bool RuntimesHasBeenSet() const { return m_runtimesHasBeenSet; }
93 template <typename RuntimesT = Aws::Vector<StringFilter>>
94 void SetRuntimes(RuntimesT&& value) {
95 m_runtimesHasBeenSet = true;
96 m_runtimes = std::forward<RuntimesT>(value);
97 }
98 template <typename RuntimesT = Aws::Vector<StringFilter>>
100 SetRuntimes(std::forward<RuntimesT>(value));
101 return *this;
102 }
103 template <typename RuntimesT = StringFilter>
105 m_runtimesHasBeenSet = true;
106 m_runtimes.emplace_back(std::forward<RuntimesT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<MapFilter>& GetFunctionTags() const { return m_functionTags; }
116 inline bool FunctionTagsHasBeenSet() const { return m_functionTagsHasBeenSet; }
117 template <typename FunctionTagsT = Aws::Vector<MapFilter>>
118 void SetFunctionTags(FunctionTagsT&& value) {
119 m_functionTagsHasBeenSet = true;
120 m_functionTags = std::forward<FunctionTagsT>(value);
121 }
122 template <typename FunctionTagsT = Aws::Vector<MapFilter>>
124 SetFunctionTags(std::forward<FunctionTagsT>(value));
125 return *this;
126 }
127 template <typename FunctionTagsT = MapFilter>
129 m_functionTagsHasBeenSet = true;
130 m_functionTags.emplace_back(std::forward<FunctionTagsT>(value));
131 return *this;
132 }
134
136
142 inline const Aws::Vector<StringFilter>& GetCloudProviders() const { return m_cloudProviders; }
143 inline bool CloudProvidersHasBeenSet() const { return m_cloudProvidersHasBeenSet; }
144 template <typename CloudProvidersT = Aws::Vector<StringFilter>>
145 void SetCloudProviders(CloudProvidersT&& value) {
146 m_cloudProvidersHasBeenSet = true;
147 m_cloudProviders = std::forward<CloudProvidersT>(value);
148 }
149 template <typename CloudProvidersT = Aws::Vector<StringFilter>>
151 SetCloudProviders(std::forward<CloudProvidersT>(value));
152 return *this;
153 }
154 template <typename CloudProvidersT = StringFilter>
156 m_cloudProvidersHasBeenSet = true;
157 m_cloudProviders.emplace_back(std::forward<CloudProvidersT>(value));
158 return *this;
159 }
161
163
170 inline const Aws::Vector<StringFilter>& GetCloudPartitions() const { return m_cloudPartitions; }
171 inline bool CloudPartitionsHasBeenSet() const { return m_cloudPartitionsHasBeenSet; }
172 template <typename CloudPartitionsT = Aws::Vector<StringFilter>>
173 void SetCloudPartitions(CloudPartitionsT&& value) {
174 m_cloudPartitionsHasBeenSet = true;
175 m_cloudPartitions = std::forward<CloudPartitionsT>(value);
176 }
177 template <typename CloudPartitionsT = Aws::Vector<StringFilter>>
179 SetCloudPartitions(std::forward<CloudPartitionsT>(value));
180 return *this;
181 }
182 template <typename CloudPartitionsT = StringFilter>
184 m_cloudPartitionsHasBeenSet = true;
185 m_cloudPartitions.emplace_back(std::forward<CloudPartitionsT>(value));
186 return *this;
187 }
189
191
197 inline const Aws::Vector<StringFilter>& GetCloudRegions() const { return m_cloudRegions; }
198 inline bool CloudRegionsHasBeenSet() const { return m_cloudRegionsHasBeenSet; }
199 template <typename CloudRegionsT = Aws::Vector<StringFilter>>
200 void SetCloudRegions(CloudRegionsT&& value) {
201 m_cloudRegionsHasBeenSet = true;
202 m_cloudRegions = std::forward<CloudRegionsT>(value);
203 }
204 template <typename CloudRegionsT = Aws::Vector<StringFilter>>
206 SetCloudRegions(std::forward<CloudRegionsT>(value));
207 return *this;
208 }
209 template <typename CloudRegionsT = StringFilter>
211 m_cloudRegionsHasBeenSet = true;
212 m_cloudRegions.emplace_back(std::forward<CloudRegionsT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Vector<StringFilter>& GetCloudOrgIds() const { return m_cloudOrgIds; }
222 inline bool CloudOrgIdsHasBeenSet() const { return m_cloudOrgIdsHasBeenSet; }
223 template <typename CloudOrgIdsT = Aws::Vector<StringFilter>>
224 void SetCloudOrgIds(CloudOrgIdsT&& value) {
225 m_cloudOrgIdsHasBeenSet = true;
226 m_cloudOrgIds = std::forward<CloudOrgIdsT>(value);
227 }
228 template <typename CloudOrgIdsT = Aws::Vector<StringFilter>>
230 SetCloudOrgIds(std::forward<CloudOrgIdsT>(value));
231 return *this;
232 }
233 template <typename CloudOrgIdsT = StringFilter>
235 m_cloudOrgIdsHasBeenSet = true;
236 m_cloudOrgIds.emplace_back(std::forward<CloudOrgIdsT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::Vector<StringFilter>& GetCloudAccountIds() const { return m_cloudAccountIds; }
246 inline bool CloudAccountIdsHasBeenSet() const { return m_cloudAccountIdsHasBeenSet; }
247 template <typename CloudAccountIdsT = Aws::Vector<StringFilter>>
248 void SetCloudAccountIds(CloudAccountIdsT&& value) {
249 m_cloudAccountIdsHasBeenSet = true;
250 m_cloudAccountIds = std::forward<CloudAccountIdsT>(value);
251 }
252 template <typename CloudAccountIdsT = Aws::Vector<StringFilter>>
254 SetCloudAccountIds(std::forward<CloudAccountIdsT>(value));
255 return *this;
256 }
257 template <typename CloudAccountIdsT = StringFilter>
259 m_cloudAccountIdsHasBeenSet = true;
260 m_cloudAccountIds.emplace_back(std::forward<CloudAccountIdsT>(value));
261 return *this;
262 }
264
266
270 inline SortOrder GetSortOrder() const { return m_sortOrder; }
271 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
272 inline void SetSortOrder(SortOrder value) {
273 m_sortOrderHasBeenSet = true;
274 m_sortOrder = value;
275 }
277 SetSortOrder(value);
278 return *this;
279 }
281
283
288 inline ServerlessFunctionSortBy GetSortBy() const { return m_sortBy; }
289 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
291 m_sortByHasBeenSet = true;
292 m_sortBy = value;
293 }
295 SetSortBy(value);
296 return *this;
297 }
299 private:
300 Aws::Vector<StringFilter> m_resourceIds;
301
302 Aws::Vector<StringFilter> m_functionNames;
303
304 Aws::Vector<StringFilter> m_runtimes;
305
306 Aws::Vector<MapFilter> m_functionTags;
307
308 Aws::Vector<StringFilter> m_cloudProviders;
309
310 Aws::Vector<StringFilter> m_cloudPartitions;
311
312 Aws::Vector<StringFilter> m_cloudRegions;
313
314 Aws::Vector<StringFilter> m_cloudOrgIds;
315
316 Aws::Vector<StringFilter> m_cloudAccountIds;
317
318 SortOrder m_sortOrder{SortOrder::NOT_SET};
319
321 bool m_resourceIdsHasBeenSet = false;
322 bool m_functionNamesHasBeenSet = false;
323 bool m_runtimesHasBeenSet = false;
324 bool m_functionTagsHasBeenSet = false;
325 bool m_cloudProvidersHasBeenSet = false;
326 bool m_cloudPartitionsHasBeenSet = false;
327 bool m_cloudRegionsHasBeenSet = false;
328 bool m_cloudOrgIdsHasBeenSet = false;
329 bool m_cloudAccountIdsHasBeenSet = false;
330 bool m_sortOrderHasBeenSet = false;
331 bool m_sortByHasBeenSet = false;
332};
333
334} // namespace Model
335} // namespace Inspector2
336} // namespace Aws
ServerlessFunctionAggregation & AddCloudPartitions(CloudPartitionsT &&value)
ServerlessFunctionAggregation & WithSortBy(ServerlessFunctionSortBy value)
ServerlessFunctionAggregation & WithFunctionTags(FunctionTagsT &&value)
ServerlessFunctionAggregation & AddRuntimes(RuntimesT &&value)
const Aws::Vector< StringFilter > & GetCloudProviders() const
ServerlessFunctionAggregation & WithCloudPartitions(CloudPartitionsT &&value)
ServerlessFunctionAggregation & AddCloudRegions(CloudRegionsT &&value)
const Aws::Vector< StringFilter > & GetFunctionNames() const
ServerlessFunctionAggregation & WithCloudProviders(CloudProvidersT &&value)
ServerlessFunctionAggregation & WithCloudRegions(CloudRegionsT &&value)
ServerlessFunctionAggregation & WithFunctionNames(FunctionNamesT &&value)
ServerlessFunctionAggregation & WithCloudAccountIds(CloudAccountIdsT &&value)
ServerlessFunctionAggregation & AddResourceIds(ResourceIdsT &&value)
ServerlessFunctionAggregation & WithSortOrder(SortOrder value)
AWS_INSPECTOR2_API ServerlessFunctionAggregation()=default
ServerlessFunctionAggregation & AddFunctionNames(FunctionNamesT &&value)
AWS_INSPECTOR2_API ServerlessFunctionAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< StringFilter > & GetResourceIds() const
ServerlessFunctionAggregation & AddCloudProviders(CloudProvidersT &&value)
ServerlessFunctionAggregation & WithRuntimes(RuntimesT &&value)
ServerlessFunctionAggregation & WithCloudOrgIds(CloudOrgIdsT &&value)
ServerlessFunctionAggregation & AddFunctionTags(FunctionTagsT &&value)
const Aws::Vector< StringFilter > & GetCloudPartitions() const
const Aws::Vector< StringFilter > & GetCloudAccountIds() const
const Aws::Vector< StringFilter > & GetCloudRegions() const
ServerlessFunctionAggregation & WithResourceIds(ResourceIdsT &&value)
ServerlessFunctionAggregation & AddCloudAccountIds(CloudAccountIdsT &&value)
AWS_INSPECTOR2_API ServerlessFunctionAggregation(Aws::Utils::Json::JsonView jsonValue)
ServerlessFunctionAggregation & AddCloudOrgIds(CloudOrgIdsT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue