AWS SDK for C++

AWS SDK for C++ Version 1.11.903

Loading...
Searching...
No Matches
Pentest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/Assets.h>
12#include <aws/securityagent/model/CiCdConfiguration.h>
13#include <aws/securityagent/model/CleanUpStrategy.h>
14#include <aws/securityagent/model/CloudWatchLog.h>
15#include <aws/securityagent/model/CodeRemediationStrategy.h>
16#include <aws/securityagent/model/NetworkTrafficConfig.h>
17#include <aws/securityagent/model/ReportDestination.h>
18#include <aws/securityagent/model/ReportFilters.h>
19#include <aws/securityagent/model/RiskType.h>
20#include <aws/securityagent/model/SkillType.h>
21#include <aws/securityagent/model/VpcConfig.h>
22
23#include <utility>
24
25namespace Aws {
26namespace Utils {
27namespace Json {
28class JsonValue;
29class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace SecurityAgent {
33namespace Model {
34
42class Pentest {
43 public:
44 AWS_SECURITYAGENT_API Pentest() = default;
45 AWS_SECURITYAGENT_API Pentest(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SECURITYAGENT_API Pentest& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
53 inline const Aws::String& GetPentestId() const { return m_pentestId; }
54 inline bool PentestIdHasBeenSet() const { return m_pentestIdHasBeenSet; }
55 template <typename PentestIdT = Aws::String>
56 void SetPentestId(PentestIdT&& value) {
57 m_pentestIdHasBeenSet = true;
58 m_pentestId = std::forward<PentestIdT>(value);
59 }
60 template <typename PentestIdT = Aws::String>
61 Pentest& WithPentestId(PentestIdT&& value) {
62 SetPentestId(std::forward<PentestIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
72 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
73 template <typename AgentSpaceIdT = Aws::String>
74 void SetAgentSpaceId(AgentSpaceIdT&& value) {
75 m_agentSpaceIdHasBeenSet = true;
76 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
77 }
78 template <typename AgentSpaceIdT = Aws::String>
79 Pentest& WithAgentSpaceId(AgentSpaceIdT&& value) {
80 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetTitle() const { return m_title; }
90 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
91 template <typename TitleT = Aws::String>
92 void SetTitle(TitleT&& value) {
93 m_titleHasBeenSet = true;
94 m_title = std::forward<TitleT>(value);
95 }
96 template <typename TitleT = Aws::String>
97 Pentest& WithTitle(TitleT&& value) {
98 SetTitle(std::forward<TitleT>(value));
99 return *this;
100 }
102
104
107 inline const Assets& GetAssets() const { return m_assets; }
108 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
109 template <typename AssetsT = Assets>
110 void SetAssets(AssetsT&& value) {
111 m_assetsHasBeenSet = true;
112 m_assets = std::forward<AssetsT>(value);
113 }
114 template <typename AssetsT = Assets>
115 Pentest& WithAssets(AssetsT&& value) {
116 SetAssets(std::forward<AssetsT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
126 inline bool ExcludeRiskTypesHasBeenSet() const { return m_excludeRiskTypesHasBeenSet; }
127 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
128 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
129 m_excludeRiskTypesHasBeenSet = true;
130 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
131 }
132 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
133 Pentest& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
134 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
135 return *this;
136 }
138 m_excludeRiskTypesHasBeenSet = true;
139 m_excludeRiskTypes.push_back(value);
140 return *this;
141 }
143
145
148 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
149 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
150 template <typename ServiceRoleT = Aws::String>
151 void SetServiceRole(ServiceRoleT&& value) {
152 m_serviceRoleHasBeenSet = true;
153 m_serviceRole = std::forward<ServiceRoleT>(value);
154 }
155 template <typename ServiceRoleT = Aws::String>
156 Pentest& WithServiceRole(ServiceRoleT&& value) {
157 SetServiceRole(std::forward<ServiceRoleT>(value));
158 return *this;
159 }
161
163
166 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
167 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
168 template <typename LogConfigT = CloudWatchLog>
169 void SetLogConfig(LogConfigT&& value) {
170 m_logConfigHasBeenSet = true;
171 m_logConfig = std::forward<LogConfigT>(value);
172 }
173 template <typename LogConfigT = CloudWatchLog>
174 Pentest& WithLogConfig(LogConfigT&& value) {
175 SetLogConfig(std::forward<LogConfigT>(value));
176 return *this;
177 }
179
181
184 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
185 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
186 template <typename VpcConfigT = VpcConfig>
187 void SetVpcConfig(VpcConfigT&& value) {
188 m_vpcConfigHasBeenSet = true;
189 m_vpcConfig = std::forward<VpcConfigT>(value);
190 }
191 template <typename VpcConfigT = VpcConfig>
192 Pentest& WithVpcConfig(VpcConfigT&& value) {
193 SetVpcConfig(std::forward<VpcConfigT>(value));
194 return *this;
195 }
197
199
202 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
203 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
204 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
205 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
206 m_networkTrafficConfigHasBeenSet = true;
207 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
208 }
209 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
210 Pentest& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
211 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
212 return *this;
213 }
215
217
220 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
221 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
223 m_codeRemediationStrategyHasBeenSet = true;
224 m_codeRemediationStrategy = value;
225 }
228 return *this;
229 }
231
233
236 inline CleanUpStrategy GetCleanUpStrategy() const { return m_cleanUpStrategy; }
237 inline bool CleanUpStrategyHasBeenSet() const { return m_cleanUpStrategyHasBeenSet; }
239 m_cleanUpStrategyHasBeenSet = true;
240 m_cleanUpStrategy = value;
241 }
243 SetCleanUpStrategy(value);
244 return *this;
245 }
247
249
253 inline const Aws::Vector<SkillType>& GetDisableManagedSkills() const { return m_disableManagedSkills; }
254 inline bool DisableManagedSkillsHasBeenSet() const { return m_disableManagedSkillsHasBeenSet; }
255 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
256 void SetDisableManagedSkills(DisableManagedSkillsT&& value) {
257 m_disableManagedSkillsHasBeenSet = true;
258 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
259 }
260 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
261 Pentest& WithDisableManagedSkills(DisableManagedSkillsT&& value) {
262 SetDisableManagedSkills(std::forward<DisableManagedSkillsT>(value));
263 return *this;
264 }
266 m_disableManagedSkillsHasBeenSet = true;
267 m_disableManagedSkills.push_back(value);
268 return *this;
269 }
271
273
278 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
279 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
280 inline void SetMaxTaskHours(double value) {
281 m_maxTaskHoursHasBeenSet = true;
282 m_maxTaskHours = value;
283 }
284 inline Pentest& WithMaxTaskHours(double value) {
285 SetMaxTaskHours(value);
286 return *this;
287 }
289
291
295 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
296 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
297 template <typename ReportDestinationT = ReportDestination>
298 void SetReportDestination(ReportDestinationT&& value) {
299 m_reportDestinationHasBeenSet = true;
300 m_reportDestination = std::forward<ReportDestinationT>(value);
301 }
302 template <typename ReportDestinationT = ReportDestination>
303 Pentest& WithReportDestination(ReportDestinationT&& value) {
304 SetReportDestination(std::forward<ReportDestinationT>(value));
305 return *this;
306 }
308
310
313 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
314 inline bool ReportFiltersHasBeenSet() const { return m_reportFiltersHasBeenSet; }
315 template <typename ReportFiltersT = ReportFilters>
316 void SetReportFilters(ReportFiltersT&& value) {
317 m_reportFiltersHasBeenSet = true;
318 m_reportFilters = std::forward<ReportFiltersT>(value);
319 }
320 template <typename ReportFiltersT = ReportFilters>
321 Pentest& WithReportFilters(ReportFiltersT&& value) {
322 SetReportFilters(std::forward<ReportFiltersT>(value));
323 return *this;
324 }
326
328
332 inline const CiCdConfiguration& GetCicdConfiguration() const { return m_cicdConfiguration; }
333 inline bool CicdConfigurationHasBeenSet() const { return m_cicdConfigurationHasBeenSet; }
334 template <typename CicdConfigurationT = CiCdConfiguration>
335 void SetCicdConfiguration(CicdConfigurationT&& value) {
336 m_cicdConfigurationHasBeenSet = true;
337 m_cicdConfiguration = std::forward<CicdConfigurationT>(value);
338 }
339 template <typename CicdConfigurationT = CiCdConfiguration>
340 Pentest& WithCicdConfiguration(CicdConfigurationT&& value) {
341 SetCicdConfiguration(std::forward<CicdConfigurationT>(value));
342 return *this;
343 }
345
347
350 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
351 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
352 template <typename CreatedAtT = Aws::Utils::DateTime>
353 void SetCreatedAt(CreatedAtT&& value) {
354 m_createdAtHasBeenSet = true;
355 m_createdAt = std::forward<CreatedAtT>(value);
356 }
357 template <typename CreatedAtT = Aws::Utils::DateTime>
358 Pentest& WithCreatedAt(CreatedAtT&& value) {
359 SetCreatedAt(std::forward<CreatedAtT>(value));
360 return *this;
361 }
363
365
368 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
369 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
370 template <typename UpdatedAtT = Aws::Utils::DateTime>
371 void SetUpdatedAt(UpdatedAtT&& value) {
372 m_updatedAtHasBeenSet = true;
373 m_updatedAt = std::forward<UpdatedAtT>(value);
374 }
375 template <typename UpdatedAtT = Aws::Utils::DateTime>
376 Pentest& WithUpdatedAt(UpdatedAtT&& value) {
377 SetUpdatedAt(std::forward<UpdatedAtT>(value));
378 return *this;
379 }
381 private:
382 Aws::String m_pentestId;
383
384 Aws::String m_agentSpaceId;
385
386 Aws::String m_title;
387
388 Assets m_assets;
389
390 Aws::Vector<RiskType> m_excludeRiskTypes;
391
392 Aws::String m_serviceRole;
393
394 CloudWatchLog m_logConfig;
395
396 VpcConfig m_vpcConfig;
397
398 NetworkTrafficConfig m_networkTrafficConfig;
399
401
402 CleanUpStrategy m_cleanUpStrategy{CleanUpStrategy::NOT_SET};
403
404 Aws::Vector<SkillType> m_disableManagedSkills;
405
406 double m_maxTaskHours{0.0};
407
408 ReportDestination m_reportDestination;
409
410 ReportFilters m_reportFilters;
411
412 CiCdConfiguration m_cicdConfiguration;
413
414 Aws::Utils::DateTime m_createdAt{};
415
416 Aws::Utils::DateTime m_updatedAt{};
417 bool m_pentestIdHasBeenSet = false;
418 bool m_agentSpaceIdHasBeenSet = false;
419 bool m_titleHasBeenSet = false;
420 bool m_assetsHasBeenSet = false;
421 bool m_excludeRiskTypesHasBeenSet = false;
422 bool m_serviceRoleHasBeenSet = false;
423 bool m_logConfigHasBeenSet = false;
424 bool m_vpcConfigHasBeenSet = false;
425 bool m_networkTrafficConfigHasBeenSet = false;
426 bool m_codeRemediationStrategyHasBeenSet = false;
427 bool m_cleanUpStrategyHasBeenSet = false;
428 bool m_disableManagedSkillsHasBeenSet = false;
429 bool m_maxTaskHoursHasBeenSet = false;
430 bool m_reportDestinationHasBeenSet = false;
431 bool m_reportFiltersHasBeenSet = false;
432 bool m_cicdConfigurationHasBeenSet = false;
433 bool m_createdAtHasBeenSet = false;
434 bool m_updatedAtHasBeenSet = false;
435};
436
437} // namespace Model
438} // namespace SecurityAgent
439} // namespace Aws
Pentest & WithVpcConfig(VpcConfigT &&value)
Definition Pentest.h:192
void SetNetworkTrafficConfig(NetworkTrafficConfigT &&value)
Definition Pentest.h:205
Pentest & WithPentestId(PentestIdT &&value)
Definition Pentest.h:61
void SetPentestId(PentestIdT &&value)
Definition Pentest.h:56
Pentest & WithDisableManagedSkills(DisableManagedSkillsT &&value)
Definition Pentest.h:261
const Aws::Vector< SkillType > & GetDisableManagedSkills() const
Definition Pentest.h:253
bool CicdConfigurationHasBeenSet() const
Definition Pentest.h:333
Pentest & AddExcludeRiskTypes(RiskType value)
Definition Pentest.h:137
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
Definition Pentest.h:222
void SetLogConfig(LogConfigT &&value)
Definition Pentest.h:169
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Pentest.h:350
void SetExcludeRiskTypes(ExcludeRiskTypesT &&value)
Definition Pentest.h:128
CleanUpStrategy GetCleanUpStrategy() const
Definition Pentest.h:236
AWS_SECURITYAGENT_API Pentest & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ReportDestinationHasBeenSet() const
Definition Pentest.h:296
const CiCdConfiguration & GetCicdConfiguration() const
Definition Pentest.h:332
void SetUpdatedAt(UpdatedAtT &&value)
Definition Pentest.h:371
void SetMaxTaskHours(double value)
Definition Pentest.h:280
Pentest & WithAssets(AssetsT &&value)
Definition Pentest.h:115
const CloudWatchLog & GetLogConfig() const
Definition Pentest.h:166
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition Pentest.h:74
Pentest & WithServiceRole(ServiceRoleT &&value)
Definition Pentest.h:156
Pentest & WithNetworkTrafficConfig(NetworkTrafficConfigT &&value)
Definition Pentest.h:210
void SetServiceRole(ServiceRoleT &&value)
Definition Pentest.h:151
bool DisableManagedSkillsHasBeenSet() const
Definition Pentest.h:254
void SetCicdConfiguration(CicdConfigurationT &&value)
Definition Pentest.h:335
AWS_SECURITYAGENT_API Pentest()=default
void SetTitle(TitleT &&value)
Definition Pentest.h:92
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
Pentest & WithReportFilters(ReportFiltersT &&value)
Definition Pentest.h:321
Pentest & AddDisableManagedSkills(SkillType value)
Definition Pentest.h:265
AWS_SECURITYAGENT_API Pentest(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPentestId() const
Definition Pentest.h:53
void SetReportFilters(ReportFiltersT &&value)
Definition Pentest.h:316
CodeRemediationStrategy GetCodeRemediationStrategy() const
Definition Pentest.h:220
Pentest & WithCicdConfiguration(CicdConfigurationT &&value)
Definition Pentest.h:340
void SetVpcConfig(VpcConfigT &&value)
Definition Pentest.h:187
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Pentest.h:368
Pentest & WithTitle(TitleT &&value)
Definition Pentest.h:97
Pentest & WithMaxTaskHours(double value)
Definition Pentest.h:284
bool CodeRemediationStrategyHasBeenSet() const
Definition Pentest.h:221
Pentest & WithExcludeRiskTypes(ExcludeRiskTypesT &&value)
Definition Pentest.h:133
bool NetworkTrafficConfigHasBeenSet() const
Definition Pentest.h:203
void SetAssets(AssetsT &&value)
Definition Pentest.h:110
const ReportFilters & GetReportFilters() const
Definition Pentest.h:313
const NetworkTrafficConfig & GetNetworkTrafficConfig() const
Definition Pentest.h:202
Pentest & WithCleanUpStrategy(CleanUpStrategy value)
Definition Pentest.h:242
const Aws::String & GetAgentSpaceId() const
Definition Pentest.h:71
const Aws::String & GetTitle() const
Definition Pentest.h:89
void SetCreatedAt(CreatedAtT &&value)
Definition Pentest.h:353
const VpcConfig & GetVpcConfig() const
Definition Pentest.h:184
void SetDisableManagedSkills(DisableManagedSkillsT &&value)
Definition Pentest.h:256
const Aws::String & GetServiceRole() const
Definition Pentest.h:148
void SetCleanUpStrategy(CleanUpStrategy value)
Definition Pentest.h:238
Pentest & WithReportDestination(ReportDestinationT &&value)
Definition Pentest.h:303
Pentest & WithCreatedAt(CreatedAtT &&value)
Definition Pentest.h:358
Pentest & WithLogConfig(LogConfigT &&value)
Definition Pentest.h:174
Pentest & WithCodeRemediationStrategy(CodeRemediationStrategy value)
Definition Pentest.h:226
void SetReportDestination(ReportDestinationT &&value)
Definition Pentest.h:298
bool ExcludeRiskTypesHasBeenSet() const
Definition Pentest.h:126
Pentest & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition Pentest.h:79
const Aws::Vector< RiskType > & GetExcludeRiskTypes() const
Definition Pentest.h:125
const ReportDestination & GetReportDestination() const
Definition Pentest.h:295
const Assets & GetAssets() const
Definition Pentest.h:107
Pentest & WithUpdatedAt(UpdatedAtT &&value)
Definition Pentest.h:376
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue