AWS SDK for C++

AWS SDK for C++ Version 1.11.935

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/TestScope.h>
22#include <aws/securityagent/model/VpcConfig.h>
23
24#include <utility>
25
26namespace Aws {
27namespace Utils {
28namespace Json {
29class JsonValue;
30class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace SecurityAgent {
34namespace Model {
35
43class Pentest {
44 public:
45 AWS_SECURITYAGENT_API Pentest() = default;
46 AWS_SECURITYAGENT_API Pentest(Aws::Utils::Json::JsonView jsonValue);
47 AWS_SECURITYAGENT_API Pentest& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
49
51
54 inline const Aws::String& GetPentestId() const { return m_pentestId; }
55 inline bool PentestIdHasBeenSet() const { return m_pentestIdHasBeenSet; }
56 template <typename PentestIdT = Aws::String>
57 void SetPentestId(PentestIdT&& value) {
58 m_pentestIdHasBeenSet = true;
59 m_pentestId = std::forward<PentestIdT>(value);
60 }
61 template <typename PentestIdT = Aws::String>
62 Pentest& WithPentestId(PentestIdT&& value) {
63 SetPentestId(std::forward<PentestIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
73 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
74 template <typename AgentSpaceIdT = Aws::String>
75 void SetAgentSpaceId(AgentSpaceIdT&& value) {
76 m_agentSpaceIdHasBeenSet = true;
77 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
78 }
79 template <typename AgentSpaceIdT = Aws::String>
80 Pentest& WithAgentSpaceId(AgentSpaceIdT&& value) {
81 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetTitle() const { return m_title; }
91 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
92 template <typename TitleT = Aws::String>
93 void SetTitle(TitleT&& value) {
94 m_titleHasBeenSet = true;
95 m_title = std::forward<TitleT>(value);
96 }
97 template <typename TitleT = Aws::String>
98 Pentest& WithTitle(TitleT&& value) {
99 SetTitle(std::forward<TitleT>(value));
100 return *this;
101 }
103
105
108 inline const Assets& GetAssets() const { return m_assets; }
109 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
110 template <typename AssetsT = Assets>
111 void SetAssets(AssetsT&& value) {
112 m_assetsHasBeenSet = true;
113 m_assets = std::forward<AssetsT>(value);
114 }
115 template <typename AssetsT = Assets>
116 Pentest& WithAssets(AssetsT&& value) {
117 SetAssets(std::forward<AssetsT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
127 inline bool ExcludeRiskTypesHasBeenSet() const { return m_excludeRiskTypesHasBeenSet; }
128 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
129 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
130 m_excludeRiskTypesHasBeenSet = true;
131 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
132 }
133 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
134 Pentest& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
135 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
136 return *this;
137 }
139 m_excludeRiskTypesHasBeenSet = true;
140 m_excludeRiskTypes.push_back(value);
141 return *this;
142 }
144
146
149 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
150 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
151 template <typename ServiceRoleT = Aws::String>
152 void SetServiceRole(ServiceRoleT&& value) {
153 m_serviceRoleHasBeenSet = true;
154 m_serviceRole = std::forward<ServiceRoleT>(value);
155 }
156 template <typename ServiceRoleT = Aws::String>
157 Pentest& WithServiceRole(ServiceRoleT&& value) {
158 SetServiceRole(std::forward<ServiceRoleT>(value));
159 return *this;
160 }
162
164
167 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
168 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
169 template <typename LogConfigT = CloudWatchLog>
170 void SetLogConfig(LogConfigT&& value) {
171 m_logConfigHasBeenSet = true;
172 m_logConfig = std::forward<LogConfigT>(value);
173 }
174 template <typename LogConfigT = CloudWatchLog>
175 Pentest& WithLogConfig(LogConfigT&& value) {
176 SetLogConfig(std::forward<LogConfigT>(value));
177 return *this;
178 }
180
182
185 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
186 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
187 template <typename VpcConfigT = VpcConfig>
188 void SetVpcConfig(VpcConfigT&& value) {
189 m_vpcConfigHasBeenSet = true;
190 m_vpcConfig = std::forward<VpcConfigT>(value);
191 }
192 template <typename VpcConfigT = VpcConfig>
193 Pentest& WithVpcConfig(VpcConfigT&& value) {
194 SetVpcConfig(std::forward<VpcConfigT>(value));
195 return *this;
196 }
198
200
203 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
204 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
205 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
206 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
207 m_networkTrafficConfigHasBeenSet = true;
208 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
209 }
210 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
211 Pentest& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
212 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
213 return *this;
214 }
216
218
221 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
222 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
224 m_codeRemediationStrategyHasBeenSet = true;
225 m_codeRemediationStrategy = value;
226 }
229 return *this;
230 }
232
234
237 inline CleanUpStrategy GetCleanUpStrategy() const { return m_cleanUpStrategy; }
238 inline bool CleanUpStrategyHasBeenSet() const { return m_cleanUpStrategyHasBeenSet; }
240 m_cleanUpStrategyHasBeenSet = true;
241 m_cleanUpStrategy = value;
242 }
244 SetCleanUpStrategy(value);
245 return *this;
246 }
248
250
254 inline const Aws::Vector<SkillType>& GetDisableManagedSkills() const { return m_disableManagedSkills; }
255 inline bool DisableManagedSkillsHasBeenSet() const { return m_disableManagedSkillsHasBeenSet; }
256 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
257 void SetDisableManagedSkills(DisableManagedSkillsT&& value) {
258 m_disableManagedSkillsHasBeenSet = true;
259 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
260 }
261 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
262 Pentest& WithDisableManagedSkills(DisableManagedSkillsT&& value) {
263 SetDisableManagedSkills(std::forward<DisableManagedSkillsT>(value));
264 return *this;
265 }
267 m_disableManagedSkillsHasBeenSet = true;
268 m_disableManagedSkills.push_back(value);
269 return *this;
270 }
272
274
279 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
280 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
281 inline void SetMaxTaskHours(double value) {
282 m_maxTaskHoursHasBeenSet = true;
283 m_maxTaskHours = value;
284 }
285 inline Pentest& WithMaxTaskHours(double value) {
286 SetMaxTaskHours(value);
287 return *this;
288 }
290
292
296 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
297 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
298 template <typename ReportDestinationT = ReportDestination>
299 void SetReportDestination(ReportDestinationT&& value) {
300 m_reportDestinationHasBeenSet = true;
301 m_reportDestination = std::forward<ReportDestinationT>(value);
302 }
303 template <typename ReportDestinationT = ReportDestination>
304 Pentest& WithReportDestination(ReportDestinationT&& value) {
305 SetReportDestination(std::forward<ReportDestinationT>(value));
306 return *this;
307 }
309
311
314 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
315 inline bool ReportFiltersHasBeenSet() const { return m_reportFiltersHasBeenSet; }
316 template <typename ReportFiltersT = ReportFilters>
317 void SetReportFilters(ReportFiltersT&& value) {
318 m_reportFiltersHasBeenSet = true;
319 m_reportFilters = std::forward<ReportFiltersT>(value);
320 }
321 template <typename ReportFiltersT = ReportFilters>
322 Pentest& WithReportFilters(ReportFiltersT&& value) {
323 SetReportFilters(std::forward<ReportFiltersT>(value));
324 return *this;
325 }
327
329
333 inline const CiCdConfiguration& GetCicdConfiguration() const { return m_cicdConfiguration; }
334 inline bool CicdConfigurationHasBeenSet() const { return m_cicdConfigurationHasBeenSet; }
335 template <typename CicdConfigurationT = CiCdConfiguration>
336 void SetCicdConfiguration(CicdConfigurationT&& value) {
337 m_cicdConfigurationHasBeenSet = true;
338 m_cicdConfiguration = std::forward<CicdConfigurationT>(value);
339 }
340 template <typename CicdConfigurationT = CiCdConfiguration>
341 Pentest& WithCicdConfiguration(CicdConfigurationT&& value) {
342 SetCicdConfiguration(std::forward<CicdConfigurationT>(value));
343 return *this;
344 }
346
348
349 inline const TestScope& GetTestScope() const { return m_testScope; }
350 inline bool TestScopeHasBeenSet() const { return m_testScopeHasBeenSet; }
351 template <typename TestScopeT = TestScope>
352 void SetTestScope(TestScopeT&& value) {
353 m_testScopeHasBeenSet = true;
354 m_testScope = std::forward<TestScopeT>(value);
355 }
356 template <typename TestScopeT = TestScope>
357 Pentest& WithTestScope(TestScopeT&& value) {
358 SetTestScope(std::forward<TestScopeT>(value));
359 return *this;
360 }
362
364
367 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
368 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
369 template <typename CreatedAtT = Aws::Utils::DateTime>
370 void SetCreatedAt(CreatedAtT&& value) {
371 m_createdAtHasBeenSet = true;
372 m_createdAt = std::forward<CreatedAtT>(value);
373 }
374 template <typename CreatedAtT = Aws::Utils::DateTime>
375 Pentest& WithCreatedAt(CreatedAtT&& value) {
376 SetCreatedAt(std::forward<CreatedAtT>(value));
377 return *this;
378 }
380
382
385 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
386 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
387 template <typename UpdatedAtT = Aws::Utils::DateTime>
388 void SetUpdatedAt(UpdatedAtT&& value) {
389 m_updatedAtHasBeenSet = true;
390 m_updatedAt = std::forward<UpdatedAtT>(value);
391 }
392 template <typename UpdatedAtT = Aws::Utils::DateTime>
393 Pentest& WithUpdatedAt(UpdatedAtT&& value) {
394 SetUpdatedAt(std::forward<UpdatedAtT>(value));
395 return *this;
396 }
398 private:
399 Aws::String m_pentestId;
400
401 Aws::String m_agentSpaceId;
402
403 Aws::String m_title;
404
405 Assets m_assets;
406
407 Aws::Vector<RiskType> m_excludeRiskTypes;
408
409 Aws::String m_serviceRole;
410
411 CloudWatchLog m_logConfig;
412
413 VpcConfig m_vpcConfig;
414
415 NetworkTrafficConfig m_networkTrafficConfig;
416
418
419 CleanUpStrategy m_cleanUpStrategy{CleanUpStrategy::NOT_SET};
420
421 Aws::Vector<SkillType> m_disableManagedSkills;
422
423 double m_maxTaskHours{0.0};
424
425 ReportDestination m_reportDestination;
426
427 ReportFilters m_reportFilters;
428
429 CiCdConfiguration m_cicdConfiguration;
430
431 TestScope m_testScope;
432
433 Aws::Utils::DateTime m_createdAt{};
434
435 Aws::Utils::DateTime m_updatedAt{};
436 bool m_pentestIdHasBeenSet = false;
437 bool m_agentSpaceIdHasBeenSet = false;
438 bool m_titleHasBeenSet = false;
439 bool m_assetsHasBeenSet = false;
440 bool m_excludeRiskTypesHasBeenSet = false;
441 bool m_serviceRoleHasBeenSet = false;
442 bool m_logConfigHasBeenSet = false;
443 bool m_vpcConfigHasBeenSet = false;
444 bool m_networkTrafficConfigHasBeenSet = false;
445 bool m_codeRemediationStrategyHasBeenSet = false;
446 bool m_cleanUpStrategyHasBeenSet = false;
447 bool m_disableManagedSkillsHasBeenSet = false;
448 bool m_maxTaskHoursHasBeenSet = false;
449 bool m_reportDestinationHasBeenSet = false;
450 bool m_reportFiltersHasBeenSet = false;
451 bool m_cicdConfigurationHasBeenSet = false;
452 bool m_testScopeHasBeenSet = false;
453 bool m_createdAtHasBeenSet = false;
454 bool m_updatedAtHasBeenSet = false;
455};
456
457} // namespace Model
458} // namespace SecurityAgent
459} // namespace Aws
Pentest & WithVpcConfig(VpcConfigT &&value)
Definition Pentest.h:193
void SetNetworkTrafficConfig(NetworkTrafficConfigT &&value)
Definition Pentest.h:206
Pentest & WithPentestId(PentestIdT &&value)
Definition Pentest.h:62
void SetPentestId(PentestIdT &&value)
Definition Pentest.h:57
Pentest & WithDisableManagedSkills(DisableManagedSkillsT &&value)
Definition Pentest.h:262
const Aws::Vector< SkillType > & GetDisableManagedSkills() const
Definition Pentest.h:254
bool CicdConfigurationHasBeenSet() const
Definition Pentest.h:334
const TestScope & GetTestScope() const
Definition Pentest.h:349
Pentest & AddExcludeRiskTypes(RiskType value)
Definition Pentest.h:138
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
Definition Pentest.h:223
void SetLogConfig(LogConfigT &&value)
Definition Pentest.h:170
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Pentest.h:367
void SetExcludeRiskTypes(ExcludeRiskTypesT &&value)
Definition Pentest.h:129
CleanUpStrategy GetCleanUpStrategy() const
Definition Pentest.h:237
AWS_SECURITYAGENT_API Pentest & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ReportDestinationHasBeenSet() const
Definition Pentest.h:297
const CiCdConfiguration & GetCicdConfiguration() const
Definition Pentest.h:333
void SetUpdatedAt(UpdatedAtT &&value)
Definition Pentest.h:388
void SetMaxTaskHours(double value)
Definition Pentest.h:281
Pentest & WithAssets(AssetsT &&value)
Definition Pentest.h:116
const CloudWatchLog & GetLogConfig() const
Definition Pentest.h:167
void SetTestScope(TestScopeT &&value)
Definition Pentest.h:352
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition Pentest.h:75
Pentest & WithServiceRole(ServiceRoleT &&value)
Definition Pentest.h:157
Pentest & WithNetworkTrafficConfig(NetworkTrafficConfigT &&value)
Definition Pentest.h:211
void SetServiceRole(ServiceRoleT &&value)
Definition Pentest.h:152
bool DisableManagedSkillsHasBeenSet() const
Definition Pentest.h:255
void SetCicdConfiguration(CicdConfigurationT &&value)
Definition Pentest.h:336
AWS_SECURITYAGENT_API Pentest()=default
void SetTitle(TitleT &&value)
Definition Pentest.h:93
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
Pentest & WithReportFilters(ReportFiltersT &&value)
Definition Pentest.h:322
Pentest & AddDisableManagedSkills(SkillType value)
Definition Pentest.h:266
AWS_SECURITYAGENT_API Pentest(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPentestId() const
Definition Pentest.h:54
void SetReportFilters(ReportFiltersT &&value)
Definition Pentest.h:317
CodeRemediationStrategy GetCodeRemediationStrategy() const
Definition Pentest.h:221
Pentest & WithCicdConfiguration(CicdConfigurationT &&value)
Definition Pentest.h:341
void SetVpcConfig(VpcConfigT &&value)
Definition Pentest.h:188
Pentest & WithTestScope(TestScopeT &&value)
Definition Pentest.h:357
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Pentest.h:385
Pentest & WithTitle(TitleT &&value)
Definition Pentest.h:98
Pentest & WithMaxTaskHours(double value)
Definition Pentest.h:285
bool CodeRemediationStrategyHasBeenSet() const
Definition Pentest.h:222
Pentest & WithExcludeRiskTypes(ExcludeRiskTypesT &&value)
Definition Pentest.h:134
bool NetworkTrafficConfigHasBeenSet() const
Definition Pentest.h:204
void SetAssets(AssetsT &&value)
Definition Pentest.h:111
const ReportFilters & GetReportFilters() const
Definition Pentest.h:314
const NetworkTrafficConfig & GetNetworkTrafficConfig() const
Definition Pentest.h:203
Pentest & WithCleanUpStrategy(CleanUpStrategy value)
Definition Pentest.h:243
const Aws::String & GetAgentSpaceId() const
Definition Pentest.h:72
const Aws::String & GetTitle() const
Definition Pentest.h:90
void SetCreatedAt(CreatedAtT &&value)
Definition Pentest.h:370
const VpcConfig & GetVpcConfig() const
Definition Pentest.h:185
void SetDisableManagedSkills(DisableManagedSkillsT &&value)
Definition Pentest.h:257
const Aws::String & GetServiceRole() const
Definition Pentest.h:149
void SetCleanUpStrategy(CleanUpStrategy value)
Definition Pentest.h:239
Pentest & WithReportDestination(ReportDestinationT &&value)
Definition Pentest.h:304
Pentest & WithCreatedAt(CreatedAtT &&value)
Definition Pentest.h:375
Pentest & WithLogConfig(LogConfigT &&value)
Definition Pentest.h:175
Pentest & WithCodeRemediationStrategy(CodeRemediationStrategy value)
Definition Pentest.h:227
void SetReportDestination(ReportDestinationT &&value)
Definition Pentest.h:299
bool ExcludeRiskTypesHasBeenSet() const
Definition Pentest.h:127
Pentest & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition Pentest.h:80
const Aws::Vector< RiskType > & GetExcludeRiskTypes() const
Definition Pentest.h:126
const ReportDestination & GetReportDestination() const
Definition Pentest.h:296
const Assets & GetAssets() const
Definition Pentest.h:108
Pentest & WithUpdatedAt(UpdatedAtT &&value)
Definition Pentest.h:393
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue