AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PentestJob.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/Actor.h>
12#include <aws/securityagent/model/CiCdConfiguration.h>
13#include <aws/securityagent/model/CleanUpStrategy.h>
14#include <aws/securityagent/model/ClientCertificate.h>
15#include <aws/securityagent/model/CloudWatchLog.h>
16#include <aws/securityagent/model/CodeRemediationStrategy.h>
17#include <aws/securityagent/model/DocumentInfo.h>
18#include <aws/securityagent/model/Endpoint.h>
19#include <aws/securityagent/model/ErrorInformation.h>
20#include <aws/securityagent/model/ExecutionContext.h>
21#include <aws/securityagent/model/IntegratedRepository.h>
22#include <aws/securityagent/model/JobStatus.h>
23#include <aws/securityagent/model/JobType.h>
24#include <aws/securityagent/model/NetworkTrafficConfig.h>
25#include <aws/securityagent/model/ReportDestination.h>
26#include <aws/securityagent/model/RiskType.h>
27#include <aws/securityagent/model/ScopeChange.h>
28#include <aws/securityagent/model/ScopeResult.h>
29#include <aws/securityagent/model/SkillType.h>
30#include <aws/securityagent/model/SourceCodeRepository.h>
31#include <aws/securityagent/model/Step.h>
32#include <aws/securityagent/model/TestScope.h>
33#include <aws/securityagent/model/TrustedCaCertificate.h>
34#include <aws/securityagent/model/VpcConfig.h>
35
36#include <utility>
37
38namespace Aws {
39namespace Utils {
40namespace Json {
41class JsonValue;
42class JsonView;
43} // namespace Json
44} // namespace Utils
45namespace SecurityAgent {
46namespace Model {
47
56 public:
57 AWS_SECURITYAGENT_API PentestJob() = default;
58 AWS_SECURITYAGENT_API PentestJob(Aws::Utils::Json::JsonView jsonValue);
59 AWS_SECURITYAGENT_API PentestJob& operator=(Aws::Utils::Json::JsonView jsonValue);
60 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
61
63
66 inline const Aws::String& GetPentestJobId() const { return m_pentestJobId; }
67 inline bool PentestJobIdHasBeenSet() const { return m_pentestJobIdHasBeenSet; }
68 template <typename PentestJobIdT = Aws::String>
69 void SetPentestJobId(PentestJobIdT&& value) {
70 m_pentestJobIdHasBeenSet = true;
71 m_pentestJobId = std::forward<PentestJobIdT>(value);
72 }
73 template <typename PentestJobIdT = Aws::String>
74 PentestJob& WithPentestJobId(PentestJobIdT&& value) {
75 SetPentestJobId(std::forward<PentestJobIdT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetPentestId() const { return m_pentestId; }
85 inline bool PentestIdHasBeenSet() const { return m_pentestIdHasBeenSet; }
86 template <typename PentestIdT = Aws::String>
87 void SetPentestId(PentestIdT&& value) {
88 m_pentestIdHasBeenSet = true;
89 m_pentestId = std::forward<PentestIdT>(value);
90 }
91 template <typename PentestIdT = Aws::String>
92 PentestJob& WithPentestId(PentestIdT&& value) {
93 SetPentestId(std::forward<PentestIdT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetTitle() const { return m_title; }
103 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
104 template <typename TitleT = Aws::String>
105 void SetTitle(TitleT&& value) {
106 m_titleHasBeenSet = true;
107 m_title = std::forward<TitleT>(value);
108 }
109 template <typename TitleT = Aws::String>
110 PentestJob& WithTitle(TitleT&& value) {
111 SetTitle(std::forward<TitleT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetOverview() const { return m_overview; }
121 inline bool OverviewHasBeenSet() const { return m_overviewHasBeenSet; }
122 template <typename OverviewT = Aws::String>
123 void SetOverview(OverviewT&& value) {
124 m_overviewHasBeenSet = true;
125 m_overview = std::forward<OverviewT>(value);
126 }
127 template <typename OverviewT = Aws::String>
128 PentestJob& WithOverview(OverviewT&& value) {
129 SetOverview(std::forward<OverviewT>(value));
130 return *this;
131 }
133
135
138 inline JobStatus GetStatus() const { return m_status; }
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 inline void SetStatus(JobStatus value) {
141 m_statusHasBeenSet = true;
142 m_status = value;
143 }
145 SetStatus(value);
146 return *this;
147 }
149
151
154 inline const Aws::Vector<Endpoint>& GetEndpoints() const { return m_endpoints; }
155 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
156 template <typename EndpointsT = Aws::Vector<Endpoint>>
157 void SetEndpoints(EndpointsT&& value) {
158 m_endpointsHasBeenSet = true;
159 m_endpoints = std::forward<EndpointsT>(value);
160 }
161 template <typename EndpointsT = Aws::Vector<Endpoint>>
162 PentestJob& WithEndpoints(EndpointsT&& value) {
163 SetEndpoints(std::forward<EndpointsT>(value));
164 return *this;
165 }
166 template <typename EndpointsT = Endpoint>
167 PentestJob& AddEndpoints(EndpointsT&& value) {
168 m_endpointsHasBeenSet = true;
169 m_endpoints.emplace_back(std::forward<EndpointsT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Vector<Actor>& GetActors() const { return m_actors; }
179 inline bool ActorsHasBeenSet() const { return m_actorsHasBeenSet; }
180 template <typename ActorsT = Aws::Vector<Actor>>
181 void SetActors(ActorsT&& value) {
182 m_actorsHasBeenSet = true;
183 m_actors = std::forward<ActorsT>(value);
184 }
185 template <typename ActorsT = Aws::Vector<Actor>>
186 PentestJob& WithActors(ActorsT&& value) {
187 SetActors(std::forward<ActorsT>(value));
188 return *this;
189 }
190 template <typename ActorsT = Actor>
191 PentestJob& AddActors(ActorsT&& value) {
192 m_actorsHasBeenSet = true;
193 m_actors.emplace_back(std::forward<ActorsT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::Vector<DocumentInfo>& GetDocuments() const { return m_documents; }
203 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
204 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
205 void SetDocuments(DocumentsT&& value) {
206 m_documentsHasBeenSet = true;
207 m_documents = std::forward<DocumentsT>(value);
208 }
209 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
210 PentestJob& WithDocuments(DocumentsT&& value) {
211 SetDocuments(std::forward<DocumentsT>(value));
212 return *this;
213 }
214 template <typename DocumentsT = DocumentInfo>
215 PentestJob& AddDocuments(DocumentsT&& value) {
216 m_documentsHasBeenSet = true;
217 m_documents.emplace_back(std::forward<DocumentsT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Vector<SourceCodeRepository>& GetSourceCode() const { return m_sourceCode; }
227 inline bool SourceCodeHasBeenSet() const { return m_sourceCodeHasBeenSet; }
228 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
229 void SetSourceCode(SourceCodeT&& value) {
230 m_sourceCodeHasBeenSet = true;
231 m_sourceCode = std::forward<SourceCodeT>(value);
232 }
233 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
234 PentestJob& WithSourceCode(SourceCodeT&& value) {
235 SetSourceCode(std::forward<SourceCodeT>(value));
236 return *this;
237 }
238 template <typename SourceCodeT = SourceCodeRepository>
239 PentestJob& AddSourceCode(SourceCodeT&& value) {
240 m_sourceCodeHasBeenSet = true;
241 m_sourceCode.emplace_back(std::forward<SourceCodeT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::Vector<Endpoint>& GetExcludePaths() const { return m_excludePaths; }
251 inline bool ExcludePathsHasBeenSet() const { return m_excludePathsHasBeenSet; }
252 template <typename ExcludePathsT = Aws::Vector<Endpoint>>
253 void SetExcludePaths(ExcludePathsT&& value) {
254 m_excludePathsHasBeenSet = true;
255 m_excludePaths = std::forward<ExcludePathsT>(value);
256 }
257 template <typename ExcludePathsT = Aws::Vector<Endpoint>>
258 PentestJob& WithExcludePaths(ExcludePathsT&& value) {
259 SetExcludePaths(std::forward<ExcludePathsT>(value));
260 return *this;
261 }
262 template <typename ExcludePathsT = Endpoint>
263 PentestJob& AddExcludePaths(ExcludePathsT&& value) {
264 m_excludePathsHasBeenSet = true;
265 m_excludePaths.emplace_back(std::forward<ExcludePathsT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::Vector<Endpoint>& GetAllowedDomains() const { return m_allowedDomains; }
275 inline bool AllowedDomainsHasBeenSet() const { return m_allowedDomainsHasBeenSet; }
276 template <typename AllowedDomainsT = Aws::Vector<Endpoint>>
277 void SetAllowedDomains(AllowedDomainsT&& value) {
278 m_allowedDomainsHasBeenSet = true;
279 m_allowedDomains = std::forward<AllowedDomainsT>(value);
280 }
281 template <typename AllowedDomainsT = Aws::Vector<Endpoint>>
282 PentestJob& WithAllowedDomains(AllowedDomainsT&& value) {
283 SetAllowedDomains(std::forward<AllowedDomainsT>(value));
284 return *this;
285 }
286 template <typename AllowedDomainsT = Endpoint>
287 PentestJob& AddAllowedDomains(AllowedDomainsT&& value) {
288 m_allowedDomainsHasBeenSet = true;
289 m_allowedDomains.emplace_back(std::forward<AllowedDomainsT>(value));
290 return *this;
291 }
293
295
298 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
299 inline bool ExcludeRiskTypesHasBeenSet() const { return m_excludeRiskTypesHasBeenSet; }
300 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
301 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
302 m_excludeRiskTypesHasBeenSet = true;
303 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
304 }
305 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
306 PentestJob& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
307 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
308 return *this;
309 }
311 m_excludeRiskTypesHasBeenSet = true;
312 m_excludeRiskTypes.push_back(value);
313 return *this;
314 }
316
318
321 inline const Aws::Vector<Step>& GetSteps() const { return m_steps; }
322 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
323 template <typename StepsT = Aws::Vector<Step>>
324 void SetSteps(StepsT&& value) {
325 m_stepsHasBeenSet = true;
326 m_steps = std::forward<StepsT>(value);
327 }
328 template <typename StepsT = Aws::Vector<Step>>
329 PentestJob& WithSteps(StepsT&& value) {
330 SetSteps(std::forward<StepsT>(value));
331 return *this;
332 }
333 template <typename StepsT = Step>
334 PentestJob& AddSteps(StepsT&& value) {
335 m_stepsHasBeenSet = true;
336 m_steps.emplace_back(std::forward<StepsT>(value));
337 return *this;
338 }
340
342
345 inline const Aws::Vector<ExecutionContext>& GetExecutionContext() const { return m_executionContext; }
346 inline bool ExecutionContextHasBeenSet() const { return m_executionContextHasBeenSet; }
347 template <typename ExecutionContextT = Aws::Vector<ExecutionContext>>
348 void SetExecutionContext(ExecutionContextT&& value) {
349 m_executionContextHasBeenSet = true;
350 m_executionContext = std::forward<ExecutionContextT>(value);
351 }
352 template <typename ExecutionContextT = Aws::Vector<ExecutionContext>>
353 PentestJob& WithExecutionContext(ExecutionContextT&& value) {
354 SetExecutionContext(std::forward<ExecutionContextT>(value));
355 return *this;
356 }
357 template <typename ExecutionContextT = ExecutionContext>
358 PentestJob& AddExecutionContext(ExecutionContextT&& value) {
359 m_executionContextHasBeenSet = true;
360 m_executionContext.emplace_back(std::forward<ExecutionContextT>(value));
361 return *this;
362 }
364
366
369 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
370 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
371 template <typename ServiceRoleT = Aws::String>
372 void SetServiceRole(ServiceRoleT&& value) {
373 m_serviceRoleHasBeenSet = true;
374 m_serviceRole = std::forward<ServiceRoleT>(value);
375 }
376 template <typename ServiceRoleT = Aws::String>
377 PentestJob& WithServiceRole(ServiceRoleT&& value) {
378 SetServiceRole(std::forward<ServiceRoleT>(value));
379 return *this;
380 }
382
384
387 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
388 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
389 template <typename LogConfigT = CloudWatchLog>
390 void SetLogConfig(LogConfigT&& value) {
391 m_logConfigHasBeenSet = true;
392 m_logConfig = std::forward<LogConfigT>(value);
393 }
394 template <typename LogConfigT = CloudWatchLog>
395 PentestJob& WithLogConfig(LogConfigT&& value) {
396 SetLogConfig(std::forward<LogConfigT>(value));
397 return *this;
398 }
400
402
405 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
406 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
407 template <typename VpcConfigT = VpcConfig>
408 void SetVpcConfig(VpcConfigT&& value) {
409 m_vpcConfigHasBeenSet = true;
410 m_vpcConfig = std::forward<VpcConfigT>(value);
411 }
412 template <typename VpcConfigT = VpcConfig>
413 PentestJob& WithVpcConfig(VpcConfigT&& value) {
414 SetVpcConfig(std::forward<VpcConfigT>(value));
415 return *this;
416 }
418
420
423 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
424 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
425 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
426 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
427 m_networkTrafficConfigHasBeenSet = true;
428 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
429 }
430 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
431 PentestJob& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
432 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
433 return *this;
434 }
436
438
441 inline const ErrorInformation& GetErrorInformation() const { return m_errorInformation; }
442 inline bool ErrorInformationHasBeenSet() const { return m_errorInformationHasBeenSet; }
443 template <typename ErrorInformationT = ErrorInformation>
444 void SetErrorInformation(ErrorInformationT&& value) {
445 m_errorInformationHasBeenSet = true;
446 m_errorInformation = std::forward<ErrorInformationT>(value);
447 }
448 template <typename ErrorInformationT = ErrorInformation>
449 PentestJob& WithErrorInformation(ErrorInformationT&& value) {
450 SetErrorInformation(std::forward<ErrorInformationT>(value));
451 return *this;
452 }
454
456
459 inline const Aws::Vector<IntegratedRepository>& GetIntegratedRepositories() const { return m_integratedRepositories; }
460 inline bool IntegratedRepositoriesHasBeenSet() const { return m_integratedRepositoriesHasBeenSet; }
461 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
462 void SetIntegratedRepositories(IntegratedRepositoriesT&& value) {
463 m_integratedRepositoriesHasBeenSet = true;
464 m_integratedRepositories = std::forward<IntegratedRepositoriesT>(value);
465 }
466 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
467 PentestJob& WithIntegratedRepositories(IntegratedRepositoriesT&& value) {
468 SetIntegratedRepositories(std::forward<IntegratedRepositoriesT>(value));
469 return *this;
470 }
471 template <typename IntegratedRepositoriesT = IntegratedRepository>
472 PentestJob& AddIntegratedRepositories(IntegratedRepositoriesT&& value) {
473 m_integratedRepositoriesHasBeenSet = true;
474 m_integratedRepositories.emplace_back(std::forward<IntegratedRepositoriesT>(value));
475 return *this;
476 }
478
480
484 inline const Aws::Vector<TrustedCaCertificate>& GetTrustedCaCertificates() const { return m_trustedCaCertificates; }
485 inline bool TrustedCaCertificatesHasBeenSet() const { return m_trustedCaCertificatesHasBeenSet; }
486 template <typename TrustedCaCertificatesT = Aws::Vector<TrustedCaCertificate>>
487 void SetTrustedCaCertificates(TrustedCaCertificatesT&& value) {
488 m_trustedCaCertificatesHasBeenSet = true;
489 m_trustedCaCertificates = std::forward<TrustedCaCertificatesT>(value);
490 }
491 template <typename TrustedCaCertificatesT = Aws::Vector<TrustedCaCertificate>>
492 PentestJob& WithTrustedCaCertificates(TrustedCaCertificatesT&& value) {
493 SetTrustedCaCertificates(std::forward<TrustedCaCertificatesT>(value));
494 return *this;
495 }
496 template <typename TrustedCaCertificatesT = TrustedCaCertificate>
497 PentestJob& AddTrustedCaCertificates(TrustedCaCertificatesT&& value) {
498 m_trustedCaCertificatesHasBeenSet = true;
499 m_trustedCaCertificates.emplace_back(std::forward<TrustedCaCertificatesT>(value));
500 return *this;
501 }
503
505
509 inline const Aws::Vector<ClientCertificate>& GetClientCertificates() const { return m_clientCertificates; }
510 inline bool ClientCertificatesHasBeenSet() const { return m_clientCertificatesHasBeenSet; }
511 template <typename ClientCertificatesT = Aws::Vector<ClientCertificate>>
512 void SetClientCertificates(ClientCertificatesT&& value) {
513 m_clientCertificatesHasBeenSet = true;
514 m_clientCertificates = std::forward<ClientCertificatesT>(value);
515 }
516 template <typename ClientCertificatesT = Aws::Vector<ClientCertificate>>
517 PentestJob& WithClientCertificates(ClientCertificatesT&& value) {
518 SetClientCertificates(std::forward<ClientCertificatesT>(value));
519 return *this;
520 }
521 template <typename ClientCertificatesT = ClientCertificate>
522 PentestJob& AddClientCertificates(ClientCertificatesT&& value) {
523 m_clientCertificatesHasBeenSet = true;
524 m_clientCertificates.emplace_back(std::forward<ClientCertificatesT>(value));
525 return *this;
526 }
528
530
533 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
534 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
536 m_codeRemediationStrategyHasBeenSet = true;
537 m_codeRemediationStrategy = value;
538 }
544
546
549 inline CleanUpStrategy GetCleanUpStrategy() const { return m_cleanUpStrategy; }
550 inline bool CleanUpStrategyHasBeenSet() const { return m_cleanUpStrategyHasBeenSet; }
552 m_cleanUpStrategyHasBeenSet = true;
553 m_cleanUpStrategy = value;
554 }
556 SetCleanUpStrategy(value);
557 return *this;
558 }
560
562
566 inline const Aws::Vector<SkillType>& GetDisableManagedSkills() const { return m_disableManagedSkills; }
567 inline bool DisableManagedSkillsHasBeenSet() const { return m_disableManagedSkillsHasBeenSet; }
568 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
569 void SetDisableManagedSkills(DisableManagedSkillsT&& value) {
570 m_disableManagedSkillsHasBeenSet = true;
571 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
572 }
573 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
574 PentestJob& WithDisableManagedSkills(DisableManagedSkillsT&& value) {
575 SetDisableManagedSkills(std::forward<DisableManagedSkillsT>(value));
576 return *this;
577 }
579 m_disableManagedSkillsHasBeenSet = true;
580 m_disableManagedSkills.push_back(value);
581 return *this;
582 }
584
586
590 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
591 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
592 inline void SetMaxTaskHours(double value) {
593 m_maxTaskHoursHasBeenSet = true;
594 m_maxTaskHours = value;
595 }
596 inline PentestJob& WithMaxTaskHours(double value) {
597 SetMaxTaskHours(value);
598 return *this;
599 }
601
603
607 inline JobType GetJobType() const { return m_jobType; }
608 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
609 inline void SetJobType(JobType value) {
610 m_jobTypeHasBeenSet = true;
611 m_jobType = value;
612 }
614 SetJobType(value);
615 return *this;
616 }
618
620
624 inline const Aws::Vector<Aws::String>& GetSelectedFindingIds() const { return m_selectedFindingIds; }
625 inline bool SelectedFindingIdsHasBeenSet() const { return m_selectedFindingIdsHasBeenSet; }
626 template <typename SelectedFindingIdsT = Aws::Vector<Aws::String>>
627 void SetSelectedFindingIds(SelectedFindingIdsT&& value) {
628 m_selectedFindingIdsHasBeenSet = true;
629 m_selectedFindingIds = std::forward<SelectedFindingIdsT>(value);
630 }
631 template <typename SelectedFindingIdsT = Aws::Vector<Aws::String>>
632 PentestJob& WithSelectedFindingIds(SelectedFindingIdsT&& value) {
633 SetSelectedFindingIds(std::forward<SelectedFindingIdsT>(value));
634 return *this;
635 }
636 template <typename SelectedFindingIdsT = Aws::String>
637 PentestJob& AddSelectedFindingIds(SelectedFindingIdsT&& value) {
638 m_selectedFindingIdsHasBeenSet = true;
639 m_selectedFindingIds.emplace_back(std::forward<SelectedFindingIdsT>(value));
640 return *this;
641 }
643
645
649 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
650 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
651 template <typename ReportDestinationT = ReportDestination>
652 void SetReportDestination(ReportDestinationT&& value) {
653 m_reportDestinationHasBeenSet = true;
654 m_reportDestination = std::forward<ReportDestinationT>(value);
655 }
656 template <typename ReportDestinationT = ReportDestination>
657 PentestJob& WithReportDestination(ReportDestinationT&& value) {
658 SetReportDestination(std::forward<ReportDestinationT>(value));
659 return *this;
660 }
662
664
667 inline const Aws::String& GetReportUrl() const { return m_reportUrl; }
668 inline bool ReportUrlHasBeenSet() const { return m_reportUrlHasBeenSet; }
669 template <typename ReportUrlT = Aws::String>
670 void SetReportUrl(ReportUrlT&& value) {
671 m_reportUrlHasBeenSet = true;
672 m_reportUrl = std::forward<ReportUrlT>(value);
673 }
674 template <typename ReportUrlT = Aws::String>
675 PentestJob& WithReportUrl(ReportUrlT&& value) {
676 SetReportUrl(std::forward<ReportUrlT>(value));
677 return *this;
678 }
680
682
686 inline const ScopeResult& GetScopeResult() const { return m_scopeResult; }
687 inline bool ScopeResultHasBeenSet() const { return m_scopeResultHasBeenSet; }
688 template <typename ScopeResultT = ScopeResult>
689 void SetScopeResult(ScopeResultT&& value) {
690 m_scopeResultHasBeenSet = true;
691 m_scopeResult = std::forward<ScopeResultT>(value);
692 }
693 template <typename ScopeResultT = ScopeResult>
694 PentestJob& WithScopeResult(ScopeResultT&& value) {
695 SetScopeResult(std::forward<ScopeResultT>(value));
696 return *this;
697 }
699
701
705 inline const Aws::Vector<ScopeChange>& GetScopeChanges() const { return m_scopeChanges; }
706 inline bool ScopeChangesHasBeenSet() const { return m_scopeChangesHasBeenSet; }
707 template <typename ScopeChangesT = Aws::Vector<ScopeChange>>
708 void SetScopeChanges(ScopeChangesT&& value) {
709 m_scopeChangesHasBeenSet = true;
710 m_scopeChanges = std::forward<ScopeChangesT>(value);
711 }
712 template <typename ScopeChangesT = Aws::Vector<ScopeChange>>
713 PentestJob& WithScopeChanges(ScopeChangesT&& value) {
714 SetScopeChanges(std::forward<ScopeChangesT>(value));
715 return *this;
716 }
717 template <typename ScopeChangesT = ScopeChange>
718 PentestJob& AddScopeChanges(ScopeChangesT&& value) {
719 m_scopeChangesHasBeenSet = true;
720 m_scopeChanges.emplace_back(std::forward<ScopeChangesT>(value));
721 return *this;
722 }
724
726
727 inline const CiCdConfiguration& GetCicdConfiguration() const { return m_cicdConfiguration; }
728 inline bool CicdConfigurationHasBeenSet() const { return m_cicdConfigurationHasBeenSet; }
729 template <typename CicdConfigurationT = CiCdConfiguration>
730 void SetCicdConfiguration(CicdConfigurationT&& value) {
731 m_cicdConfigurationHasBeenSet = true;
732 m_cicdConfiguration = std::forward<CicdConfigurationT>(value);
733 }
734 template <typename CicdConfigurationT = CiCdConfiguration>
735 PentestJob& WithCicdConfiguration(CicdConfigurationT&& value) {
736 SetCicdConfiguration(std::forward<CicdConfigurationT>(value));
737 return *this;
738 }
740
742
743 inline const TestScope& GetTestScope() const { return m_testScope; }
744 inline bool TestScopeHasBeenSet() const { return m_testScopeHasBeenSet; }
745 template <typename TestScopeT = TestScope>
746 void SetTestScope(TestScopeT&& value) {
747 m_testScopeHasBeenSet = true;
748 m_testScope = std::forward<TestScopeT>(value);
749 }
750 template <typename TestScopeT = TestScope>
751 PentestJob& WithTestScope(TestScopeT&& value) {
752 SetTestScope(std::forward<TestScopeT>(value));
753 return *this;
754 }
756
758
763 inline const Aws::String& GetVersion() const { return m_version; }
764 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
765 template <typename VersionT = Aws::String>
766 void SetVersion(VersionT&& value) {
767 m_versionHasBeenSet = true;
768 m_version = std::forward<VersionT>(value);
769 }
770 template <typename VersionT = Aws::String>
771 PentestJob& WithVersion(VersionT&& value) {
772 SetVersion(std::forward<VersionT>(value));
773 return *this;
774 }
776
778
781 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
782 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
783 template <typename CreatedAtT = Aws::Utils::DateTime>
784 void SetCreatedAt(CreatedAtT&& value) {
785 m_createdAtHasBeenSet = true;
786 m_createdAt = std::forward<CreatedAtT>(value);
787 }
788 template <typename CreatedAtT = Aws::Utils::DateTime>
789 PentestJob& WithCreatedAt(CreatedAtT&& value) {
790 SetCreatedAt(std::forward<CreatedAtT>(value));
791 return *this;
792 }
794
796
799 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
800 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
801 template <typename UpdatedAtT = Aws::Utils::DateTime>
802 void SetUpdatedAt(UpdatedAtT&& value) {
803 m_updatedAtHasBeenSet = true;
804 m_updatedAt = std::forward<UpdatedAtT>(value);
805 }
806 template <typename UpdatedAtT = Aws::Utils::DateTime>
807 PentestJob& WithUpdatedAt(UpdatedAtT&& value) {
808 SetUpdatedAt(std::forward<UpdatedAtT>(value));
809 return *this;
810 }
812 private:
813 Aws::String m_pentestJobId;
814
815 Aws::String m_pentestId;
816
817 Aws::String m_title;
818
819 Aws::String m_overview;
820
822
823 Aws::Vector<Endpoint> m_endpoints;
824
825 Aws::Vector<Actor> m_actors;
826
827 Aws::Vector<DocumentInfo> m_documents;
828
830
831 Aws::Vector<Endpoint> m_excludePaths;
832
833 Aws::Vector<Endpoint> m_allowedDomains;
834
835 Aws::Vector<RiskType> m_excludeRiskTypes;
836
837 Aws::Vector<Step> m_steps;
838
839 Aws::Vector<ExecutionContext> m_executionContext;
840
841 Aws::String m_serviceRole;
842
843 CloudWatchLog m_logConfig;
844
845 VpcConfig m_vpcConfig;
846
847 NetworkTrafficConfig m_networkTrafficConfig;
848
849 ErrorInformation m_errorInformation;
850
851 Aws::Vector<IntegratedRepository> m_integratedRepositories;
852
853 Aws::Vector<TrustedCaCertificate> m_trustedCaCertificates;
854
855 Aws::Vector<ClientCertificate> m_clientCertificates;
856
858
859 CleanUpStrategy m_cleanUpStrategy{CleanUpStrategy::NOT_SET};
860
861 Aws::Vector<SkillType> m_disableManagedSkills;
862
863 double m_maxTaskHours{0.0};
864
865 JobType m_jobType{JobType::NOT_SET};
866
867 Aws::Vector<Aws::String> m_selectedFindingIds;
868
869 ReportDestination m_reportDestination;
870
871 Aws::String m_reportUrl;
872
873 ScopeResult m_scopeResult;
874
875 Aws::Vector<ScopeChange> m_scopeChanges;
876
877 CiCdConfiguration m_cicdConfiguration;
878
879 TestScope m_testScope;
880
881 Aws::String m_version;
882
883 Aws::Utils::DateTime m_createdAt{};
884
885 Aws::Utils::DateTime m_updatedAt{};
886 bool m_pentestJobIdHasBeenSet = false;
887 bool m_pentestIdHasBeenSet = false;
888 bool m_titleHasBeenSet = false;
889 bool m_overviewHasBeenSet = false;
890 bool m_statusHasBeenSet = false;
891 bool m_endpointsHasBeenSet = false;
892 bool m_actorsHasBeenSet = false;
893 bool m_documentsHasBeenSet = false;
894 bool m_sourceCodeHasBeenSet = false;
895 bool m_excludePathsHasBeenSet = false;
896 bool m_allowedDomainsHasBeenSet = false;
897 bool m_excludeRiskTypesHasBeenSet = false;
898 bool m_stepsHasBeenSet = false;
899 bool m_executionContextHasBeenSet = false;
900 bool m_serviceRoleHasBeenSet = false;
901 bool m_logConfigHasBeenSet = false;
902 bool m_vpcConfigHasBeenSet = false;
903 bool m_networkTrafficConfigHasBeenSet = false;
904 bool m_errorInformationHasBeenSet = false;
905 bool m_integratedRepositoriesHasBeenSet = false;
906 bool m_trustedCaCertificatesHasBeenSet = false;
907 bool m_clientCertificatesHasBeenSet = false;
908 bool m_codeRemediationStrategyHasBeenSet = false;
909 bool m_cleanUpStrategyHasBeenSet = false;
910 bool m_disableManagedSkillsHasBeenSet = false;
911 bool m_maxTaskHoursHasBeenSet = false;
912 bool m_jobTypeHasBeenSet = false;
913 bool m_selectedFindingIdsHasBeenSet = false;
914 bool m_reportDestinationHasBeenSet = false;
915 bool m_reportUrlHasBeenSet = false;
916 bool m_scopeResultHasBeenSet = false;
917 bool m_scopeChangesHasBeenSet = false;
918 bool m_cicdConfigurationHasBeenSet = false;
919 bool m_testScopeHasBeenSet = false;
920 bool m_versionHasBeenSet = false;
921 bool m_createdAtHasBeenSet = false;
922 bool m_updatedAtHasBeenSet = false;
923};
924
925} // namespace Model
926} // namespace SecurityAgent
927} // namespace Aws
const Aws::String & GetReportUrl() const
Definition PentestJob.h:667
const ErrorInformation & GetErrorInformation() const
Definition PentestJob.h:441
PentestJob & WithClientCertificates(ClientCertificatesT &&value)
Definition PentestJob.h:517
PentestJob & WithLogConfig(LogConfigT &&value)
Definition PentestJob.h:395
const ScopeResult & GetScopeResult() const
Definition PentestJob.h:686
const Aws::String & GetPentestJobId() const
Definition PentestJob.h:66
PentestJob & WithDocuments(DocumentsT &&value)
Definition PentestJob.h:210
const Aws::String & GetOverview() const
Definition PentestJob.h:120
const Aws::Vector< TrustedCaCertificate > & GetTrustedCaCertificates() const
Definition PentestJob.h:484
PentestJob & WithCleanUpStrategy(CleanUpStrategy value)
Definition PentestJob.h:555
PentestJob & WithAllowedDomains(AllowedDomainsT &&value)
Definition PentestJob.h:282
PentestJob & WithScopeResult(ScopeResultT &&value)
Definition PentestJob.h:694
PentestJob & WithCicdConfiguration(CicdConfigurationT &&value)
Definition PentestJob.h:735
PentestJob & WithTestScope(TestScopeT &&value)
Definition PentestJob.h:751
CodeRemediationStrategy GetCodeRemediationStrategy() const
Definition PentestJob.h:533
PentestJob & WithCreatedAt(CreatedAtT &&value)
Definition PentestJob.h:789
PentestJob & WithCodeRemediationStrategy(CodeRemediationStrategy value)
Definition PentestJob.h:539
const Aws::Vector< Endpoint > & GetAllowedDomains() const
Definition PentestJob.h:274
PentestJob & AddScopeChanges(ScopeChangesT &&value)
Definition PentestJob.h:718
void SetLogConfig(LogConfigT &&value)
Definition PentestJob.h:390
PentestJob & AddDisableManagedSkills(SkillType value)
Definition PentestJob.h:578
void SetServiceRole(ServiceRoleT &&value)
Definition PentestJob.h:372
void SetPentestJobId(PentestJobIdT &&value)
Definition PentestJob.h:69
void SetSourceCode(SourceCodeT &&value)
Definition PentestJob.h:229
void SetNetworkTrafficConfig(NetworkTrafficConfigT &&value)
Definition PentestJob.h:426
const TestScope & GetTestScope() const
Definition PentestJob.h:743
void SetVpcConfig(VpcConfigT &&value)
Definition PentestJob.h:408
const Aws::Vector< ScopeChange > & GetScopeChanges() const
Definition PentestJob.h:705
PentestJob & WithPentestId(PentestIdT &&value)
Definition PentestJob.h:92
const Aws::String & GetTitle() const
Definition PentestJob.h:102
PentestJob & WithDisableManagedSkills(DisableManagedSkillsT &&value)
Definition PentestJob.h:574
PentestJob & WithTitle(TitleT &&value)
Definition PentestJob.h:110
PentestJob & AddSelectedFindingIds(SelectedFindingIdsT &&value)
Definition PentestJob.h:637
PentestJob & WithVpcConfig(VpcConfigT &&value)
Definition PentestJob.h:413
PentestJob & WithReportUrl(ReportUrlT &&value)
Definition PentestJob.h:675
void SetScopeResult(ScopeResultT &&value)
Definition PentestJob.h:689
const NetworkTrafficConfig & GetNetworkTrafficConfig() const
Definition PentestJob.h:423
PentestJob & WithErrorInformation(ErrorInformationT &&value)
Definition PentestJob.h:449
CleanUpStrategy GetCleanUpStrategy() const
Definition PentestJob.h:549
void SetCleanUpStrategy(CleanUpStrategy value)
Definition PentestJob.h:551
PentestJob & AddEndpoints(EndpointsT &&value)
Definition PentestJob.h:167
const CloudWatchLog & GetLogConfig() const
Definition PentestJob.h:387
PentestJob & WithNetworkTrafficConfig(NetworkTrafficConfigT &&value)
Definition PentestJob.h:431
PentestJob & WithUpdatedAt(UpdatedAtT &&value)
Definition PentestJob.h:807
void SetReportDestination(ReportDestinationT &&value)
Definition PentestJob.h:652
PentestJob & WithSelectedFindingIds(SelectedFindingIdsT &&value)
Definition PentestJob.h:632
PentestJob & AddAllowedDomains(AllowedDomainsT &&value)
Definition PentestJob.h:287
const Aws::String & GetServiceRole() const
Definition PentestJob.h:369
PentestJob & WithActors(ActorsT &&value)
Definition PentestJob.h:186
PentestJob & WithScopeChanges(ScopeChangesT &&value)
Definition PentestJob.h:713
PentestJob & WithEndpoints(EndpointsT &&value)
Definition PentestJob.h:162
PentestJob & WithReportDestination(ReportDestinationT &&value)
Definition PentestJob.h:657
void SetExecutionContext(ExecutionContextT &&value)
Definition PentestJob.h:348
void SetReportUrl(ReportUrlT &&value)
Definition PentestJob.h:670
PentestJob & AddActors(ActorsT &&value)
Definition PentestJob.h:191
PentestJob & AddTrustedCaCertificates(TrustedCaCertificatesT &&value)
Definition PentestJob.h:497
const CiCdConfiguration & GetCicdConfiguration() const
Definition PentestJob.h:727
PentestJob & AddExcludeRiskTypes(RiskType value)
Definition PentestJob.h:310
PentestJob & WithExecutionContext(ExecutionContextT &&value)
Definition PentestJob.h:353
void SetCreatedAt(CreatedAtT &&value)
Definition PentestJob.h:784
void SetAllowedDomains(AllowedDomainsT &&value)
Definition PentestJob.h:277
const Aws::Vector< Endpoint > & GetExcludePaths() const
Definition PentestJob.h:250
const Aws::Vector< ClientCertificate > & GetClientCertificates() const
Definition PentestJob.h:509
AWS_SECURITYAGENT_API PentestJob()=default
void SetIntegratedRepositories(IntegratedRepositoriesT &&value)
Definition PentestJob.h:462
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
Definition PentestJob.h:535
PentestJob & WithMaxTaskHours(double value)
Definition PentestJob.h:596
void SetDocuments(DocumentsT &&value)
Definition PentestJob.h:205
const Aws::Utils::DateTime & GetCreatedAt() const
Definition PentestJob.h:781
PentestJob & AddSourceCode(SourceCodeT &&value)
Definition PentestJob.h:239
const Aws::Vector< RiskType > & GetExcludeRiskTypes() const
Definition PentestJob.h:298
const Aws::String & GetPentestId() const
Definition PentestJob.h:84
PentestJob & WithExcludePaths(ExcludePathsT &&value)
Definition PentestJob.h:258
const Aws::Vector< ExecutionContext > & GetExecutionContext() const
Definition PentestJob.h:345
const Aws::Vector< SourceCodeRepository > & GetSourceCode() const
Definition PentestJob.h:226
const Aws::Vector< Aws::String > & GetSelectedFindingIds() const
Definition PentestJob.h:624
void SetVersion(VersionT &&value)
Definition PentestJob.h:766
const Aws::Vector< SkillType > & GetDisableManagedSkills() const
Definition PentestJob.h:566
void SetClientCertificates(ClientCertificatesT &&value)
Definition PentestJob.h:512
void SetPentestId(PentestIdT &&value)
Definition PentestJob.h:87
const Aws::String & GetVersion() const
Definition PentestJob.h:763
PentestJob & WithPentestJobId(PentestJobIdT &&value)
Definition PentestJob.h:74
const VpcConfig & GetVpcConfig() const
Definition PentestJob.h:405
void SetExcludePaths(ExcludePathsT &&value)
Definition PentestJob.h:253
PentestJob & AddExcludePaths(ExcludePathsT &&value)
Definition PentestJob.h:263
void SetErrorInformation(ErrorInformationT &&value)
Definition PentestJob.h:444
void SetUpdatedAt(UpdatedAtT &&value)
Definition PentestJob.h:802
PentestJob & WithSourceCode(SourceCodeT &&value)
Definition PentestJob.h:234
PentestJob & AddExecutionContext(ExecutionContextT &&value)
Definition PentestJob.h:358
const Aws::Vector< IntegratedRepository > & GetIntegratedRepositories() const
Definition PentestJob.h:459
PentestJob & AddDocuments(DocumentsT &&value)
Definition PentestJob.h:215
PentestJob & WithServiceRole(ServiceRoleT &&value)
Definition PentestJob.h:377
void SetTestScope(TestScopeT &&value)
Definition PentestJob.h:746
void SetDisableManagedSkills(DisableManagedSkillsT &&value)
Definition PentestJob.h:569
void SetTrustedCaCertificates(TrustedCaCertificatesT &&value)
Definition PentestJob.h:487
const Aws::Vector< Actor > & GetActors() const
Definition PentestJob.h:178
AWS_SECURITYAGENT_API PentestJob(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition PentestJob.h:799
const ReportDestination & GetReportDestination() const
Definition PentestJob.h:649
AWS_SECURITYAGENT_API PentestJob & operator=(Aws::Utils::Json::JsonView jsonValue)
PentestJob & WithJobType(JobType value)
Definition PentestJob.h:613
void SetSelectedFindingIds(SelectedFindingIdsT &&value)
Definition PentestJob.h:627
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
PentestJob & WithStatus(JobStatus value)
Definition PentestJob.h:144
PentestJob & WithOverview(OverviewT &&value)
Definition PentestJob.h:128
void SetEndpoints(EndpointsT &&value)
Definition PentestJob.h:157
void SetScopeChanges(ScopeChangesT &&value)
Definition PentestJob.h:708
PentestJob & WithIntegratedRepositories(IntegratedRepositoriesT &&value)
Definition PentestJob.h:467
PentestJob & WithTrustedCaCertificates(TrustedCaCertificatesT &&value)
Definition PentestJob.h:492
void SetCicdConfiguration(CicdConfigurationT &&value)
Definition PentestJob.h:730
void SetExcludeRiskTypes(ExcludeRiskTypesT &&value)
Definition PentestJob.h:301
PentestJob & AddIntegratedRepositories(IntegratedRepositoriesT &&value)
Definition PentestJob.h:472
PentestJob & WithSteps(StepsT &&value)
Definition PentestJob.h:329
void SetOverview(OverviewT &&value)
Definition PentestJob.h:123
const Aws::Vector< Step > & GetSteps() const
Definition PentestJob.h:321
PentestJob & AddClientCertificates(ClientCertificatesT &&value)
Definition PentestJob.h:522
PentestJob & AddSteps(StepsT &&value)
Definition PentestJob.h:334
PentestJob & WithVersion(VersionT &&value)
Definition PentestJob.h:771
const Aws::Vector< Endpoint > & GetEndpoints() const
Definition PentestJob.h:154
PentestJob & WithExcludeRiskTypes(ExcludeRiskTypesT &&value)
Definition PentestJob.h:306
const Aws::Vector< DocumentInfo > & GetDocuments() const
Definition PentestJob.h:202
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue