AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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
44 {
45 public:
46 AWS_INSPECTOR2_API AggregationResponse() = default;
47 AWS_INSPECTOR2_API AggregationResponse(Aws::Utils::Json::JsonView jsonValue);
49 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
57 inline const AccountAggregationResponse& GetAccountAggregation() const { return m_accountAggregation; }
58 inline bool AccountAggregationHasBeenSet() const { return m_accountAggregationHasBeenSet; }
59 template<typename AccountAggregationT = AccountAggregationResponse>
60 void SetAccountAggregation(AccountAggregationT&& value) { m_accountAggregationHasBeenSet = true; m_accountAggregation = std::forward<AccountAggregationT>(value); }
61 template<typename AccountAggregationT = AccountAggregationResponse>
62 AggregationResponse& WithAccountAggregation(AccountAggregationT&& value) { SetAccountAggregation(std::forward<AccountAggregationT>(value)); return *this;}
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) { m_amiAggregationHasBeenSet = true; m_amiAggregation = std::forward<AmiAggregationT>(value); }
74 template<typename AmiAggregationT = AmiAggregationResponse>
75 AggregationResponse& WithAmiAggregation(AmiAggregationT&& value) { SetAmiAggregation(std::forward<AmiAggregationT>(value)); return *this;}
77
79
83 inline const AwsEcrContainerAggregationResponse& GetAwsEcrContainerAggregation() const { return m_awsEcrContainerAggregation; }
84 inline bool AwsEcrContainerAggregationHasBeenSet() const { return m_awsEcrContainerAggregationHasBeenSet; }
85 template<typename AwsEcrContainerAggregationT = AwsEcrContainerAggregationResponse>
86 void SetAwsEcrContainerAggregation(AwsEcrContainerAggregationT&& value) { m_awsEcrContainerAggregationHasBeenSet = true; m_awsEcrContainerAggregation = std::forward<AwsEcrContainerAggregationT>(value); }
87 template<typename AwsEcrContainerAggregationT = AwsEcrContainerAggregationResponse>
88 AggregationResponse& WithAwsEcrContainerAggregation(AwsEcrContainerAggregationT&& value) { SetAwsEcrContainerAggregation(std::forward<AwsEcrContainerAggregationT>(value)); return *this;}
90
92
96 inline const CodeRepositoryAggregationResponse& GetCodeRepositoryAggregation() const { return m_codeRepositoryAggregation; }
97 inline bool CodeRepositoryAggregationHasBeenSet() const { return m_codeRepositoryAggregationHasBeenSet; }
98 template<typename CodeRepositoryAggregationT = CodeRepositoryAggregationResponse>
99 void SetCodeRepositoryAggregation(CodeRepositoryAggregationT&& value) { m_codeRepositoryAggregationHasBeenSet = true; m_codeRepositoryAggregation = std::forward<CodeRepositoryAggregationT>(value); }
100 template<typename CodeRepositoryAggregationT = CodeRepositoryAggregationResponse>
101 AggregationResponse& WithCodeRepositoryAggregation(CodeRepositoryAggregationT&& value) { SetCodeRepositoryAggregation(std::forward<CodeRepositoryAggregationT>(value)); return *this;}
103
105
109 inline const Ec2InstanceAggregationResponse& GetEc2InstanceAggregation() const { return m_ec2InstanceAggregation; }
110 inline bool Ec2InstanceAggregationHasBeenSet() const { return m_ec2InstanceAggregationHasBeenSet; }
111 template<typename Ec2InstanceAggregationT = Ec2InstanceAggregationResponse>
112 void SetEc2InstanceAggregation(Ec2InstanceAggregationT&& value) { m_ec2InstanceAggregationHasBeenSet = true; m_ec2InstanceAggregation = std::forward<Ec2InstanceAggregationT>(value); }
113 template<typename Ec2InstanceAggregationT = Ec2InstanceAggregationResponse>
114 AggregationResponse& WithEc2InstanceAggregation(Ec2InstanceAggregationT&& value) { SetEc2InstanceAggregation(std::forward<Ec2InstanceAggregationT>(value)); return *this;}
116
118
122 inline const FindingTypeAggregationResponse& GetFindingTypeAggregation() const { return m_findingTypeAggregation; }
123 inline bool FindingTypeAggregationHasBeenSet() const { return m_findingTypeAggregationHasBeenSet; }
124 template<typename FindingTypeAggregationT = FindingTypeAggregationResponse>
125 void SetFindingTypeAggregation(FindingTypeAggregationT&& value) { m_findingTypeAggregationHasBeenSet = true; m_findingTypeAggregation = std::forward<FindingTypeAggregationT>(value); }
126 template<typename FindingTypeAggregationT = FindingTypeAggregationResponse>
127 AggregationResponse& WithFindingTypeAggregation(FindingTypeAggregationT&& value) { SetFindingTypeAggregation(std::forward<FindingTypeAggregationT>(value)); return *this;}
129
131
135 inline const ImageLayerAggregationResponse& GetImageLayerAggregation() const { return m_imageLayerAggregation; }
136 inline bool ImageLayerAggregationHasBeenSet() const { return m_imageLayerAggregationHasBeenSet; }
137 template<typename ImageLayerAggregationT = ImageLayerAggregationResponse>
138 void SetImageLayerAggregation(ImageLayerAggregationT&& value) { m_imageLayerAggregationHasBeenSet = true; m_imageLayerAggregation = std::forward<ImageLayerAggregationT>(value); }
139 template<typename ImageLayerAggregationT = ImageLayerAggregationResponse>
140 AggregationResponse& WithImageLayerAggregation(ImageLayerAggregationT&& value) { SetImageLayerAggregation(std::forward<ImageLayerAggregationT>(value)); return *this;}
142
144
147 inline const LambdaFunctionAggregationResponse& GetLambdaFunctionAggregation() const { return m_lambdaFunctionAggregation; }
148 inline bool LambdaFunctionAggregationHasBeenSet() const { return m_lambdaFunctionAggregationHasBeenSet; }
149 template<typename LambdaFunctionAggregationT = LambdaFunctionAggregationResponse>
150 void SetLambdaFunctionAggregation(LambdaFunctionAggregationT&& value) { m_lambdaFunctionAggregationHasBeenSet = true; m_lambdaFunctionAggregation = std::forward<LambdaFunctionAggregationT>(value); }
151 template<typename LambdaFunctionAggregationT = LambdaFunctionAggregationResponse>
152 AggregationResponse& WithLambdaFunctionAggregation(LambdaFunctionAggregationT&& value) { SetLambdaFunctionAggregation(std::forward<LambdaFunctionAggregationT>(value)); return *this;}
154
156
159 inline const LambdaLayerAggregationResponse& GetLambdaLayerAggregation() const { return m_lambdaLayerAggregation; }
160 inline bool LambdaLayerAggregationHasBeenSet() const { return m_lambdaLayerAggregationHasBeenSet; }
161 template<typename LambdaLayerAggregationT = LambdaLayerAggregationResponse>
162 void SetLambdaLayerAggregation(LambdaLayerAggregationT&& value) { m_lambdaLayerAggregationHasBeenSet = true; m_lambdaLayerAggregation = std::forward<LambdaLayerAggregationT>(value); }
163 template<typename LambdaLayerAggregationT = LambdaLayerAggregationResponse>
164 AggregationResponse& WithLambdaLayerAggregation(LambdaLayerAggregationT&& value) { SetLambdaLayerAggregation(std::forward<LambdaLayerAggregationT>(value)); return *this;}
166
168
172 inline const PackageAggregationResponse& GetPackageAggregation() const { return m_packageAggregation; }
173 inline bool PackageAggregationHasBeenSet() const { return m_packageAggregationHasBeenSet; }
174 template<typename PackageAggregationT = PackageAggregationResponse>
175 void SetPackageAggregation(PackageAggregationT&& value) { m_packageAggregationHasBeenSet = true; m_packageAggregation = std::forward<PackageAggregationT>(value); }
176 template<typename PackageAggregationT = PackageAggregationResponse>
177 AggregationResponse& WithPackageAggregation(PackageAggregationT&& value) { SetPackageAggregation(std::forward<PackageAggregationT>(value)); return *this;}
179
181
185 inline const RepositoryAggregationResponse& GetRepositoryAggregation() const { return m_repositoryAggregation; }
186 inline bool RepositoryAggregationHasBeenSet() const { return m_repositoryAggregationHasBeenSet; }
187 template<typename RepositoryAggregationT = RepositoryAggregationResponse>
188 void SetRepositoryAggregation(RepositoryAggregationT&& value) { m_repositoryAggregationHasBeenSet = true; m_repositoryAggregation = std::forward<RepositoryAggregationT>(value); }
189 template<typename RepositoryAggregationT = RepositoryAggregationResponse>
190 AggregationResponse& WithRepositoryAggregation(RepositoryAggregationT&& value) { SetRepositoryAggregation(std::forward<RepositoryAggregationT>(value)); return *this;}
192
194
198 inline const TitleAggregationResponse& GetTitleAggregation() const { return m_titleAggregation; }
199 inline bool TitleAggregationHasBeenSet() const { return m_titleAggregationHasBeenSet; }
200 template<typename TitleAggregationT = TitleAggregationResponse>
201 void SetTitleAggregation(TitleAggregationT&& value) { m_titleAggregationHasBeenSet = true; m_titleAggregation = std::forward<TitleAggregationT>(value); }
202 template<typename TitleAggregationT = TitleAggregationResponse>
203 AggregationResponse& WithTitleAggregation(TitleAggregationT&& value) { SetTitleAggregation(std::forward<TitleAggregationT>(value)); return *this;}
205 private:
206
207 AccountAggregationResponse m_accountAggregation;
208 bool m_accountAggregationHasBeenSet = false;
209
210 AmiAggregationResponse m_amiAggregation;
211 bool m_amiAggregationHasBeenSet = false;
212
213 AwsEcrContainerAggregationResponse m_awsEcrContainerAggregation;
214 bool m_awsEcrContainerAggregationHasBeenSet = false;
215
216 CodeRepositoryAggregationResponse m_codeRepositoryAggregation;
217 bool m_codeRepositoryAggregationHasBeenSet = false;
218
219 Ec2InstanceAggregationResponse m_ec2InstanceAggregation;
220 bool m_ec2InstanceAggregationHasBeenSet = false;
221
222 FindingTypeAggregationResponse m_findingTypeAggregation;
223 bool m_findingTypeAggregationHasBeenSet = false;
224
225 ImageLayerAggregationResponse m_imageLayerAggregation;
226 bool m_imageLayerAggregationHasBeenSet = false;
227
228 LambdaFunctionAggregationResponse m_lambdaFunctionAggregation;
229 bool m_lambdaFunctionAggregationHasBeenSet = false;
230
231 LambdaLayerAggregationResponse m_lambdaLayerAggregation;
232 bool m_lambdaLayerAggregationHasBeenSet = false;
233
234 PackageAggregationResponse m_packageAggregation;
235 bool m_packageAggregationHasBeenSet = false;
236
237 RepositoryAggregationResponse m_repositoryAggregation;
238 bool m_repositoryAggregationHasBeenSet = false;
239
240 TitleAggregationResponse m_titleAggregation;
241 bool m_titleAggregationHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace Inspector2
246} // 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