AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
AggregationRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/AccountAggregation.h>
9#include <aws/inspector2/model/AmiAggregation.h>
10#include <aws/inspector2/model/AwsEcrContainerAggregation.h>
11#include <aws/inspector2/model/CodeRepositoryAggregation.h>
12#include <aws/inspector2/model/ContainerImageAggregation.h>
13#include <aws/inspector2/model/Ec2InstanceAggregation.h>
14#include <aws/inspector2/model/FindingTypeAggregation.h>
15#include <aws/inspector2/model/ImageLayerAggregation.h>
16#include <aws/inspector2/model/LambdaFunctionAggregation.h>
17#include <aws/inspector2/model/LambdaLayerAggregation.h>
18#include <aws/inspector2/model/PackageAggregation.h>
19#include <aws/inspector2/model/RepositoryAggregation.h>
20#include <aws/inspector2/model/ServerlessFunctionAggregation.h>
21#include <aws/inspector2/model/TitleAggregation.h>
22#include <aws/inspector2/model/VmInstanceAggregation.h>
23
24#include <utility>
25
26namespace Aws {
27namespace Utils {
28namespace Json {
29class JsonValue;
30class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace Inspector2 {
34namespace Model {
35
42 public:
43 AWS_INSPECTOR2_API AggregationRequest() = default;
44 AWS_INSPECTOR2_API AggregationRequest(Aws::Utils::Json::JsonView jsonValue);
46 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
47
49
53 inline const AccountAggregation& GetAccountAggregation() const { return m_accountAggregation; }
54 inline bool AccountAggregationHasBeenSet() const { return m_accountAggregationHasBeenSet; }
55 template <typename AccountAggregationT = AccountAggregation>
56 void SetAccountAggregation(AccountAggregationT&& value) {
57 m_accountAggregationHasBeenSet = true;
58 m_accountAggregation = std::forward<AccountAggregationT>(value);
59 }
60 template <typename AccountAggregationT = AccountAggregation>
61 AggregationRequest& WithAccountAggregation(AccountAggregationT&& value) {
62 SetAccountAggregation(std::forward<AccountAggregationT>(value));
63 return *this;
64 }
66
68
72 inline const AmiAggregation& GetAmiAggregation() const { return m_amiAggregation; }
73 inline bool AmiAggregationHasBeenSet() const { return m_amiAggregationHasBeenSet; }
74 template <typename AmiAggregationT = AmiAggregation>
75 void SetAmiAggregation(AmiAggregationT&& value) {
76 m_amiAggregationHasBeenSet = true;
77 m_amiAggregation = std::forward<AmiAggregationT>(value);
78 }
79 template <typename AmiAggregationT = AmiAggregation>
80 AggregationRequest& WithAmiAggregation(AmiAggregationT&& value) {
81 SetAmiAggregation(std::forward<AmiAggregationT>(value));
82 return *this;
83 }
85
87
91 inline const AwsEcrContainerAggregation& GetAwsEcrContainerAggregation() const { return m_awsEcrContainerAggregation; }
92 inline bool AwsEcrContainerAggregationHasBeenSet() const { return m_awsEcrContainerAggregationHasBeenSet; }
93 template <typename AwsEcrContainerAggregationT = AwsEcrContainerAggregation>
94 void SetAwsEcrContainerAggregation(AwsEcrContainerAggregationT&& value) {
95 m_awsEcrContainerAggregationHasBeenSet = true;
96 m_awsEcrContainerAggregation = std::forward<AwsEcrContainerAggregationT>(value);
97 }
98 template <typename AwsEcrContainerAggregationT = AwsEcrContainerAggregation>
99 AggregationRequest& WithAwsEcrContainerAggregation(AwsEcrContainerAggregationT&& value) {
100 SetAwsEcrContainerAggregation(std::forward<AwsEcrContainerAggregationT>(value));
101 return *this;
102 }
104
106
110 inline const Ec2InstanceAggregation& GetEc2InstanceAggregation() const { return m_ec2InstanceAggregation; }
111 inline bool Ec2InstanceAggregationHasBeenSet() const { return m_ec2InstanceAggregationHasBeenSet; }
112 template <typename Ec2InstanceAggregationT = Ec2InstanceAggregation>
113 void SetEc2InstanceAggregation(Ec2InstanceAggregationT&& value) {
114 m_ec2InstanceAggregationHasBeenSet = true;
115 m_ec2InstanceAggregation = std::forward<Ec2InstanceAggregationT>(value);
116 }
117 template <typename Ec2InstanceAggregationT = Ec2InstanceAggregation>
118 AggregationRequest& WithEc2InstanceAggregation(Ec2InstanceAggregationT&& value) {
119 SetEc2InstanceAggregation(std::forward<Ec2InstanceAggregationT>(value));
120 return *this;
121 }
123
125
129 inline const FindingTypeAggregation& GetFindingTypeAggregation() const { return m_findingTypeAggregation; }
130 inline bool FindingTypeAggregationHasBeenSet() const { return m_findingTypeAggregationHasBeenSet; }
131 template <typename FindingTypeAggregationT = FindingTypeAggregation>
132 void SetFindingTypeAggregation(FindingTypeAggregationT&& value) {
133 m_findingTypeAggregationHasBeenSet = true;
134 m_findingTypeAggregation = std::forward<FindingTypeAggregationT>(value);
135 }
136 template <typename FindingTypeAggregationT = FindingTypeAggregation>
137 AggregationRequest& WithFindingTypeAggregation(FindingTypeAggregationT&& value) {
138 SetFindingTypeAggregation(std::forward<FindingTypeAggregationT>(value));
139 return *this;
140 }
142
144
148 inline const ImageLayerAggregation& GetImageLayerAggregation() const { return m_imageLayerAggregation; }
149 inline bool ImageLayerAggregationHasBeenSet() const { return m_imageLayerAggregationHasBeenSet; }
150 template <typename ImageLayerAggregationT = ImageLayerAggregation>
151 void SetImageLayerAggregation(ImageLayerAggregationT&& value) {
152 m_imageLayerAggregationHasBeenSet = true;
153 m_imageLayerAggregation = std::forward<ImageLayerAggregationT>(value);
154 }
155 template <typename ImageLayerAggregationT = ImageLayerAggregation>
156 AggregationRequest& WithImageLayerAggregation(ImageLayerAggregationT&& value) {
157 SetImageLayerAggregation(std::forward<ImageLayerAggregationT>(value));
158 return *this;
159 }
161
163
167 inline const PackageAggregation& GetPackageAggregation() const { return m_packageAggregation; }
168 inline bool PackageAggregationHasBeenSet() const { return m_packageAggregationHasBeenSet; }
169 template <typename PackageAggregationT = PackageAggregation>
170 void SetPackageAggregation(PackageAggregationT&& value) {
171 m_packageAggregationHasBeenSet = true;
172 m_packageAggregation = std::forward<PackageAggregationT>(value);
173 }
174 template <typename PackageAggregationT = PackageAggregation>
175 AggregationRequest& WithPackageAggregation(PackageAggregationT&& value) {
176 SetPackageAggregation(std::forward<PackageAggregationT>(value));
177 return *this;
178 }
180
182
186 inline const RepositoryAggregation& GetRepositoryAggregation() const { return m_repositoryAggregation; }
187 inline bool RepositoryAggregationHasBeenSet() const { return m_repositoryAggregationHasBeenSet; }
188 template <typename RepositoryAggregationT = RepositoryAggregation>
189 void SetRepositoryAggregation(RepositoryAggregationT&& value) {
190 m_repositoryAggregationHasBeenSet = true;
191 m_repositoryAggregation = std::forward<RepositoryAggregationT>(value);
192 }
193 template <typename RepositoryAggregationT = RepositoryAggregation>
194 AggregationRequest& WithRepositoryAggregation(RepositoryAggregationT&& value) {
195 SetRepositoryAggregation(std::forward<RepositoryAggregationT>(value));
196 return *this;
197 }
199
201
205 inline const TitleAggregation& GetTitleAggregation() const { return m_titleAggregation; }
206 inline bool TitleAggregationHasBeenSet() const { return m_titleAggregationHasBeenSet; }
207 template <typename TitleAggregationT = TitleAggregation>
208 void SetTitleAggregation(TitleAggregationT&& value) {
209 m_titleAggregationHasBeenSet = true;
210 m_titleAggregation = std::forward<TitleAggregationT>(value);
211 }
212 template <typename TitleAggregationT = TitleAggregation>
213 AggregationRequest& WithTitleAggregation(TitleAggregationT&& value) {
214 SetTitleAggregation(std::forward<TitleAggregationT>(value));
215 return *this;
216 }
218
220
224 inline const LambdaLayerAggregation& GetLambdaLayerAggregation() const { return m_lambdaLayerAggregation; }
225 inline bool LambdaLayerAggregationHasBeenSet() const { return m_lambdaLayerAggregationHasBeenSet; }
226 template <typename LambdaLayerAggregationT = LambdaLayerAggregation>
227 void SetLambdaLayerAggregation(LambdaLayerAggregationT&& value) {
228 m_lambdaLayerAggregationHasBeenSet = true;
229 m_lambdaLayerAggregation = std::forward<LambdaLayerAggregationT>(value);
230 }
231 template <typename LambdaLayerAggregationT = LambdaLayerAggregation>
232 AggregationRequest& WithLambdaLayerAggregation(LambdaLayerAggregationT&& value) {
233 SetLambdaLayerAggregation(std::forward<LambdaLayerAggregationT>(value));
234 return *this;
235 }
237
239
243 inline const LambdaFunctionAggregation& GetLambdaFunctionAggregation() const { return m_lambdaFunctionAggregation; }
244 inline bool LambdaFunctionAggregationHasBeenSet() const { return m_lambdaFunctionAggregationHasBeenSet; }
245 template <typename LambdaFunctionAggregationT = LambdaFunctionAggregation>
246 void SetLambdaFunctionAggregation(LambdaFunctionAggregationT&& value) {
247 m_lambdaFunctionAggregationHasBeenSet = true;
248 m_lambdaFunctionAggregation = std::forward<LambdaFunctionAggregationT>(value);
249 }
250 template <typename LambdaFunctionAggregationT = LambdaFunctionAggregation>
251 AggregationRequest& WithLambdaFunctionAggregation(LambdaFunctionAggregationT&& value) {
252 SetLambdaFunctionAggregation(std::forward<LambdaFunctionAggregationT>(value));
253 return *this;
254 }
256
258
262 inline const CodeRepositoryAggregation& GetCodeRepositoryAggregation() const { return m_codeRepositoryAggregation; }
263 inline bool CodeRepositoryAggregationHasBeenSet() const { return m_codeRepositoryAggregationHasBeenSet; }
264 template <typename CodeRepositoryAggregationT = CodeRepositoryAggregation>
265 void SetCodeRepositoryAggregation(CodeRepositoryAggregationT&& value) {
266 m_codeRepositoryAggregationHasBeenSet = true;
267 m_codeRepositoryAggregation = std::forward<CodeRepositoryAggregationT>(value);
268 }
269 template <typename CodeRepositoryAggregationT = CodeRepositoryAggregation>
270 AggregationRequest& WithCodeRepositoryAggregation(CodeRepositoryAggregationT&& value) {
271 SetCodeRepositoryAggregation(std::forward<CodeRepositoryAggregationT>(value));
272 return *this;
273 }
275
277
281 inline const VmInstanceAggregation& GetVmInstanceAggregation() const { return m_vmInstanceAggregation; }
282 inline bool VmInstanceAggregationHasBeenSet() const { return m_vmInstanceAggregationHasBeenSet; }
283 template <typename VmInstanceAggregationT = VmInstanceAggregation>
284 void SetVmInstanceAggregation(VmInstanceAggregationT&& value) {
285 m_vmInstanceAggregationHasBeenSet = true;
286 m_vmInstanceAggregation = std::forward<VmInstanceAggregationT>(value);
287 }
288 template <typename VmInstanceAggregationT = VmInstanceAggregation>
289 AggregationRequest& WithVmInstanceAggregation(VmInstanceAggregationT&& value) {
290 SetVmInstanceAggregation(std::forward<VmInstanceAggregationT>(value));
291 return *this;
292 }
294
296
300 inline const ContainerImageAggregation& GetContainerImageAggregation() const { return m_containerImageAggregation; }
301 inline bool ContainerImageAggregationHasBeenSet() const { return m_containerImageAggregationHasBeenSet; }
302 template <typename ContainerImageAggregationT = ContainerImageAggregation>
303 void SetContainerImageAggregation(ContainerImageAggregationT&& value) {
304 m_containerImageAggregationHasBeenSet = true;
305 m_containerImageAggregation = std::forward<ContainerImageAggregationT>(value);
306 }
307 template <typename ContainerImageAggregationT = ContainerImageAggregation>
308 AggregationRequest& WithContainerImageAggregation(ContainerImageAggregationT&& value) {
309 SetContainerImageAggregation(std::forward<ContainerImageAggregationT>(value));
310 return *this;
311 }
313
315
319 inline const ServerlessFunctionAggregation& GetServerlessFunctionAggregation() const { return m_serverlessFunctionAggregation; }
320 inline bool ServerlessFunctionAggregationHasBeenSet() const { return m_serverlessFunctionAggregationHasBeenSet; }
321 template <typename ServerlessFunctionAggregationT = ServerlessFunctionAggregation>
322 void SetServerlessFunctionAggregation(ServerlessFunctionAggregationT&& value) {
323 m_serverlessFunctionAggregationHasBeenSet = true;
324 m_serverlessFunctionAggregation = std::forward<ServerlessFunctionAggregationT>(value);
325 }
326 template <typename ServerlessFunctionAggregationT = ServerlessFunctionAggregation>
327 AggregationRequest& WithServerlessFunctionAggregation(ServerlessFunctionAggregationT&& value) {
328 SetServerlessFunctionAggregation(std::forward<ServerlessFunctionAggregationT>(value));
329 return *this;
330 }
332 private:
333 AccountAggregation m_accountAggregation;
334
335 AmiAggregation m_amiAggregation;
336
337 AwsEcrContainerAggregation m_awsEcrContainerAggregation;
338
339 Ec2InstanceAggregation m_ec2InstanceAggregation;
340
341 FindingTypeAggregation m_findingTypeAggregation;
342
343 ImageLayerAggregation m_imageLayerAggregation;
344
345 PackageAggregation m_packageAggregation;
346
347 RepositoryAggregation m_repositoryAggregation;
348
349 TitleAggregation m_titleAggregation;
350
351 LambdaLayerAggregation m_lambdaLayerAggregation;
352
353 LambdaFunctionAggregation m_lambdaFunctionAggregation;
354
355 CodeRepositoryAggregation m_codeRepositoryAggregation;
356
357 VmInstanceAggregation m_vmInstanceAggregation;
358
359 ContainerImageAggregation m_containerImageAggregation;
360
361 ServerlessFunctionAggregation m_serverlessFunctionAggregation;
362 bool m_accountAggregationHasBeenSet = false;
363 bool m_amiAggregationHasBeenSet = false;
364 bool m_awsEcrContainerAggregationHasBeenSet = false;
365 bool m_ec2InstanceAggregationHasBeenSet = false;
366 bool m_findingTypeAggregationHasBeenSet = false;
367 bool m_imageLayerAggregationHasBeenSet = false;
368 bool m_packageAggregationHasBeenSet = false;
369 bool m_repositoryAggregationHasBeenSet = false;
370 bool m_titleAggregationHasBeenSet = false;
371 bool m_lambdaLayerAggregationHasBeenSet = false;
372 bool m_lambdaFunctionAggregationHasBeenSet = false;
373 bool m_codeRepositoryAggregationHasBeenSet = false;
374 bool m_vmInstanceAggregationHasBeenSet = false;
375 bool m_containerImageAggregationHasBeenSet = false;
376 bool m_serverlessFunctionAggregationHasBeenSet = false;
377};
378
379} // namespace Model
380} // namespace Inspector2
381} // namespace Aws
void SetAccountAggregation(AccountAggregationT &&value)
void SetContainerImageAggregation(ContainerImageAggregationT &&value)
void SetRepositoryAggregation(RepositoryAggregationT &&value)
AggregationRequest & WithVmInstanceAggregation(VmInstanceAggregationT &&value)
void SetAwsEcrContainerAggregation(AwsEcrContainerAggregationT &&value)
const LambdaLayerAggregation & GetLambdaLayerAggregation() const
void SetFindingTypeAggregation(FindingTypeAggregationT &&value)
const AccountAggregation & GetAccountAggregation() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AggregationRequest & WithAmiAggregation(AmiAggregationT &&value)
void SetEc2InstanceAggregation(Ec2InstanceAggregationT &&value)
AWS_INSPECTOR2_API AggregationRequest()=default
const ImageLayerAggregation & GetImageLayerAggregation() const
const ServerlessFunctionAggregation & GetServerlessFunctionAggregation() const
AggregationRequest & WithCodeRepositoryAggregation(CodeRepositoryAggregationT &&value)
void SetAmiAggregation(AmiAggregationT &&value)
const CodeRepositoryAggregation & GetCodeRepositoryAggregation() const
void SetTitleAggregation(TitleAggregationT &&value)
void SetVmInstanceAggregation(VmInstanceAggregationT &&value)
const ContainerImageAggregation & GetContainerImageAggregation() const
AggregationRequest & WithLambdaLayerAggregation(LambdaLayerAggregationT &&value)
AggregationRequest & WithTitleAggregation(TitleAggregationT &&value)
AggregationRequest & WithLambdaFunctionAggregation(LambdaFunctionAggregationT &&value)
void SetServerlessFunctionAggregation(ServerlessFunctionAggregationT &&value)
AggregationRequest & WithPackageAggregation(PackageAggregationT &&value)
AggregationRequest & WithFindingTypeAggregation(FindingTypeAggregationT &&value)
AggregationRequest & WithRepositoryAggregation(RepositoryAggregationT &&value)
void SetLambdaLayerAggregation(LambdaLayerAggregationT &&value)
AggregationRequest & WithImageLayerAggregation(ImageLayerAggregationT &&value)
void SetCodeRepositoryAggregation(CodeRepositoryAggregationT &&value)
AggregationRequest & WithContainerImageAggregation(ContainerImageAggregationT &&value)
const FindingTypeAggregation & GetFindingTypeAggregation() const
const RepositoryAggregation & GetRepositoryAggregation() const
AggregationRequest & WithEc2InstanceAggregation(Ec2InstanceAggregationT &&value)
const AwsEcrContainerAggregation & GetAwsEcrContainerAggregation() const
const AmiAggregation & GetAmiAggregation() const
const PackageAggregation & GetPackageAggregation() const
const Ec2InstanceAggregation & GetEc2InstanceAggregation() const
AWS_INSPECTOR2_API AggregationRequest(Aws::Utils::Json::JsonView jsonValue)
const LambdaFunctionAggregation & GetLambdaFunctionAggregation() const
const TitleAggregation & GetTitleAggregation() const
AggregationRequest & WithAccountAggregation(AccountAggregationT &&value)
AWS_INSPECTOR2_API AggregationRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPackageAggregation(PackageAggregationT &&value)
void SetLambdaFunctionAggregation(LambdaFunctionAggregationT &&value)
void SetImageLayerAggregation(ImageLayerAggregationT &&value)
const VmInstanceAggregation & GetVmInstanceAggregation() const
AggregationRequest & WithAwsEcrContainerAggregation(AwsEcrContainerAggregationT &&value)
AggregationRequest & WithServerlessFunctionAggregation(ServerlessFunctionAggregationT &&value)
Aws::Utils::Json::JsonValue JsonValue