AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/Ec2InstanceAggregationResponse.h>
13#include <aws/inspector2/model/FindingTypeAggregationResponse.h>
14#include <aws/inspector2/model/ImageLayerAggregationResponse.h>
15#include <aws/inspector2/model/LambdaFunctionAggregationResponse.h>
16#include <aws/inspector2/model/LambdaLayerAggregationResponse.h>
17#include <aws/inspector2/model/PackageAggregationResponse.h>
18#include <aws/inspector2/model/RepositoryAggregationResponse.h>
19#include <aws/inspector2/model/TitleAggregationResponse.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Inspector2 {
31namespace Model {
32
40 public:
41 AWS_INSPECTOR2_API AggregationResponse() = default;
42 AWS_INSPECTOR2_API AggregationResponse(Aws::Utils::Json::JsonView jsonValue);
44 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
51 inline const AccountAggregationResponse& GetAccountAggregation() const { return m_accountAggregation; }
52 inline bool AccountAggregationHasBeenSet() const { return m_accountAggregationHasBeenSet; }
53 template <typename AccountAggregationT = AccountAggregationResponse>
54 void SetAccountAggregation(AccountAggregationT&& value) {
55 m_accountAggregationHasBeenSet = true;
56 m_accountAggregation = std::forward<AccountAggregationT>(value);
57 }
58 template <typename AccountAggregationT = AccountAggregationResponse>
59 AggregationResponse& WithAccountAggregation(AccountAggregationT&& value) {
60 SetAccountAggregation(std::forward<AccountAggregationT>(value));
61 return *this;
62 }
64
66
70 inline const AmiAggregationResponse& GetAmiAggregation() const { return m_amiAggregation; }
71 inline bool AmiAggregationHasBeenSet() const { return m_amiAggregationHasBeenSet; }
72 template <typename AmiAggregationT = AmiAggregationResponse>
73 void SetAmiAggregation(AmiAggregationT&& value) {
74 m_amiAggregationHasBeenSet = true;
75 m_amiAggregation = std::forward<AmiAggregationT>(value);
76 }
77 template <typename AmiAggregationT = AmiAggregationResponse>
78 AggregationResponse& WithAmiAggregation(AmiAggregationT&& value) {
79 SetAmiAggregation(std::forward<AmiAggregationT>(value));
80 return *this;
81 }
83
85
89 inline const AwsEcrContainerAggregationResponse& GetAwsEcrContainerAggregation() const { return m_awsEcrContainerAggregation; }
90 inline bool AwsEcrContainerAggregationHasBeenSet() const { return m_awsEcrContainerAggregationHasBeenSet; }
91 template <typename AwsEcrContainerAggregationT = AwsEcrContainerAggregationResponse>
92 void SetAwsEcrContainerAggregation(AwsEcrContainerAggregationT&& value) {
93 m_awsEcrContainerAggregationHasBeenSet = true;
94 m_awsEcrContainerAggregation = std::forward<AwsEcrContainerAggregationT>(value);
95 }
96 template <typename AwsEcrContainerAggregationT = AwsEcrContainerAggregationResponse>
97 AggregationResponse& WithAwsEcrContainerAggregation(AwsEcrContainerAggregationT&& value) {
98 SetAwsEcrContainerAggregation(std::forward<AwsEcrContainerAggregationT>(value));
99 return *this;
100 }
102
104
108 inline const Ec2InstanceAggregationResponse& GetEc2InstanceAggregation() const { return m_ec2InstanceAggregation; }
109 inline bool Ec2InstanceAggregationHasBeenSet() const { return m_ec2InstanceAggregationHasBeenSet; }
110 template <typename Ec2InstanceAggregationT = Ec2InstanceAggregationResponse>
111 void SetEc2InstanceAggregation(Ec2InstanceAggregationT&& value) {
112 m_ec2InstanceAggregationHasBeenSet = true;
113 m_ec2InstanceAggregation = std::forward<Ec2InstanceAggregationT>(value);
114 }
115 template <typename Ec2InstanceAggregationT = Ec2InstanceAggregationResponse>
116 AggregationResponse& WithEc2InstanceAggregation(Ec2InstanceAggregationT&& value) {
117 SetEc2InstanceAggregation(std::forward<Ec2InstanceAggregationT>(value));
118 return *this;
119 }
121
123
127 inline const FindingTypeAggregationResponse& GetFindingTypeAggregation() const { return m_findingTypeAggregation; }
128 inline bool FindingTypeAggregationHasBeenSet() const { return m_findingTypeAggregationHasBeenSet; }
129 template <typename FindingTypeAggregationT = FindingTypeAggregationResponse>
130 void SetFindingTypeAggregation(FindingTypeAggregationT&& value) {
131 m_findingTypeAggregationHasBeenSet = true;
132 m_findingTypeAggregation = std::forward<FindingTypeAggregationT>(value);
133 }
134 template <typename FindingTypeAggregationT = FindingTypeAggregationResponse>
135 AggregationResponse& WithFindingTypeAggregation(FindingTypeAggregationT&& value) {
136 SetFindingTypeAggregation(std::forward<FindingTypeAggregationT>(value));
137 return *this;
138 }
140
142
146 inline const ImageLayerAggregationResponse& GetImageLayerAggregation() const { return m_imageLayerAggregation; }
147 inline bool ImageLayerAggregationHasBeenSet() const { return m_imageLayerAggregationHasBeenSet; }
148 template <typename ImageLayerAggregationT = ImageLayerAggregationResponse>
149 void SetImageLayerAggregation(ImageLayerAggregationT&& value) {
150 m_imageLayerAggregationHasBeenSet = true;
151 m_imageLayerAggregation = std::forward<ImageLayerAggregationT>(value);
152 }
153 template <typename ImageLayerAggregationT = ImageLayerAggregationResponse>
154 AggregationResponse& WithImageLayerAggregation(ImageLayerAggregationT&& value) {
155 SetImageLayerAggregation(std::forward<ImageLayerAggregationT>(value));
156 return *this;
157 }
159
161
165 inline const PackageAggregationResponse& GetPackageAggregation() const { return m_packageAggregation; }
166 inline bool PackageAggregationHasBeenSet() const { return m_packageAggregationHasBeenSet; }
167 template <typename PackageAggregationT = PackageAggregationResponse>
168 void SetPackageAggregation(PackageAggregationT&& value) {
169 m_packageAggregationHasBeenSet = true;
170 m_packageAggregation = std::forward<PackageAggregationT>(value);
171 }
172 template <typename PackageAggregationT = PackageAggregationResponse>
173 AggregationResponse& WithPackageAggregation(PackageAggregationT&& value) {
174 SetPackageAggregation(std::forward<PackageAggregationT>(value));
175 return *this;
176 }
178
180
184 inline const RepositoryAggregationResponse& GetRepositoryAggregation() const { return m_repositoryAggregation; }
185 inline bool RepositoryAggregationHasBeenSet() const { return m_repositoryAggregationHasBeenSet; }
186 template <typename RepositoryAggregationT = RepositoryAggregationResponse>
187 void SetRepositoryAggregation(RepositoryAggregationT&& value) {
188 m_repositoryAggregationHasBeenSet = true;
189 m_repositoryAggregation = std::forward<RepositoryAggregationT>(value);
190 }
191 template <typename RepositoryAggregationT = RepositoryAggregationResponse>
192 AggregationResponse& WithRepositoryAggregation(RepositoryAggregationT&& value) {
193 SetRepositoryAggregation(std::forward<RepositoryAggregationT>(value));
194 return *this;
195 }
197
199
203 inline const TitleAggregationResponse& GetTitleAggregation() const { return m_titleAggregation; }
204 inline bool TitleAggregationHasBeenSet() const { return m_titleAggregationHasBeenSet; }
205 template <typename TitleAggregationT = TitleAggregationResponse>
206 void SetTitleAggregation(TitleAggregationT&& value) {
207 m_titleAggregationHasBeenSet = true;
208 m_titleAggregation = std::forward<TitleAggregationT>(value);
209 }
210 template <typename TitleAggregationT = TitleAggregationResponse>
211 AggregationResponse& WithTitleAggregation(TitleAggregationT&& value) {
212 SetTitleAggregation(std::forward<TitleAggregationT>(value));
213 return *this;
214 }
216
218
221 inline const LambdaLayerAggregationResponse& GetLambdaLayerAggregation() const { return m_lambdaLayerAggregation; }
222 inline bool LambdaLayerAggregationHasBeenSet() const { return m_lambdaLayerAggregationHasBeenSet; }
223 template <typename LambdaLayerAggregationT = LambdaLayerAggregationResponse>
224 void SetLambdaLayerAggregation(LambdaLayerAggregationT&& value) {
225 m_lambdaLayerAggregationHasBeenSet = true;
226 m_lambdaLayerAggregation = std::forward<LambdaLayerAggregationT>(value);
227 }
228 template <typename LambdaLayerAggregationT = LambdaLayerAggregationResponse>
229 AggregationResponse& WithLambdaLayerAggregation(LambdaLayerAggregationT&& value) {
230 SetLambdaLayerAggregation(std::forward<LambdaLayerAggregationT>(value));
231 return *this;
232 }
234
236
239 inline const LambdaFunctionAggregationResponse& GetLambdaFunctionAggregation() const { return m_lambdaFunctionAggregation; }
240 inline bool LambdaFunctionAggregationHasBeenSet() const { return m_lambdaFunctionAggregationHasBeenSet; }
241 template <typename LambdaFunctionAggregationT = LambdaFunctionAggregationResponse>
242 void SetLambdaFunctionAggregation(LambdaFunctionAggregationT&& value) {
243 m_lambdaFunctionAggregationHasBeenSet = true;
244 m_lambdaFunctionAggregation = std::forward<LambdaFunctionAggregationT>(value);
245 }
246 template <typename LambdaFunctionAggregationT = LambdaFunctionAggregationResponse>
247 AggregationResponse& WithLambdaFunctionAggregation(LambdaFunctionAggregationT&& value) {
248 SetLambdaFunctionAggregation(std::forward<LambdaFunctionAggregationT>(value));
249 return *this;
250 }
252
254
258 inline const CodeRepositoryAggregationResponse& GetCodeRepositoryAggregation() const { return m_codeRepositoryAggregation; }
259 inline bool CodeRepositoryAggregationHasBeenSet() const { return m_codeRepositoryAggregationHasBeenSet; }
260 template <typename CodeRepositoryAggregationT = CodeRepositoryAggregationResponse>
261 void SetCodeRepositoryAggregation(CodeRepositoryAggregationT&& value) {
262 m_codeRepositoryAggregationHasBeenSet = true;
263 m_codeRepositoryAggregation = std::forward<CodeRepositoryAggregationT>(value);
264 }
265 template <typename CodeRepositoryAggregationT = CodeRepositoryAggregationResponse>
266 AggregationResponse& WithCodeRepositoryAggregation(CodeRepositoryAggregationT&& value) {
267 SetCodeRepositoryAggregation(std::forward<CodeRepositoryAggregationT>(value));
268 return *this;
269 }
271 private:
272 AccountAggregationResponse m_accountAggregation;
273
274 AmiAggregationResponse m_amiAggregation;
275
276 AwsEcrContainerAggregationResponse m_awsEcrContainerAggregation;
277
278 Ec2InstanceAggregationResponse m_ec2InstanceAggregation;
279
280 FindingTypeAggregationResponse m_findingTypeAggregation;
281
282 ImageLayerAggregationResponse m_imageLayerAggregation;
283
284 PackageAggregationResponse m_packageAggregation;
285
286 RepositoryAggregationResponse m_repositoryAggregation;
287
288 TitleAggregationResponse m_titleAggregation;
289
290 LambdaLayerAggregationResponse m_lambdaLayerAggregation;
291
292 LambdaFunctionAggregationResponse m_lambdaFunctionAggregation;
293
294 CodeRepositoryAggregationResponse m_codeRepositoryAggregation;
295 bool m_accountAggregationHasBeenSet = false;
296 bool m_amiAggregationHasBeenSet = false;
297 bool m_awsEcrContainerAggregationHasBeenSet = false;
298 bool m_ec2InstanceAggregationHasBeenSet = false;
299 bool m_findingTypeAggregationHasBeenSet = false;
300 bool m_imageLayerAggregationHasBeenSet = false;
301 bool m_packageAggregationHasBeenSet = false;
302 bool m_repositoryAggregationHasBeenSet = false;
303 bool m_titleAggregationHasBeenSet = false;
304 bool m_lambdaLayerAggregationHasBeenSet = false;
305 bool m_lambdaFunctionAggregationHasBeenSet = false;
306 bool m_codeRepositoryAggregationHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace Inspector2
311} // 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
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 SetRepositoryAggregation(RepositoryAggregationT &&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
void SetCodeRepositoryAggregation(CodeRepositoryAggregationT &&value)
AggregationResponse & WithRepositoryAggregation(RepositoryAggregationT &&value)
AggregationResponse & WithEc2InstanceAggregation(Ec2InstanceAggregationT &&value)
void SetAccountAggregation(AccountAggregationT &&value)
const LambdaFunctionAggregationResponse & GetLambdaFunctionAggregation() const
const AwsEcrContainerAggregationResponse & GetAwsEcrContainerAggregation() const
const RepositoryAggregationResponse & GetRepositoryAggregation() const
void SetFindingTypeAggregation(FindingTypeAggregationT &&value)
AggregationResponse & WithCodeRepositoryAggregation(CodeRepositoryAggregationT &&value)
AggregationResponse & WithTitleAggregation(TitleAggregationT &&value)
const LambdaLayerAggregationResponse & GetLambdaLayerAggregation() const
AggregationResponse & WithLambdaFunctionAggregation(LambdaFunctionAggregationT &&value)
const ImageLayerAggregationResponse & GetImageLayerAggregation() const
const TitleAggregationResponse & GetTitleAggregation() const
Aws::Utils::Json::JsonValue JsonValue