AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/Ec2InstanceAggregation.h>
13#include <aws/inspector2/model/FindingTypeAggregation.h>
14#include <aws/inspector2/model/ImageLayerAggregation.h>
15#include <aws/inspector2/model/LambdaFunctionAggregation.h>
16#include <aws/inspector2/model/LambdaLayerAggregation.h>
17#include <aws/inspector2/model/PackageAggregation.h>
18#include <aws/inspector2/model/RepositoryAggregation.h>
19#include <aws/inspector2/model/TitleAggregation.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
39 public:
40 AWS_INSPECTOR2_API AggregationRequest() = default;
41 AWS_INSPECTOR2_API AggregationRequest(Aws::Utils::Json::JsonView jsonValue);
43 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
50 inline const AccountAggregation& GetAccountAggregation() const { return m_accountAggregation; }
51 inline bool AccountAggregationHasBeenSet() const { return m_accountAggregationHasBeenSet; }
52 template <typename AccountAggregationT = AccountAggregation>
53 void SetAccountAggregation(AccountAggregationT&& value) {
54 m_accountAggregationHasBeenSet = true;
55 m_accountAggregation = std::forward<AccountAggregationT>(value);
56 }
57 template <typename AccountAggregationT = AccountAggregation>
58 AggregationRequest& WithAccountAggregation(AccountAggregationT&& value) {
59 SetAccountAggregation(std::forward<AccountAggregationT>(value));
60 return *this;
61 }
63
65
69 inline const AmiAggregation& GetAmiAggregation() const { return m_amiAggregation; }
70 inline bool AmiAggregationHasBeenSet() const { return m_amiAggregationHasBeenSet; }
71 template <typename AmiAggregationT = AmiAggregation>
72 void SetAmiAggregation(AmiAggregationT&& value) {
73 m_amiAggregationHasBeenSet = true;
74 m_amiAggregation = std::forward<AmiAggregationT>(value);
75 }
76 template <typename AmiAggregationT = AmiAggregation>
77 AggregationRequest& WithAmiAggregation(AmiAggregationT&& value) {
78 SetAmiAggregation(std::forward<AmiAggregationT>(value));
79 return *this;
80 }
82
84
88 inline const AwsEcrContainerAggregation& GetAwsEcrContainerAggregation() const { return m_awsEcrContainerAggregation; }
89 inline bool AwsEcrContainerAggregationHasBeenSet() const { return m_awsEcrContainerAggregationHasBeenSet; }
90 template <typename AwsEcrContainerAggregationT = AwsEcrContainerAggregation>
91 void SetAwsEcrContainerAggregation(AwsEcrContainerAggregationT&& value) {
92 m_awsEcrContainerAggregationHasBeenSet = true;
93 m_awsEcrContainerAggregation = std::forward<AwsEcrContainerAggregationT>(value);
94 }
95 template <typename AwsEcrContainerAggregationT = AwsEcrContainerAggregation>
96 AggregationRequest& WithAwsEcrContainerAggregation(AwsEcrContainerAggregationT&& value) {
97 SetAwsEcrContainerAggregation(std::forward<AwsEcrContainerAggregationT>(value));
98 return *this;
99 }
101
103
107 inline const Ec2InstanceAggregation& GetEc2InstanceAggregation() const { return m_ec2InstanceAggregation; }
108 inline bool Ec2InstanceAggregationHasBeenSet() const { return m_ec2InstanceAggregationHasBeenSet; }
109 template <typename Ec2InstanceAggregationT = Ec2InstanceAggregation>
110 void SetEc2InstanceAggregation(Ec2InstanceAggregationT&& value) {
111 m_ec2InstanceAggregationHasBeenSet = true;
112 m_ec2InstanceAggregation = std::forward<Ec2InstanceAggregationT>(value);
113 }
114 template <typename Ec2InstanceAggregationT = Ec2InstanceAggregation>
115 AggregationRequest& WithEc2InstanceAggregation(Ec2InstanceAggregationT&& value) {
116 SetEc2InstanceAggregation(std::forward<Ec2InstanceAggregationT>(value));
117 return *this;
118 }
120
122
126 inline const FindingTypeAggregation& GetFindingTypeAggregation() const { return m_findingTypeAggregation; }
127 inline bool FindingTypeAggregationHasBeenSet() const { return m_findingTypeAggregationHasBeenSet; }
128 template <typename FindingTypeAggregationT = FindingTypeAggregation>
129 void SetFindingTypeAggregation(FindingTypeAggregationT&& value) {
130 m_findingTypeAggregationHasBeenSet = true;
131 m_findingTypeAggregation = std::forward<FindingTypeAggregationT>(value);
132 }
133 template <typename FindingTypeAggregationT = FindingTypeAggregation>
134 AggregationRequest& WithFindingTypeAggregation(FindingTypeAggregationT&& value) {
135 SetFindingTypeAggregation(std::forward<FindingTypeAggregationT>(value));
136 return *this;
137 }
139
141
145 inline const ImageLayerAggregation& GetImageLayerAggregation() const { return m_imageLayerAggregation; }
146 inline bool ImageLayerAggregationHasBeenSet() const { return m_imageLayerAggregationHasBeenSet; }
147 template <typename ImageLayerAggregationT = ImageLayerAggregation>
148 void SetImageLayerAggregation(ImageLayerAggregationT&& value) {
149 m_imageLayerAggregationHasBeenSet = true;
150 m_imageLayerAggregation = std::forward<ImageLayerAggregationT>(value);
151 }
152 template <typename ImageLayerAggregationT = ImageLayerAggregation>
153 AggregationRequest& WithImageLayerAggregation(ImageLayerAggregationT&& value) {
154 SetImageLayerAggregation(std::forward<ImageLayerAggregationT>(value));
155 return *this;
156 }
158
160
164 inline const PackageAggregation& GetPackageAggregation() const { return m_packageAggregation; }
165 inline bool PackageAggregationHasBeenSet() const { return m_packageAggregationHasBeenSet; }
166 template <typename PackageAggregationT = PackageAggregation>
167 void SetPackageAggregation(PackageAggregationT&& value) {
168 m_packageAggregationHasBeenSet = true;
169 m_packageAggregation = std::forward<PackageAggregationT>(value);
170 }
171 template <typename PackageAggregationT = PackageAggregation>
172 AggregationRequest& WithPackageAggregation(PackageAggregationT&& value) {
173 SetPackageAggregation(std::forward<PackageAggregationT>(value));
174 return *this;
175 }
177
179
183 inline const RepositoryAggregation& GetRepositoryAggregation() const { return m_repositoryAggregation; }
184 inline bool RepositoryAggregationHasBeenSet() const { return m_repositoryAggregationHasBeenSet; }
185 template <typename RepositoryAggregationT = RepositoryAggregation>
186 void SetRepositoryAggregation(RepositoryAggregationT&& value) {
187 m_repositoryAggregationHasBeenSet = true;
188 m_repositoryAggregation = std::forward<RepositoryAggregationT>(value);
189 }
190 template <typename RepositoryAggregationT = RepositoryAggregation>
191 AggregationRequest& WithRepositoryAggregation(RepositoryAggregationT&& value) {
192 SetRepositoryAggregation(std::forward<RepositoryAggregationT>(value));
193 return *this;
194 }
196
198
202 inline const TitleAggregation& GetTitleAggregation() const { return m_titleAggregation; }
203 inline bool TitleAggregationHasBeenSet() const { return m_titleAggregationHasBeenSet; }
204 template <typename TitleAggregationT = TitleAggregation>
205 void SetTitleAggregation(TitleAggregationT&& value) {
206 m_titleAggregationHasBeenSet = true;
207 m_titleAggregation = std::forward<TitleAggregationT>(value);
208 }
209 template <typename TitleAggregationT = TitleAggregation>
210 AggregationRequest& WithTitleAggregation(TitleAggregationT&& value) {
211 SetTitleAggregation(std::forward<TitleAggregationT>(value));
212 return *this;
213 }
215
217
221 inline const LambdaLayerAggregation& GetLambdaLayerAggregation() const { return m_lambdaLayerAggregation; }
222 inline bool LambdaLayerAggregationHasBeenSet() const { return m_lambdaLayerAggregationHasBeenSet; }
223 template <typename LambdaLayerAggregationT = LambdaLayerAggregation>
224 void SetLambdaLayerAggregation(LambdaLayerAggregationT&& value) {
225 m_lambdaLayerAggregationHasBeenSet = true;
226 m_lambdaLayerAggregation = std::forward<LambdaLayerAggregationT>(value);
227 }
228 template <typename LambdaLayerAggregationT = LambdaLayerAggregation>
229 AggregationRequest& WithLambdaLayerAggregation(LambdaLayerAggregationT&& value) {
230 SetLambdaLayerAggregation(std::forward<LambdaLayerAggregationT>(value));
231 return *this;
232 }
234
236
240 inline const LambdaFunctionAggregation& GetLambdaFunctionAggregation() const { return m_lambdaFunctionAggregation; }
241 inline bool LambdaFunctionAggregationHasBeenSet() const { return m_lambdaFunctionAggregationHasBeenSet; }
242 template <typename LambdaFunctionAggregationT = LambdaFunctionAggregation>
243 void SetLambdaFunctionAggregation(LambdaFunctionAggregationT&& value) {
244 m_lambdaFunctionAggregationHasBeenSet = true;
245 m_lambdaFunctionAggregation = std::forward<LambdaFunctionAggregationT>(value);
246 }
247 template <typename LambdaFunctionAggregationT = LambdaFunctionAggregation>
248 AggregationRequest& WithLambdaFunctionAggregation(LambdaFunctionAggregationT&& value) {
249 SetLambdaFunctionAggregation(std::forward<LambdaFunctionAggregationT>(value));
250 return *this;
251 }
253
255
259 inline const CodeRepositoryAggregation& GetCodeRepositoryAggregation() const { return m_codeRepositoryAggregation; }
260 inline bool CodeRepositoryAggregationHasBeenSet() const { return m_codeRepositoryAggregationHasBeenSet; }
261 template <typename CodeRepositoryAggregationT = CodeRepositoryAggregation>
262 void SetCodeRepositoryAggregation(CodeRepositoryAggregationT&& value) {
263 m_codeRepositoryAggregationHasBeenSet = true;
264 m_codeRepositoryAggregation = std::forward<CodeRepositoryAggregationT>(value);
265 }
266 template <typename CodeRepositoryAggregationT = CodeRepositoryAggregation>
267 AggregationRequest& WithCodeRepositoryAggregation(CodeRepositoryAggregationT&& value) {
268 SetCodeRepositoryAggregation(std::forward<CodeRepositoryAggregationT>(value));
269 return *this;
270 }
272 private:
273 AccountAggregation m_accountAggregation;
274
275 AmiAggregation m_amiAggregation;
276
277 AwsEcrContainerAggregation m_awsEcrContainerAggregation;
278
279 Ec2InstanceAggregation m_ec2InstanceAggregation;
280
281 FindingTypeAggregation m_findingTypeAggregation;
282
283 ImageLayerAggregation m_imageLayerAggregation;
284
285 PackageAggregation m_packageAggregation;
286
287 RepositoryAggregation m_repositoryAggregation;
288
289 TitleAggregation m_titleAggregation;
290
291 LambdaLayerAggregation m_lambdaLayerAggregation;
292
293 LambdaFunctionAggregation m_lambdaFunctionAggregation;
294
295 CodeRepositoryAggregation m_codeRepositoryAggregation;
296 bool m_accountAggregationHasBeenSet = false;
297 bool m_amiAggregationHasBeenSet = false;
298 bool m_awsEcrContainerAggregationHasBeenSet = false;
299 bool m_ec2InstanceAggregationHasBeenSet = false;
300 bool m_findingTypeAggregationHasBeenSet = false;
301 bool m_imageLayerAggregationHasBeenSet = false;
302 bool m_packageAggregationHasBeenSet = false;
303 bool m_repositoryAggregationHasBeenSet = false;
304 bool m_titleAggregationHasBeenSet = false;
305 bool m_lambdaLayerAggregationHasBeenSet = false;
306 bool m_lambdaFunctionAggregationHasBeenSet = false;
307 bool m_codeRepositoryAggregationHasBeenSet = false;
308};
309
310} // namespace Model
311} // namespace Inspector2
312} // namespace Aws
void SetAccountAggregation(AccountAggregationT &&value)
void SetRepositoryAggregation(RepositoryAggregationT &&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
AggregationRequest & WithCodeRepositoryAggregation(CodeRepositoryAggregationT &&value)
void SetAmiAggregation(AmiAggregationT &&value)
const CodeRepositoryAggregation & GetCodeRepositoryAggregation() const
void SetTitleAggregation(TitleAggregationT &&value)
AggregationRequest & WithLambdaLayerAggregation(LambdaLayerAggregationT &&value)
AggregationRequest & WithTitleAggregation(TitleAggregationT &&value)
AggregationRequest & WithLambdaFunctionAggregation(LambdaFunctionAggregationT &&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)
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)
AggregationRequest & WithAwsEcrContainerAggregation(AwsEcrContainerAggregationT &&value)
Aws::Utils::Json::JsonValue JsonValue