AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace Inspector2
33{
34namespace Model
35{
36
43 {
44 public:
45 AWS_INSPECTOR2_API AggregationRequest() = default;
46 AWS_INSPECTOR2_API AggregationRequest(Aws::Utils::Json::JsonView jsonValue);
48 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const AccountAggregation& GetAccountAggregation() const { return m_accountAggregation; }
57 inline bool AccountAggregationHasBeenSet() const { return m_accountAggregationHasBeenSet; }
58 template<typename AccountAggregationT = AccountAggregation>
59 void SetAccountAggregation(AccountAggregationT&& value) { m_accountAggregationHasBeenSet = true; m_accountAggregation = std::forward<AccountAggregationT>(value); }
60 template<typename AccountAggregationT = AccountAggregation>
61 AggregationRequest& WithAccountAggregation(AccountAggregationT&& value) { SetAccountAggregation(std::forward<AccountAggregationT>(value)); return *this;}
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) { m_amiAggregationHasBeenSet = true; m_amiAggregation = std::forward<AmiAggregationT>(value); }
73 template<typename AmiAggregationT = AmiAggregation>
74 AggregationRequest& WithAmiAggregation(AmiAggregationT&& value) { SetAmiAggregation(std::forward<AmiAggregationT>(value)); return *this;}
76
78
82 inline const AwsEcrContainerAggregation& GetAwsEcrContainerAggregation() const { return m_awsEcrContainerAggregation; }
83 inline bool AwsEcrContainerAggregationHasBeenSet() const { return m_awsEcrContainerAggregationHasBeenSet; }
84 template<typename AwsEcrContainerAggregationT = AwsEcrContainerAggregation>
85 void SetAwsEcrContainerAggregation(AwsEcrContainerAggregationT&& value) { m_awsEcrContainerAggregationHasBeenSet = true; m_awsEcrContainerAggregation = std::forward<AwsEcrContainerAggregationT>(value); }
86 template<typename AwsEcrContainerAggregationT = AwsEcrContainerAggregation>
87 AggregationRequest& WithAwsEcrContainerAggregation(AwsEcrContainerAggregationT&& value) { SetAwsEcrContainerAggregation(std::forward<AwsEcrContainerAggregationT>(value)); return *this;}
89
91
95 inline const CodeRepositoryAggregation& GetCodeRepositoryAggregation() const { return m_codeRepositoryAggregation; }
96 inline bool CodeRepositoryAggregationHasBeenSet() const { return m_codeRepositoryAggregationHasBeenSet; }
97 template<typename CodeRepositoryAggregationT = CodeRepositoryAggregation>
98 void SetCodeRepositoryAggregation(CodeRepositoryAggregationT&& value) { m_codeRepositoryAggregationHasBeenSet = true; m_codeRepositoryAggregation = std::forward<CodeRepositoryAggregationT>(value); }
99 template<typename CodeRepositoryAggregationT = CodeRepositoryAggregation>
100 AggregationRequest& WithCodeRepositoryAggregation(CodeRepositoryAggregationT&& value) { SetCodeRepositoryAggregation(std::forward<CodeRepositoryAggregationT>(value)); return *this;}
102
104
108 inline const Ec2InstanceAggregation& GetEc2InstanceAggregation() const { return m_ec2InstanceAggregation; }
109 inline bool Ec2InstanceAggregationHasBeenSet() const { return m_ec2InstanceAggregationHasBeenSet; }
110 template<typename Ec2InstanceAggregationT = Ec2InstanceAggregation>
111 void SetEc2InstanceAggregation(Ec2InstanceAggregationT&& value) { m_ec2InstanceAggregationHasBeenSet = true; m_ec2InstanceAggregation = std::forward<Ec2InstanceAggregationT>(value); }
112 template<typename Ec2InstanceAggregationT = Ec2InstanceAggregation>
113 AggregationRequest& WithEc2InstanceAggregation(Ec2InstanceAggregationT&& value) { SetEc2InstanceAggregation(std::forward<Ec2InstanceAggregationT>(value)); return *this;}
115
117
121 inline const FindingTypeAggregation& GetFindingTypeAggregation() const { return m_findingTypeAggregation; }
122 inline bool FindingTypeAggregationHasBeenSet() const { return m_findingTypeAggregationHasBeenSet; }
123 template<typename FindingTypeAggregationT = FindingTypeAggregation>
124 void SetFindingTypeAggregation(FindingTypeAggregationT&& value) { m_findingTypeAggregationHasBeenSet = true; m_findingTypeAggregation = std::forward<FindingTypeAggregationT>(value); }
125 template<typename FindingTypeAggregationT = FindingTypeAggregation>
126 AggregationRequest& WithFindingTypeAggregation(FindingTypeAggregationT&& value) { SetFindingTypeAggregation(std::forward<FindingTypeAggregationT>(value)); return *this;}
128
130
134 inline const ImageLayerAggregation& GetImageLayerAggregation() const { return m_imageLayerAggregation; }
135 inline bool ImageLayerAggregationHasBeenSet() const { return m_imageLayerAggregationHasBeenSet; }
136 template<typename ImageLayerAggregationT = ImageLayerAggregation>
137 void SetImageLayerAggregation(ImageLayerAggregationT&& value) { m_imageLayerAggregationHasBeenSet = true; m_imageLayerAggregation = std::forward<ImageLayerAggregationT>(value); }
138 template<typename ImageLayerAggregationT = ImageLayerAggregation>
139 AggregationRequest& WithImageLayerAggregation(ImageLayerAggregationT&& value) { SetImageLayerAggregation(std::forward<ImageLayerAggregationT>(value)); return *this;}
141
143
147 inline const LambdaFunctionAggregation& GetLambdaFunctionAggregation() const { return m_lambdaFunctionAggregation; }
148 inline bool LambdaFunctionAggregationHasBeenSet() const { return m_lambdaFunctionAggregationHasBeenSet; }
149 template<typename LambdaFunctionAggregationT = LambdaFunctionAggregation>
150 void SetLambdaFunctionAggregation(LambdaFunctionAggregationT&& value) { m_lambdaFunctionAggregationHasBeenSet = true; m_lambdaFunctionAggregation = std::forward<LambdaFunctionAggregationT>(value); }
151 template<typename LambdaFunctionAggregationT = LambdaFunctionAggregation>
152 AggregationRequest& WithLambdaFunctionAggregation(LambdaFunctionAggregationT&& value) { SetLambdaFunctionAggregation(std::forward<LambdaFunctionAggregationT>(value)); return *this;}
154
156
160 inline const LambdaLayerAggregation& GetLambdaLayerAggregation() const { return m_lambdaLayerAggregation; }
161 inline bool LambdaLayerAggregationHasBeenSet() const { return m_lambdaLayerAggregationHasBeenSet; }
162 template<typename LambdaLayerAggregationT = LambdaLayerAggregation>
163 void SetLambdaLayerAggregation(LambdaLayerAggregationT&& value) { m_lambdaLayerAggregationHasBeenSet = true; m_lambdaLayerAggregation = std::forward<LambdaLayerAggregationT>(value); }
164 template<typename LambdaLayerAggregationT = LambdaLayerAggregation>
165 AggregationRequest& WithLambdaLayerAggregation(LambdaLayerAggregationT&& value) { SetLambdaLayerAggregation(std::forward<LambdaLayerAggregationT>(value)); return *this;}
167
169
173 inline const PackageAggregation& GetPackageAggregation() const { return m_packageAggregation; }
174 inline bool PackageAggregationHasBeenSet() const { return m_packageAggregationHasBeenSet; }
175 template<typename PackageAggregationT = PackageAggregation>
176 void SetPackageAggregation(PackageAggregationT&& value) { m_packageAggregationHasBeenSet = true; m_packageAggregation = std::forward<PackageAggregationT>(value); }
177 template<typename PackageAggregationT = PackageAggregation>
178 AggregationRequest& WithPackageAggregation(PackageAggregationT&& value) { SetPackageAggregation(std::forward<PackageAggregationT>(value)); return *this;}
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) { m_repositoryAggregationHasBeenSet = true; m_repositoryAggregation = std::forward<RepositoryAggregationT>(value); }
190 template<typename RepositoryAggregationT = RepositoryAggregation>
191 AggregationRequest& WithRepositoryAggregation(RepositoryAggregationT&& value) { SetRepositoryAggregation(std::forward<RepositoryAggregationT>(value)); return *this;}
193
195
199 inline const TitleAggregation& GetTitleAggregation() const { return m_titleAggregation; }
200 inline bool TitleAggregationHasBeenSet() const { return m_titleAggregationHasBeenSet; }
201 template<typename TitleAggregationT = TitleAggregation>
202 void SetTitleAggregation(TitleAggregationT&& value) { m_titleAggregationHasBeenSet = true; m_titleAggregation = std::forward<TitleAggregationT>(value); }
203 template<typename TitleAggregationT = TitleAggregation>
204 AggregationRequest& WithTitleAggregation(TitleAggregationT&& value) { SetTitleAggregation(std::forward<TitleAggregationT>(value)); return *this;}
206 private:
207
208 AccountAggregation m_accountAggregation;
209 bool m_accountAggregationHasBeenSet = false;
210
211 AmiAggregation m_amiAggregation;
212 bool m_amiAggregationHasBeenSet = false;
213
214 AwsEcrContainerAggregation m_awsEcrContainerAggregation;
215 bool m_awsEcrContainerAggregationHasBeenSet = false;
216
217 CodeRepositoryAggregation m_codeRepositoryAggregation;
218 bool m_codeRepositoryAggregationHasBeenSet = false;
219
220 Ec2InstanceAggregation m_ec2InstanceAggregation;
221 bool m_ec2InstanceAggregationHasBeenSet = false;
222
223 FindingTypeAggregation m_findingTypeAggregation;
224 bool m_findingTypeAggregationHasBeenSet = false;
225
226 ImageLayerAggregation m_imageLayerAggregation;
227 bool m_imageLayerAggregationHasBeenSet = false;
228
229 LambdaFunctionAggregation m_lambdaFunctionAggregation;
230 bool m_lambdaFunctionAggregationHasBeenSet = false;
231
232 LambdaLayerAggregation m_lambdaLayerAggregation;
233 bool m_lambdaLayerAggregationHasBeenSet = false;
234
235 PackageAggregation m_packageAggregation;
236 bool m_packageAggregationHasBeenSet = false;
237
238 RepositoryAggregation m_repositoryAggregation;
239 bool m_repositoryAggregationHasBeenSet = false;
240
241 TitleAggregation m_titleAggregation;
242 bool m_titleAggregationHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace Inspector2
247} // 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