AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
AggregationResponse.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/AccountAggregationResponse.h>
9#include <aws/inspector2/model/AmiAggregationResponse.h>
10#include <aws/inspector2/model/AwsEcrContainerAggregationResponse.h>
11#include <aws/inspector2/model/CodeRepositoryAggregationResponse.h>
12#include <aws/inspector2/model/ContainerImageAggregationResponse.h>
13#include <aws/inspector2/model/Ec2InstanceAggregationResponse.h>
14#include <aws/inspector2/model/FindingTypeAggregationResponse.h>
15#include <aws/inspector2/model/ImageLayerAggregationResponse.h>
16#include <aws/inspector2/model/LambdaFunctionAggregationResponse.h>
17#include <aws/inspector2/model/LambdaLayerAggregationResponse.h>
18#include <aws/inspector2/model/PackageAggregationResponse.h>
19#include <aws/inspector2/model/RepositoryAggregationResponse.h>
20#include <aws/inspector2/model/ServerlessFunctionAggregationResponse.h>
21#include <aws/inspector2/model/TitleAggregationResponse.h>
22#include <aws/inspector2/model/VmInstanceAggregationResponse.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
43 public:
44 AWS_INSPECTOR2_API AggregationResponse() = default;
45 AWS_INSPECTOR2_API AggregationResponse(Aws::Utils::Json::JsonView jsonValue);
47 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
54 inline const AccountAggregationResponse& GetAccountAggregation() const { return m_accountAggregation; }
55 inline bool AccountAggregationHasBeenSet() const { return m_accountAggregationHasBeenSet; }
56 template <typename AccountAggregationT = AccountAggregationResponse>
57 void SetAccountAggregation(AccountAggregationT&& value) {
58 m_accountAggregationHasBeenSet = true;
59 m_accountAggregation = std::forward<AccountAggregationT>(value);
60 }
61 template <typename AccountAggregationT = AccountAggregationResponse>
62 AggregationResponse& WithAccountAggregation(AccountAggregationT&& value) {
63 SetAccountAggregation(std::forward<AccountAggregationT>(value));
64 return *this;
65 }
67
69
73 inline const AmiAggregationResponse& GetAmiAggregation() const { return m_amiAggregation; }
74 inline bool AmiAggregationHasBeenSet() const { return m_amiAggregationHasBeenSet; }
75 template <typename AmiAggregationT = AmiAggregationResponse>
76 void SetAmiAggregation(AmiAggregationT&& value) {
77 m_amiAggregationHasBeenSet = true;
78 m_amiAggregation = std::forward<AmiAggregationT>(value);
79 }
80 template <typename AmiAggregationT = AmiAggregationResponse>
81 AggregationResponse& WithAmiAggregation(AmiAggregationT&& value) {
82 SetAmiAggregation(std::forward<AmiAggregationT>(value));
83 return *this;
84 }
86
88
92 inline const AwsEcrContainerAggregationResponse& GetAwsEcrContainerAggregation() const { return m_awsEcrContainerAggregation; }
93 inline bool AwsEcrContainerAggregationHasBeenSet() const { return m_awsEcrContainerAggregationHasBeenSet; }
94 template <typename AwsEcrContainerAggregationT = AwsEcrContainerAggregationResponse>
95 void SetAwsEcrContainerAggregation(AwsEcrContainerAggregationT&& value) {
96 m_awsEcrContainerAggregationHasBeenSet = true;
97 m_awsEcrContainerAggregation = std::forward<AwsEcrContainerAggregationT>(value);
98 }
99 template <typename AwsEcrContainerAggregationT = AwsEcrContainerAggregationResponse>
100 AggregationResponse& WithAwsEcrContainerAggregation(AwsEcrContainerAggregationT&& value) {
101 SetAwsEcrContainerAggregation(std::forward<AwsEcrContainerAggregationT>(value));
102 return *this;
103 }
105
107
111 inline const Ec2InstanceAggregationResponse& GetEc2InstanceAggregation() const { return m_ec2InstanceAggregation; }
112 inline bool Ec2InstanceAggregationHasBeenSet() const { return m_ec2InstanceAggregationHasBeenSet; }
113 template <typename Ec2InstanceAggregationT = Ec2InstanceAggregationResponse>
114 void SetEc2InstanceAggregation(Ec2InstanceAggregationT&& value) {
115 m_ec2InstanceAggregationHasBeenSet = true;
116 m_ec2InstanceAggregation = std::forward<Ec2InstanceAggregationT>(value);
117 }
118 template <typename Ec2InstanceAggregationT = Ec2InstanceAggregationResponse>
119 AggregationResponse& WithEc2InstanceAggregation(Ec2InstanceAggregationT&& value) {
120 SetEc2InstanceAggregation(std::forward<Ec2InstanceAggregationT>(value));
121 return *this;
122 }
124
126
130 inline const FindingTypeAggregationResponse& GetFindingTypeAggregation() const { return m_findingTypeAggregation; }
131 inline bool FindingTypeAggregationHasBeenSet() const { return m_findingTypeAggregationHasBeenSet; }
132 template <typename FindingTypeAggregationT = FindingTypeAggregationResponse>
133 void SetFindingTypeAggregation(FindingTypeAggregationT&& value) {
134 m_findingTypeAggregationHasBeenSet = true;
135 m_findingTypeAggregation = std::forward<FindingTypeAggregationT>(value);
136 }
137 template <typename FindingTypeAggregationT = FindingTypeAggregationResponse>
138 AggregationResponse& WithFindingTypeAggregation(FindingTypeAggregationT&& value) {
139 SetFindingTypeAggregation(std::forward<FindingTypeAggregationT>(value));
140 return *this;
141 }
143
145
149 inline const ImageLayerAggregationResponse& GetImageLayerAggregation() const { return m_imageLayerAggregation; }
150 inline bool ImageLayerAggregationHasBeenSet() const { return m_imageLayerAggregationHasBeenSet; }
151 template <typename ImageLayerAggregationT = ImageLayerAggregationResponse>
152 void SetImageLayerAggregation(ImageLayerAggregationT&& value) {
153 m_imageLayerAggregationHasBeenSet = true;
154 m_imageLayerAggregation = std::forward<ImageLayerAggregationT>(value);
155 }
156 template <typename ImageLayerAggregationT = ImageLayerAggregationResponse>
157 AggregationResponse& WithImageLayerAggregation(ImageLayerAggregationT&& value) {
158 SetImageLayerAggregation(std::forward<ImageLayerAggregationT>(value));
159 return *this;
160 }
162
164
168 inline const PackageAggregationResponse& GetPackageAggregation() const { return m_packageAggregation; }
169 inline bool PackageAggregationHasBeenSet() const { return m_packageAggregationHasBeenSet; }
170 template <typename PackageAggregationT = PackageAggregationResponse>
171 void SetPackageAggregation(PackageAggregationT&& value) {
172 m_packageAggregationHasBeenSet = true;
173 m_packageAggregation = std::forward<PackageAggregationT>(value);
174 }
175 template <typename PackageAggregationT = PackageAggregationResponse>
176 AggregationResponse& WithPackageAggregation(PackageAggregationT&& value) {
177 SetPackageAggregation(std::forward<PackageAggregationT>(value));
178 return *this;
179 }
181
183
187 inline const RepositoryAggregationResponse& GetRepositoryAggregation() const { return m_repositoryAggregation; }
188 inline bool RepositoryAggregationHasBeenSet() const { return m_repositoryAggregationHasBeenSet; }
189 template <typename RepositoryAggregationT = RepositoryAggregationResponse>
190 void SetRepositoryAggregation(RepositoryAggregationT&& value) {
191 m_repositoryAggregationHasBeenSet = true;
192 m_repositoryAggregation = std::forward<RepositoryAggregationT>(value);
193 }
194 template <typename RepositoryAggregationT = RepositoryAggregationResponse>
195 AggregationResponse& WithRepositoryAggregation(RepositoryAggregationT&& value) {
196 SetRepositoryAggregation(std::forward<RepositoryAggregationT>(value));
197 return *this;
198 }
200
202
206 inline const TitleAggregationResponse& GetTitleAggregation() const { return m_titleAggregation; }
207 inline bool TitleAggregationHasBeenSet() const { return m_titleAggregationHasBeenSet; }
208 template <typename TitleAggregationT = TitleAggregationResponse>
209 void SetTitleAggregation(TitleAggregationT&& value) {
210 m_titleAggregationHasBeenSet = true;
211 m_titleAggregation = std::forward<TitleAggregationT>(value);
212 }
213 template <typename TitleAggregationT = TitleAggregationResponse>
214 AggregationResponse& WithTitleAggregation(TitleAggregationT&& value) {
215 SetTitleAggregation(std::forward<TitleAggregationT>(value));
216 return *this;
217 }
219
221
224 inline const LambdaLayerAggregationResponse& GetLambdaLayerAggregation() const { return m_lambdaLayerAggregation; }
225 inline bool LambdaLayerAggregationHasBeenSet() const { return m_lambdaLayerAggregationHasBeenSet; }
226 template <typename LambdaLayerAggregationT = LambdaLayerAggregationResponse>
227 void SetLambdaLayerAggregation(LambdaLayerAggregationT&& value) {
228 m_lambdaLayerAggregationHasBeenSet = true;
229 m_lambdaLayerAggregation = std::forward<LambdaLayerAggregationT>(value);
230 }
231 template <typename LambdaLayerAggregationT = LambdaLayerAggregationResponse>
232 AggregationResponse& WithLambdaLayerAggregation(LambdaLayerAggregationT&& value) {
233 SetLambdaLayerAggregation(std::forward<LambdaLayerAggregationT>(value));
234 return *this;
235 }
237
239
242 inline const LambdaFunctionAggregationResponse& GetLambdaFunctionAggregation() const { return m_lambdaFunctionAggregation; }
243 inline bool LambdaFunctionAggregationHasBeenSet() const { return m_lambdaFunctionAggregationHasBeenSet; }
244 template <typename LambdaFunctionAggregationT = LambdaFunctionAggregationResponse>
245 void SetLambdaFunctionAggregation(LambdaFunctionAggregationT&& value) {
246 m_lambdaFunctionAggregationHasBeenSet = true;
247 m_lambdaFunctionAggregation = std::forward<LambdaFunctionAggregationT>(value);
248 }
249 template <typename LambdaFunctionAggregationT = LambdaFunctionAggregationResponse>
250 AggregationResponse& WithLambdaFunctionAggregation(LambdaFunctionAggregationT&& value) {
251 SetLambdaFunctionAggregation(std::forward<LambdaFunctionAggregationT>(value));
252 return *this;
253 }
255
257
261 inline const CodeRepositoryAggregationResponse& GetCodeRepositoryAggregation() const { return m_codeRepositoryAggregation; }
262 inline bool CodeRepositoryAggregationHasBeenSet() const { return m_codeRepositoryAggregationHasBeenSet; }
263 template <typename CodeRepositoryAggregationT = CodeRepositoryAggregationResponse>
264 void SetCodeRepositoryAggregation(CodeRepositoryAggregationT&& value) {
265 m_codeRepositoryAggregationHasBeenSet = true;
266 m_codeRepositoryAggregation = std::forward<CodeRepositoryAggregationT>(value);
267 }
268 template <typename CodeRepositoryAggregationT = CodeRepositoryAggregationResponse>
269 AggregationResponse& WithCodeRepositoryAggregation(CodeRepositoryAggregationT&& value) {
270 SetCodeRepositoryAggregation(std::forward<CodeRepositoryAggregationT>(value));
271 return *this;
272 }
274
276
280 inline const VmInstanceAggregationResponse& GetVmInstanceAggregation() const { return m_vmInstanceAggregation; }
281 inline bool VmInstanceAggregationHasBeenSet() const { return m_vmInstanceAggregationHasBeenSet; }
282 template <typename VmInstanceAggregationT = VmInstanceAggregationResponse>
283 void SetVmInstanceAggregation(VmInstanceAggregationT&& value) {
284 m_vmInstanceAggregationHasBeenSet = true;
285 m_vmInstanceAggregation = std::forward<VmInstanceAggregationT>(value);
286 }
287 template <typename VmInstanceAggregationT = VmInstanceAggregationResponse>
288 AggregationResponse& WithVmInstanceAggregation(VmInstanceAggregationT&& value) {
289 SetVmInstanceAggregation(std::forward<VmInstanceAggregationT>(value));
290 return *this;
291 }
293
295
299 inline const ContainerImageAggregationResponse& GetContainerImageAggregation() const { return m_containerImageAggregation; }
300 inline bool ContainerImageAggregationHasBeenSet() const { return m_containerImageAggregationHasBeenSet; }
301 template <typename ContainerImageAggregationT = ContainerImageAggregationResponse>
302 void SetContainerImageAggregation(ContainerImageAggregationT&& value) {
303 m_containerImageAggregationHasBeenSet = true;
304 m_containerImageAggregation = std::forward<ContainerImageAggregationT>(value);
305 }
306 template <typename ContainerImageAggregationT = ContainerImageAggregationResponse>
307 AggregationResponse& WithContainerImageAggregation(ContainerImageAggregationT&& value) {
308 SetContainerImageAggregation(std::forward<ContainerImageAggregationT>(value));
309 return *this;
310 }
312
314
318 inline const ServerlessFunctionAggregationResponse& GetServerlessFunctionAggregation() const { return m_serverlessFunctionAggregation; }
319 inline bool ServerlessFunctionAggregationHasBeenSet() const { return m_serverlessFunctionAggregationHasBeenSet; }
320 template <typename ServerlessFunctionAggregationT = ServerlessFunctionAggregationResponse>
321 void SetServerlessFunctionAggregation(ServerlessFunctionAggregationT&& value) {
322 m_serverlessFunctionAggregationHasBeenSet = true;
323 m_serverlessFunctionAggregation = std::forward<ServerlessFunctionAggregationT>(value);
324 }
325 template <typename ServerlessFunctionAggregationT = ServerlessFunctionAggregationResponse>
326 AggregationResponse& WithServerlessFunctionAggregation(ServerlessFunctionAggregationT&& value) {
327 SetServerlessFunctionAggregation(std::forward<ServerlessFunctionAggregationT>(value));
328 return *this;
329 }
331 private:
332 AccountAggregationResponse m_accountAggregation;
333
334 AmiAggregationResponse m_amiAggregation;
335
336 AwsEcrContainerAggregationResponse m_awsEcrContainerAggregation;
337
338 Ec2InstanceAggregationResponse m_ec2InstanceAggregation;
339
340 FindingTypeAggregationResponse m_findingTypeAggregation;
341
342 ImageLayerAggregationResponse m_imageLayerAggregation;
343
344 PackageAggregationResponse m_packageAggregation;
345
346 RepositoryAggregationResponse m_repositoryAggregation;
347
348 TitleAggregationResponse m_titleAggregation;
349
350 LambdaLayerAggregationResponse m_lambdaLayerAggregation;
351
352 LambdaFunctionAggregationResponse m_lambdaFunctionAggregation;
353
354 CodeRepositoryAggregationResponse m_codeRepositoryAggregation;
355
356 VmInstanceAggregationResponse m_vmInstanceAggregation;
357
358 ContainerImageAggregationResponse m_containerImageAggregation;
359
360 ServerlessFunctionAggregationResponse m_serverlessFunctionAggregation;
361 bool m_accountAggregationHasBeenSet = false;
362 bool m_amiAggregationHasBeenSet = false;
363 bool m_awsEcrContainerAggregationHasBeenSet = false;
364 bool m_ec2InstanceAggregationHasBeenSet = false;
365 bool m_findingTypeAggregationHasBeenSet = false;
366 bool m_imageLayerAggregationHasBeenSet = false;
367 bool m_packageAggregationHasBeenSet = false;
368 bool m_repositoryAggregationHasBeenSet = false;
369 bool m_titleAggregationHasBeenSet = false;
370 bool m_lambdaLayerAggregationHasBeenSet = false;
371 bool m_lambdaFunctionAggregationHasBeenSet = false;
372 bool m_codeRepositoryAggregationHasBeenSet = false;
373 bool m_vmInstanceAggregationHasBeenSet = false;
374 bool m_containerImageAggregationHasBeenSet = false;
375 bool m_serverlessFunctionAggregationHasBeenSet = false;
376};
377
378} // namespace Model
379} // namespace Inspector2
380} // namespace Aws
void SetTitleAggregation(TitleAggregationT &&value)
AggregationResponse & WithAmiAggregation(AmiAggregationT &&value)
AggregationResponse & WithAccountAggregation(AccountAggregationT &&value)
void SetImageLayerAggregation(ImageLayerAggregationT &&value)
void SetPackageAggregation(PackageAggregationT &&value)
void SetLambdaFunctionAggregation(LambdaFunctionAggregationT &&value)
const Ec2InstanceAggregationResponse & GetEc2InstanceAggregation() const
AggregationResponse & WithVmInstanceAggregation(VmInstanceAggregationT &&value)
void SetAwsEcrContainerAggregation(AwsEcrContainerAggregationT &&value)
const AccountAggregationResponse & GetAccountAggregation() const
void SetEc2InstanceAggregation(Ec2InstanceAggregationT &&value)
AWS_INSPECTOR2_API AggregationResponse(Aws::Utils::Json::JsonView jsonValue)
void SetLambdaLayerAggregation(LambdaLayerAggregationT &&value)
AWS_INSPECTOR2_API AggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregationResponse & WithImageLayerAggregation(ImageLayerAggregationT &&value)
const CodeRepositoryAggregationResponse & GetCodeRepositoryAggregation() const
const AmiAggregationResponse & GetAmiAggregation() const
AggregationResponse & WithLambdaLayerAggregation(LambdaLayerAggregationT &&value)
void SetServerlessFunctionAggregation(ServerlessFunctionAggregationT &&value)
void SetRepositoryAggregation(RepositoryAggregationT &&value)
void SetVmInstanceAggregation(VmInstanceAggregationT &&value)
const PackageAggregationResponse & GetPackageAggregation() const
AggregationResponse & WithFindingTypeAggregation(FindingTypeAggregationT &&value)
AggregationResponse & WithPackageAggregation(PackageAggregationT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API AggregationResponse()=default
void SetAmiAggregation(AmiAggregationT &&value)
AggregationResponse & WithAwsEcrContainerAggregation(AwsEcrContainerAggregationT &&value)
const FindingTypeAggregationResponse & GetFindingTypeAggregation() const
const VmInstanceAggregationResponse & GetVmInstanceAggregation() const
void SetCodeRepositoryAggregation(CodeRepositoryAggregationT &&value)
AggregationResponse & WithRepositoryAggregation(RepositoryAggregationT &&value)
AggregationResponse & WithEc2InstanceAggregation(Ec2InstanceAggregationT &&value)
void SetAccountAggregation(AccountAggregationT &&value)
const LambdaFunctionAggregationResponse & GetLambdaFunctionAggregation() const
const AwsEcrContainerAggregationResponse & GetAwsEcrContainerAggregation() const
AggregationResponse & WithServerlessFunctionAggregation(ServerlessFunctionAggregationT &&value)
const RepositoryAggregationResponse & GetRepositoryAggregation() const
void SetContainerImageAggregation(ContainerImageAggregationT &&value)
void SetFindingTypeAggregation(FindingTypeAggregationT &&value)
AggregationResponse & WithCodeRepositoryAggregation(CodeRepositoryAggregationT &&value)
AggregationResponse & WithTitleAggregation(TitleAggregationT &&value)
const ServerlessFunctionAggregationResponse & GetServerlessFunctionAggregation() const
const LambdaLayerAggregationResponse & GetLambdaLayerAggregation() const
const ContainerImageAggregationResponse & GetContainerImageAggregation() const
AggregationResponse & WithLambdaFunctionAggregation(LambdaFunctionAggregationT &&value)
const ImageLayerAggregationResponse & GetImageLayerAggregation() const
const TitleAggregationResponse & GetTitleAggregation() const
AggregationResponse & WithContainerImageAggregation(ContainerImageAggregationT &&value)
Aws::Utils::Json::JsonValue JsonValue