AWS SDK for C++

AWS SDK for C++ Version 1.11.903

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/CloudWatchLog.h>
15#include <aws/securityagent/model/CodeRemediationStrategy.h>
16#include <aws/securityagent/model/DocumentInfo.h>
17#include <aws/securityagent/model/Endpoint.h>
18#include <aws/securityagent/model/ErrorInformation.h>
19#include <aws/securityagent/model/ExecutionContext.h>
20#include <aws/securityagent/model/IntegratedRepository.h>
21#include <aws/securityagent/model/JobStatus.h>
22#include <aws/securityagent/model/JobType.h>
23#include <aws/securityagent/model/NetworkTrafficConfig.h>
24#include <aws/securityagent/model/ReportDestination.h>
25#include <aws/securityagent/model/RiskType.h>
26#include <aws/securityagent/model/ScopeChange.h>
27#include <aws/securityagent/model/ScopeResult.h>
28#include <aws/securityagent/model/SkillType.h>
29#include <aws/securityagent/model/SourceCodeRepository.h>
30#include <aws/securityagent/model/Step.h>
31#include <aws/securityagent/model/TrustedCaCertificate.h>
32#include <aws/securityagent/model/VpcConfig.h>
33
34#include <utility>
35
36namespace Aws {
37namespace Utils {
38namespace Json {
39class JsonValue;
40class JsonView;
41} // namespace Json
42} // namespace Utils
43namespace SecurityAgent {
44namespace Model {
45
54 public:
55 AWS_SECURITYAGENT_API PentestJob() = default;
56 AWS_SECURITYAGENT_API PentestJob(Aws::Utils::Json::JsonView jsonValue);
57 AWS_SECURITYAGENT_API PentestJob& operator=(Aws::Utils::Json::JsonView jsonValue);
58 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
59
61
64 inline const Aws::String& GetPentestJobId() const { return m_pentestJobId; }
65 inline bool PentestJobIdHasBeenSet() const { return m_pentestJobIdHasBeenSet; }
66 template <typename PentestJobIdT = Aws::String>
67 void SetPentestJobId(PentestJobIdT&& value) {
68 m_pentestJobIdHasBeenSet = true;
69 m_pentestJobId = std::forward<PentestJobIdT>(value);
70 }
71 template <typename PentestJobIdT = Aws::String>
72 PentestJob& WithPentestJobId(PentestJobIdT&& value) {
73 SetPentestJobId(std::forward<PentestJobIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetPentestId() const { return m_pentestId; }
83 inline bool PentestIdHasBeenSet() const { return m_pentestIdHasBeenSet; }
84 template <typename PentestIdT = Aws::String>
85 void SetPentestId(PentestIdT&& value) {
86 m_pentestIdHasBeenSet = true;
87 m_pentestId = std::forward<PentestIdT>(value);
88 }
89 template <typename PentestIdT = Aws::String>
90 PentestJob& WithPentestId(PentestIdT&& value) {
91 SetPentestId(std::forward<PentestIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetTitle() const { return m_title; }
101 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
102 template <typename TitleT = Aws::String>
103 void SetTitle(TitleT&& value) {
104 m_titleHasBeenSet = true;
105 m_title = std::forward<TitleT>(value);
106 }
107 template <typename TitleT = Aws::String>
108 PentestJob& WithTitle(TitleT&& value) {
109 SetTitle(std::forward<TitleT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetOverview() const { return m_overview; }
119 inline bool OverviewHasBeenSet() const { return m_overviewHasBeenSet; }
120 template <typename OverviewT = Aws::String>
121 void SetOverview(OverviewT&& value) {
122 m_overviewHasBeenSet = true;
123 m_overview = std::forward<OverviewT>(value);
124 }
125 template <typename OverviewT = Aws::String>
126 PentestJob& WithOverview(OverviewT&& value) {
127 SetOverview(std::forward<OverviewT>(value));
128 return *this;
129 }
131
133
136 inline JobStatus GetStatus() const { return m_status; }
137 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
138 inline void SetStatus(JobStatus value) {
139 m_statusHasBeenSet = true;
140 m_status = value;
141 }
143 SetStatus(value);
144 return *this;
145 }
147
149
152 inline const Aws::Vector<Endpoint>& GetEndpoints() const { return m_endpoints; }
153 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
154 template <typename EndpointsT = Aws::Vector<Endpoint>>
155 void SetEndpoints(EndpointsT&& value) {
156 m_endpointsHasBeenSet = true;
157 m_endpoints = std::forward<EndpointsT>(value);
158 }
159 template <typename EndpointsT = Aws::Vector<Endpoint>>
160 PentestJob& WithEndpoints(EndpointsT&& value) {
161 SetEndpoints(std::forward<EndpointsT>(value));
162 return *this;
163 }
164 template <typename EndpointsT = Endpoint>
165 PentestJob& AddEndpoints(EndpointsT&& value) {
166 m_endpointsHasBeenSet = true;
167 m_endpoints.emplace_back(std::forward<EndpointsT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Vector<Actor>& GetActors() const { return m_actors; }
177 inline bool ActorsHasBeenSet() const { return m_actorsHasBeenSet; }
178 template <typename ActorsT = Aws::Vector<Actor>>
179 void SetActors(ActorsT&& value) {
180 m_actorsHasBeenSet = true;
181 m_actors = std::forward<ActorsT>(value);
182 }
183 template <typename ActorsT = Aws::Vector<Actor>>
184 PentestJob& WithActors(ActorsT&& value) {
185 SetActors(std::forward<ActorsT>(value));
186 return *this;
187 }
188 template <typename ActorsT = Actor>
189 PentestJob& AddActors(ActorsT&& value) {
190 m_actorsHasBeenSet = true;
191 m_actors.emplace_back(std::forward<ActorsT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Vector<DocumentInfo>& GetDocuments() const { return m_documents; }
201 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
202 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
203 void SetDocuments(DocumentsT&& value) {
204 m_documentsHasBeenSet = true;
205 m_documents = std::forward<DocumentsT>(value);
206 }
207 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
208 PentestJob& WithDocuments(DocumentsT&& value) {
209 SetDocuments(std::forward<DocumentsT>(value));
210 return *this;
211 }
212 template <typename DocumentsT = DocumentInfo>
213 PentestJob& AddDocuments(DocumentsT&& value) {
214 m_documentsHasBeenSet = true;
215 m_documents.emplace_back(std::forward<DocumentsT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::Vector<SourceCodeRepository>& GetSourceCode() const { return m_sourceCode; }
225 inline bool SourceCodeHasBeenSet() const { return m_sourceCodeHasBeenSet; }
226 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
227 void SetSourceCode(SourceCodeT&& value) {
228 m_sourceCodeHasBeenSet = true;
229 m_sourceCode = std::forward<SourceCodeT>(value);
230 }
231 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
232 PentestJob& WithSourceCode(SourceCodeT&& value) {
233 SetSourceCode(std::forward<SourceCodeT>(value));
234 return *this;
235 }
236 template <typename SourceCodeT = SourceCodeRepository>
237 PentestJob& AddSourceCode(SourceCodeT&& value) {
238 m_sourceCodeHasBeenSet = true;
239 m_sourceCode.emplace_back(std::forward<SourceCodeT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::Vector<Endpoint>& GetExcludePaths() const { return m_excludePaths; }
249 inline bool ExcludePathsHasBeenSet() const { return m_excludePathsHasBeenSet; }
250 template <typename ExcludePathsT = Aws::Vector<Endpoint>>
251 void SetExcludePaths(ExcludePathsT&& value) {
252 m_excludePathsHasBeenSet = true;
253 m_excludePaths = std::forward<ExcludePathsT>(value);
254 }
255 template <typename ExcludePathsT = Aws::Vector<Endpoint>>
256 PentestJob& WithExcludePaths(ExcludePathsT&& value) {
257 SetExcludePaths(std::forward<ExcludePathsT>(value));
258 return *this;
259 }
260 template <typename ExcludePathsT = Endpoint>
261 PentestJob& AddExcludePaths(ExcludePathsT&& value) {
262 m_excludePathsHasBeenSet = true;
263 m_excludePaths.emplace_back(std::forward<ExcludePathsT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::Vector<Endpoint>& GetAllowedDomains() const { return m_allowedDomains; }
273 inline bool AllowedDomainsHasBeenSet() const { return m_allowedDomainsHasBeenSet; }
274 template <typename AllowedDomainsT = Aws::Vector<Endpoint>>
275 void SetAllowedDomains(AllowedDomainsT&& value) {
276 m_allowedDomainsHasBeenSet = true;
277 m_allowedDomains = std::forward<AllowedDomainsT>(value);
278 }
279 template <typename AllowedDomainsT = Aws::Vector<Endpoint>>
280 PentestJob& WithAllowedDomains(AllowedDomainsT&& value) {
281 SetAllowedDomains(std::forward<AllowedDomainsT>(value));
282 return *this;
283 }
284 template <typename AllowedDomainsT = Endpoint>
285 PentestJob& AddAllowedDomains(AllowedDomainsT&& value) {
286 m_allowedDomainsHasBeenSet = true;
287 m_allowedDomains.emplace_back(std::forward<AllowedDomainsT>(value));
288 return *this;
289 }
291
293
296 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
297 inline bool ExcludeRiskTypesHasBeenSet() const { return m_excludeRiskTypesHasBeenSet; }
298 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
299 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
300 m_excludeRiskTypesHasBeenSet = true;
301 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
302 }
303 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
304 PentestJob& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
305 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
306 return *this;
307 }
309 m_excludeRiskTypesHasBeenSet = true;
310 m_excludeRiskTypes.push_back(value);
311 return *this;
312 }
314
316
319 inline const Aws::Vector<Step>& GetSteps() const { return m_steps; }
320 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
321 template <typename StepsT = Aws::Vector<Step>>
322 void SetSteps(StepsT&& value) {
323 m_stepsHasBeenSet = true;
324 m_steps = std::forward<StepsT>(value);
325 }
326 template <typename StepsT = Aws::Vector<Step>>
327 PentestJob& WithSteps(StepsT&& value) {
328 SetSteps(std::forward<StepsT>(value));
329 return *this;
330 }
331 template <typename StepsT = Step>
332 PentestJob& AddSteps(StepsT&& value) {
333 m_stepsHasBeenSet = true;
334 m_steps.emplace_back(std::forward<StepsT>(value));
335 return *this;
336 }
338
340
343 inline const Aws::Vector<ExecutionContext>& GetExecutionContext() const { return m_executionContext; }
344 inline bool ExecutionContextHasBeenSet() const { return m_executionContextHasBeenSet; }
345 template <typename ExecutionContextT = Aws::Vector<ExecutionContext>>
346 void SetExecutionContext(ExecutionContextT&& value) {
347 m_executionContextHasBeenSet = true;
348 m_executionContext = std::forward<ExecutionContextT>(value);
349 }
350 template <typename ExecutionContextT = Aws::Vector<ExecutionContext>>
351 PentestJob& WithExecutionContext(ExecutionContextT&& value) {
352 SetExecutionContext(std::forward<ExecutionContextT>(value));
353 return *this;
354 }
355 template <typename ExecutionContextT = ExecutionContext>
356 PentestJob& AddExecutionContext(ExecutionContextT&& value) {
357 m_executionContextHasBeenSet = true;
358 m_executionContext.emplace_back(std::forward<ExecutionContextT>(value));
359 return *this;
360 }
362
364
367 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
368 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
369 template <typename ServiceRoleT = Aws::String>
370 void SetServiceRole(ServiceRoleT&& value) {
371 m_serviceRoleHasBeenSet = true;
372 m_serviceRole = std::forward<ServiceRoleT>(value);
373 }
374 template <typename ServiceRoleT = Aws::String>
375 PentestJob& WithServiceRole(ServiceRoleT&& value) {
376 SetServiceRole(std::forward<ServiceRoleT>(value));
377 return *this;
378 }
380
382
385 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
386 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
387 template <typename LogConfigT = CloudWatchLog>
388 void SetLogConfig(LogConfigT&& value) {
389 m_logConfigHasBeenSet = true;
390 m_logConfig = std::forward<LogConfigT>(value);
391 }
392 template <typename LogConfigT = CloudWatchLog>
393 PentestJob& WithLogConfig(LogConfigT&& value) {
394 SetLogConfig(std::forward<LogConfigT>(value));
395 return *this;
396 }
398
400
403 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
404 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
405 template <typename VpcConfigT = VpcConfig>
406 void SetVpcConfig(VpcConfigT&& value) {
407 m_vpcConfigHasBeenSet = true;
408 m_vpcConfig = std::forward<VpcConfigT>(value);
409 }
410 template <typename VpcConfigT = VpcConfig>
411 PentestJob& WithVpcConfig(VpcConfigT&& value) {
412 SetVpcConfig(std::forward<VpcConfigT>(value));
413 return *this;
414 }
416
418
421 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
422 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
423 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
424 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
425 m_networkTrafficConfigHasBeenSet = true;
426 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
427 }
428 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
429 PentestJob& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
430 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
431 return *this;
432 }
434
436
439 inline const ErrorInformation& GetErrorInformation() const { return m_errorInformation; }
440 inline bool ErrorInformationHasBeenSet() const { return m_errorInformationHasBeenSet; }
441 template <typename ErrorInformationT = ErrorInformation>
442 void SetErrorInformation(ErrorInformationT&& value) {
443 m_errorInformationHasBeenSet = true;
444 m_errorInformation = std::forward<ErrorInformationT>(value);
445 }
446 template <typename ErrorInformationT = ErrorInformation>
447 PentestJob& WithErrorInformation(ErrorInformationT&& value) {
448 SetErrorInformation(std::forward<ErrorInformationT>(value));
449 return *this;
450 }
452
454
457 inline const Aws::Vector<IntegratedRepository>& GetIntegratedRepositories() const { return m_integratedRepositories; }
458 inline bool IntegratedRepositoriesHasBeenSet() const { return m_integratedRepositoriesHasBeenSet; }
459 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
460 void SetIntegratedRepositories(IntegratedRepositoriesT&& value) {
461 m_integratedRepositoriesHasBeenSet = true;
462 m_integratedRepositories = std::forward<IntegratedRepositoriesT>(value);
463 }
464 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
465 PentestJob& WithIntegratedRepositories(IntegratedRepositoriesT&& value) {
466 SetIntegratedRepositories(std::forward<IntegratedRepositoriesT>(value));
467 return *this;
468 }
469 template <typename IntegratedRepositoriesT = IntegratedRepository>
470 PentestJob& AddIntegratedRepositories(IntegratedRepositoriesT&& value) {
471 m_integratedRepositoriesHasBeenSet = true;
472 m_integratedRepositories.emplace_back(std::forward<IntegratedRepositoriesT>(value));
473 return *this;
474 }
476
478
482 inline const Aws::Vector<TrustedCaCertificate>& GetTrustedCaCertificates() const { return m_trustedCaCertificates; }
483 inline bool TrustedCaCertificatesHasBeenSet() const { return m_trustedCaCertificatesHasBeenSet; }
484 template <typename TrustedCaCertificatesT = Aws::Vector<TrustedCaCertificate>>
485 void SetTrustedCaCertificates(TrustedCaCertificatesT&& value) {
486 m_trustedCaCertificatesHasBeenSet = true;
487 m_trustedCaCertificates = std::forward<TrustedCaCertificatesT>(value);
488 }
489 template <typename TrustedCaCertificatesT = Aws::Vector<TrustedCaCertificate>>
490 PentestJob& WithTrustedCaCertificates(TrustedCaCertificatesT&& value) {
491 SetTrustedCaCertificates(std::forward<TrustedCaCertificatesT>(value));
492 return *this;
493 }
494 template <typename TrustedCaCertificatesT = TrustedCaCertificate>
495 PentestJob& AddTrustedCaCertificates(TrustedCaCertificatesT&& value) {
496 m_trustedCaCertificatesHasBeenSet = true;
497 m_trustedCaCertificates.emplace_back(std::forward<TrustedCaCertificatesT>(value));
498 return *this;
499 }
501
503
506 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
507 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
509 m_codeRemediationStrategyHasBeenSet = true;
510 m_codeRemediationStrategy = value;
511 }
514 return *this;
515 }
517
519
522 inline CleanUpStrategy GetCleanUpStrategy() const { return m_cleanUpStrategy; }
523 inline bool CleanUpStrategyHasBeenSet() const { return m_cleanUpStrategyHasBeenSet; }
525 m_cleanUpStrategyHasBeenSet = true;
526 m_cleanUpStrategy = value;
527 }
529 SetCleanUpStrategy(value);
530 return *this;
531 }
533
535
539 inline const Aws::Vector<SkillType>& GetDisableManagedSkills() const { return m_disableManagedSkills; }
540 inline bool DisableManagedSkillsHasBeenSet() const { return m_disableManagedSkillsHasBeenSet; }
541 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
542 void SetDisableManagedSkills(DisableManagedSkillsT&& value) {
543 m_disableManagedSkillsHasBeenSet = true;
544 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
545 }
546 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
547 PentestJob& WithDisableManagedSkills(DisableManagedSkillsT&& value) {
548 SetDisableManagedSkills(std::forward<DisableManagedSkillsT>(value));
549 return *this;
550 }
552 m_disableManagedSkillsHasBeenSet = true;
553 m_disableManagedSkills.push_back(value);
554 return *this;
555 }
557
559
563 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
564 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
565 inline void SetMaxTaskHours(double value) {
566 m_maxTaskHoursHasBeenSet = true;
567 m_maxTaskHours = value;
568 }
569 inline PentestJob& WithMaxTaskHours(double value) {
570 SetMaxTaskHours(value);
571 return *this;
572 }
574
576
580 inline JobType GetJobType() const { return m_jobType; }
581 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
582 inline void SetJobType(JobType value) {
583 m_jobTypeHasBeenSet = true;
584 m_jobType = value;
585 }
587 SetJobType(value);
588 return *this;
589 }
591
593
597 inline const Aws::Vector<Aws::String>& GetSelectedFindingIds() const { return m_selectedFindingIds; }
598 inline bool SelectedFindingIdsHasBeenSet() const { return m_selectedFindingIdsHasBeenSet; }
599 template <typename SelectedFindingIdsT = Aws::Vector<Aws::String>>
600 void SetSelectedFindingIds(SelectedFindingIdsT&& value) {
601 m_selectedFindingIdsHasBeenSet = true;
602 m_selectedFindingIds = std::forward<SelectedFindingIdsT>(value);
603 }
604 template <typename SelectedFindingIdsT = Aws::Vector<Aws::String>>
605 PentestJob& WithSelectedFindingIds(SelectedFindingIdsT&& value) {
606 SetSelectedFindingIds(std::forward<SelectedFindingIdsT>(value));
607 return *this;
608 }
609 template <typename SelectedFindingIdsT = Aws::String>
610 PentestJob& AddSelectedFindingIds(SelectedFindingIdsT&& value) {
611 m_selectedFindingIdsHasBeenSet = true;
612 m_selectedFindingIds.emplace_back(std::forward<SelectedFindingIdsT>(value));
613 return *this;
614 }
616
618
622 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
623 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
624 template <typename ReportDestinationT = ReportDestination>
625 void SetReportDestination(ReportDestinationT&& value) {
626 m_reportDestinationHasBeenSet = true;
627 m_reportDestination = std::forward<ReportDestinationT>(value);
628 }
629 template <typename ReportDestinationT = ReportDestination>
630 PentestJob& WithReportDestination(ReportDestinationT&& value) {
631 SetReportDestination(std::forward<ReportDestinationT>(value));
632 return *this;
633 }
635
637
640 inline const Aws::String& GetReportUrl() const { return m_reportUrl; }
641 inline bool ReportUrlHasBeenSet() const { return m_reportUrlHasBeenSet; }
642 template <typename ReportUrlT = Aws::String>
643 void SetReportUrl(ReportUrlT&& value) {
644 m_reportUrlHasBeenSet = true;
645 m_reportUrl = std::forward<ReportUrlT>(value);
646 }
647 template <typename ReportUrlT = Aws::String>
648 PentestJob& WithReportUrl(ReportUrlT&& value) {
649 SetReportUrl(std::forward<ReportUrlT>(value));
650 return *this;
651 }
653
655
659 inline const ScopeResult& GetScopeResult() const { return m_scopeResult; }
660 inline bool ScopeResultHasBeenSet() const { return m_scopeResultHasBeenSet; }
661 template <typename ScopeResultT = ScopeResult>
662 void SetScopeResult(ScopeResultT&& value) {
663 m_scopeResultHasBeenSet = true;
664 m_scopeResult = std::forward<ScopeResultT>(value);
665 }
666 template <typename ScopeResultT = ScopeResult>
667 PentestJob& WithScopeResult(ScopeResultT&& value) {
668 SetScopeResult(std::forward<ScopeResultT>(value));
669 return *this;
670 }
672
674
678 inline const Aws::Vector<ScopeChange>& GetScopeChanges() const { return m_scopeChanges; }
679 inline bool ScopeChangesHasBeenSet() const { return m_scopeChangesHasBeenSet; }
680 template <typename ScopeChangesT = Aws::Vector<ScopeChange>>
681 void SetScopeChanges(ScopeChangesT&& value) {
682 m_scopeChangesHasBeenSet = true;
683 m_scopeChanges = std::forward<ScopeChangesT>(value);
684 }
685 template <typename ScopeChangesT = Aws::Vector<ScopeChange>>
686 PentestJob& WithScopeChanges(ScopeChangesT&& value) {
687 SetScopeChanges(std::forward<ScopeChangesT>(value));
688 return *this;
689 }
690 template <typename ScopeChangesT = ScopeChange>
691 PentestJob& AddScopeChanges(ScopeChangesT&& value) {
692 m_scopeChangesHasBeenSet = true;
693 m_scopeChanges.emplace_back(std::forward<ScopeChangesT>(value));
694 return *this;
695 }
697
699
700 inline const CiCdConfiguration& GetCicdConfiguration() const { return m_cicdConfiguration; }
701 inline bool CicdConfigurationHasBeenSet() const { return m_cicdConfigurationHasBeenSet; }
702 template <typename CicdConfigurationT = CiCdConfiguration>
703 void SetCicdConfiguration(CicdConfigurationT&& value) {
704 m_cicdConfigurationHasBeenSet = true;
705 m_cicdConfiguration = std::forward<CicdConfigurationT>(value);
706 }
707 template <typename CicdConfigurationT = CiCdConfiguration>
708 PentestJob& WithCicdConfiguration(CicdConfigurationT&& value) {
709 SetCicdConfiguration(std::forward<CicdConfigurationT>(value));
710 return *this;
711 }
713
715
718 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
719 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
720 template <typename CreatedAtT = Aws::Utils::DateTime>
721 void SetCreatedAt(CreatedAtT&& value) {
722 m_createdAtHasBeenSet = true;
723 m_createdAt = std::forward<CreatedAtT>(value);
724 }
725 template <typename CreatedAtT = Aws::Utils::DateTime>
726 PentestJob& WithCreatedAt(CreatedAtT&& value) {
727 SetCreatedAt(std::forward<CreatedAtT>(value));
728 return *this;
729 }
731
733
736 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
737 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
738 template <typename UpdatedAtT = Aws::Utils::DateTime>
739 void SetUpdatedAt(UpdatedAtT&& value) {
740 m_updatedAtHasBeenSet = true;
741 m_updatedAt = std::forward<UpdatedAtT>(value);
742 }
743 template <typename UpdatedAtT = Aws::Utils::DateTime>
744 PentestJob& WithUpdatedAt(UpdatedAtT&& value) {
745 SetUpdatedAt(std::forward<UpdatedAtT>(value));
746 return *this;
747 }
749 private:
750 Aws::String m_pentestJobId;
751
752 Aws::String m_pentestId;
753
754 Aws::String m_title;
755
756 Aws::String m_overview;
757
759
760 Aws::Vector<Endpoint> m_endpoints;
761
762 Aws::Vector<Actor> m_actors;
763
764 Aws::Vector<DocumentInfo> m_documents;
765
767
768 Aws::Vector<Endpoint> m_excludePaths;
769
770 Aws::Vector<Endpoint> m_allowedDomains;
771
772 Aws::Vector<RiskType> m_excludeRiskTypes;
773
774 Aws::Vector<Step> m_steps;
775
776 Aws::Vector<ExecutionContext> m_executionContext;
777
778 Aws::String m_serviceRole;
779
780 CloudWatchLog m_logConfig;
781
782 VpcConfig m_vpcConfig;
783
784 NetworkTrafficConfig m_networkTrafficConfig;
785
786 ErrorInformation m_errorInformation;
787
788 Aws::Vector<IntegratedRepository> m_integratedRepositories;
789
790 Aws::Vector<TrustedCaCertificate> m_trustedCaCertificates;
791
793
794 CleanUpStrategy m_cleanUpStrategy{CleanUpStrategy::NOT_SET};
795
796 Aws::Vector<SkillType> m_disableManagedSkills;
797
798 double m_maxTaskHours{0.0};
799
800 JobType m_jobType{JobType::NOT_SET};
801
802 Aws::Vector<Aws::String> m_selectedFindingIds;
803
804 ReportDestination m_reportDestination;
805
806 Aws::String m_reportUrl;
807
808 ScopeResult m_scopeResult;
809
810 Aws::Vector<ScopeChange> m_scopeChanges;
811
812 CiCdConfiguration m_cicdConfiguration;
813
814 Aws::Utils::DateTime m_createdAt{};
815
816 Aws::Utils::DateTime m_updatedAt{};
817 bool m_pentestJobIdHasBeenSet = false;
818 bool m_pentestIdHasBeenSet = false;
819 bool m_titleHasBeenSet = false;
820 bool m_overviewHasBeenSet = false;
821 bool m_statusHasBeenSet = false;
822 bool m_endpointsHasBeenSet = false;
823 bool m_actorsHasBeenSet = false;
824 bool m_documentsHasBeenSet = false;
825 bool m_sourceCodeHasBeenSet = false;
826 bool m_excludePathsHasBeenSet = false;
827 bool m_allowedDomainsHasBeenSet = false;
828 bool m_excludeRiskTypesHasBeenSet = false;
829 bool m_stepsHasBeenSet = false;
830 bool m_executionContextHasBeenSet = false;
831 bool m_serviceRoleHasBeenSet = false;
832 bool m_logConfigHasBeenSet = false;
833 bool m_vpcConfigHasBeenSet = false;
834 bool m_networkTrafficConfigHasBeenSet = false;
835 bool m_errorInformationHasBeenSet = false;
836 bool m_integratedRepositoriesHasBeenSet = false;
837 bool m_trustedCaCertificatesHasBeenSet = false;
838 bool m_codeRemediationStrategyHasBeenSet = false;
839 bool m_cleanUpStrategyHasBeenSet = false;
840 bool m_disableManagedSkillsHasBeenSet = false;
841 bool m_maxTaskHoursHasBeenSet = false;
842 bool m_jobTypeHasBeenSet = false;
843 bool m_selectedFindingIdsHasBeenSet = false;
844 bool m_reportDestinationHasBeenSet = false;
845 bool m_reportUrlHasBeenSet = false;
846 bool m_scopeResultHasBeenSet = false;
847 bool m_scopeChangesHasBeenSet = false;
848 bool m_cicdConfigurationHasBeenSet = false;
849 bool m_createdAtHasBeenSet = false;
850 bool m_updatedAtHasBeenSet = false;
851};
852
853} // namespace Model
854} // namespace SecurityAgent
855} // namespace Aws
const Aws::String & GetReportUrl() const
Definition PentestJob.h:640
const ErrorInformation & GetErrorInformation() const
Definition PentestJob.h:439
PentestJob & WithLogConfig(LogConfigT &&value)
Definition PentestJob.h:393
const ScopeResult & GetScopeResult() const
Definition PentestJob.h:659
const Aws::String & GetPentestJobId() const
Definition PentestJob.h:64
PentestJob & WithDocuments(DocumentsT &&value)
Definition PentestJob.h:208
const Aws::String & GetOverview() const
Definition PentestJob.h:118
const Aws::Vector< TrustedCaCertificate > & GetTrustedCaCertificates() const
Definition PentestJob.h:482
PentestJob & WithCleanUpStrategy(CleanUpStrategy value)
Definition PentestJob.h:528
PentestJob & WithAllowedDomains(AllowedDomainsT &&value)
Definition PentestJob.h:280
PentestJob & WithScopeResult(ScopeResultT &&value)
Definition PentestJob.h:667
PentestJob & WithCicdConfiguration(CicdConfigurationT &&value)
Definition PentestJob.h:708
CodeRemediationStrategy GetCodeRemediationStrategy() const
Definition PentestJob.h:506
PentestJob & WithCreatedAt(CreatedAtT &&value)
Definition PentestJob.h:726
PentestJob & WithCodeRemediationStrategy(CodeRemediationStrategy value)
Definition PentestJob.h:512
const Aws::Vector< Endpoint > & GetAllowedDomains() const
Definition PentestJob.h:272
PentestJob & AddScopeChanges(ScopeChangesT &&value)
Definition PentestJob.h:691
void SetLogConfig(LogConfigT &&value)
Definition PentestJob.h:388
PentestJob & AddDisableManagedSkills(SkillType value)
Definition PentestJob.h:551
void SetServiceRole(ServiceRoleT &&value)
Definition PentestJob.h:370
void SetPentestJobId(PentestJobIdT &&value)
Definition PentestJob.h:67
void SetSourceCode(SourceCodeT &&value)
Definition PentestJob.h:227
void SetNetworkTrafficConfig(NetworkTrafficConfigT &&value)
Definition PentestJob.h:424
void SetVpcConfig(VpcConfigT &&value)
Definition PentestJob.h:406
const Aws::Vector< ScopeChange > & GetScopeChanges() const
Definition PentestJob.h:678
PentestJob & WithPentestId(PentestIdT &&value)
Definition PentestJob.h:90
const Aws::String & GetTitle() const
Definition PentestJob.h:100
PentestJob & WithDisableManagedSkills(DisableManagedSkillsT &&value)
Definition PentestJob.h:547
PentestJob & WithTitle(TitleT &&value)
Definition PentestJob.h:108
PentestJob & AddSelectedFindingIds(SelectedFindingIdsT &&value)
Definition PentestJob.h:610
PentestJob & WithVpcConfig(VpcConfigT &&value)
Definition PentestJob.h:411
PentestJob & WithReportUrl(ReportUrlT &&value)
Definition PentestJob.h:648
void SetScopeResult(ScopeResultT &&value)
Definition PentestJob.h:662
const NetworkTrafficConfig & GetNetworkTrafficConfig() const
Definition PentestJob.h:421
PentestJob & WithErrorInformation(ErrorInformationT &&value)
Definition PentestJob.h:447
CleanUpStrategy GetCleanUpStrategy() const
Definition PentestJob.h:522
void SetCleanUpStrategy(CleanUpStrategy value)
Definition PentestJob.h:524
PentestJob & AddEndpoints(EndpointsT &&value)
Definition PentestJob.h:165
const CloudWatchLog & GetLogConfig() const
Definition PentestJob.h:385
PentestJob & WithNetworkTrafficConfig(NetworkTrafficConfigT &&value)
Definition PentestJob.h:429
PentestJob & WithUpdatedAt(UpdatedAtT &&value)
Definition PentestJob.h:744
void SetReportDestination(ReportDestinationT &&value)
Definition PentestJob.h:625
PentestJob & WithSelectedFindingIds(SelectedFindingIdsT &&value)
Definition PentestJob.h:605
PentestJob & AddAllowedDomains(AllowedDomainsT &&value)
Definition PentestJob.h:285
const Aws::String & GetServiceRole() const
Definition PentestJob.h:367
PentestJob & WithActors(ActorsT &&value)
Definition PentestJob.h:184
PentestJob & WithScopeChanges(ScopeChangesT &&value)
Definition PentestJob.h:686
PentestJob & WithEndpoints(EndpointsT &&value)
Definition PentestJob.h:160
PentestJob & WithReportDestination(ReportDestinationT &&value)
Definition PentestJob.h:630
void SetExecutionContext(ExecutionContextT &&value)
Definition PentestJob.h:346
void SetReportUrl(ReportUrlT &&value)
Definition PentestJob.h:643
PentestJob & AddActors(ActorsT &&value)
Definition PentestJob.h:189
PentestJob & AddTrustedCaCertificates(TrustedCaCertificatesT &&value)
Definition PentestJob.h:495
const CiCdConfiguration & GetCicdConfiguration() const
Definition PentestJob.h:700
PentestJob & AddExcludeRiskTypes(RiskType value)
Definition PentestJob.h:308
PentestJob & WithExecutionContext(ExecutionContextT &&value)
Definition PentestJob.h:351
void SetCreatedAt(CreatedAtT &&value)
Definition PentestJob.h:721
void SetAllowedDomains(AllowedDomainsT &&value)
Definition PentestJob.h:275
const Aws::Vector< Endpoint > & GetExcludePaths() const
Definition PentestJob.h:248
AWS_SECURITYAGENT_API PentestJob()=default
void SetIntegratedRepositories(IntegratedRepositoriesT &&value)
Definition PentestJob.h:460
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
Definition PentestJob.h:508
PentestJob & WithMaxTaskHours(double value)
Definition PentestJob.h:569
void SetDocuments(DocumentsT &&value)
Definition PentestJob.h:203
const Aws::Utils::DateTime & GetCreatedAt() const
Definition PentestJob.h:718
PentestJob & AddSourceCode(SourceCodeT &&value)
Definition PentestJob.h:237
const Aws::Vector< RiskType > & GetExcludeRiskTypes() const
Definition PentestJob.h:296
const Aws::String & GetPentestId() const
Definition PentestJob.h:82
PentestJob & WithExcludePaths(ExcludePathsT &&value)
Definition PentestJob.h:256
const Aws::Vector< ExecutionContext > & GetExecutionContext() const
Definition PentestJob.h:343
const Aws::Vector< SourceCodeRepository > & GetSourceCode() const
Definition PentestJob.h:224
const Aws::Vector< Aws::String > & GetSelectedFindingIds() const
Definition PentestJob.h:597
const Aws::Vector< SkillType > & GetDisableManagedSkills() const
Definition PentestJob.h:539
void SetPentestId(PentestIdT &&value)
Definition PentestJob.h:85
PentestJob & WithPentestJobId(PentestJobIdT &&value)
Definition PentestJob.h:72
const VpcConfig & GetVpcConfig() const
Definition PentestJob.h:403
void SetExcludePaths(ExcludePathsT &&value)
Definition PentestJob.h:251
PentestJob & AddExcludePaths(ExcludePathsT &&value)
Definition PentestJob.h:261
void SetErrorInformation(ErrorInformationT &&value)
Definition PentestJob.h:442
void SetUpdatedAt(UpdatedAtT &&value)
Definition PentestJob.h:739
PentestJob & WithSourceCode(SourceCodeT &&value)
Definition PentestJob.h:232
PentestJob & AddExecutionContext(ExecutionContextT &&value)
Definition PentestJob.h:356
const Aws::Vector< IntegratedRepository > & GetIntegratedRepositories() const
Definition PentestJob.h:457
PentestJob & AddDocuments(DocumentsT &&value)
Definition PentestJob.h:213
PentestJob & WithServiceRole(ServiceRoleT &&value)
Definition PentestJob.h:375
void SetDisableManagedSkills(DisableManagedSkillsT &&value)
Definition PentestJob.h:542
void SetTrustedCaCertificates(TrustedCaCertificatesT &&value)
Definition PentestJob.h:485
const Aws::Vector< Actor > & GetActors() const
Definition PentestJob.h:176
AWS_SECURITYAGENT_API PentestJob(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition PentestJob.h:736
const ReportDestination & GetReportDestination() const
Definition PentestJob.h:622
AWS_SECURITYAGENT_API PentestJob & operator=(Aws::Utils::Json::JsonView jsonValue)
PentestJob & WithJobType(JobType value)
Definition PentestJob.h:586
void SetSelectedFindingIds(SelectedFindingIdsT &&value)
Definition PentestJob.h:600
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
PentestJob & WithStatus(JobStatus value)
Definition PentestJob.h:142
PentestJob & WithOverview(OverviewT &&value)
Definition PentestJob.h:126
void SetEndpoints(EndpointsT &&value)
Definition PentestJob.h:155
void SetScopeChanges(ScopeChangesT &&value)
Definition PentestJob.h:681
PentestJob & WithIntegratedRepositories(IntegratedRepositoriesT &&value)
Definition PentestJob.h:465
PentestJob & WithTrustedCaCertificates(TrustedCaCertificatesT &&value)
Definition PentestJob.h:490
void SetCicdConfiguration(CicdConfigurationT &&value)
Definition PentestJob.h:703
void SetExcludeRiskTypes(ExcludeRiskTypesT &&value)
Definition PentestJob.h:299
PentestJob & AddIntegratedRepositories(IntegratedRepositoriesT &&value)
Definition PentestJob.h:470
PentestJob & WithSteps(StepsT &&value)
Definition PentestJob.h:327
void SetOverview(OverviewT &&value)
Definition PentestJob.h:121
const Aws::Vector< Step > & GetSteps() const
Definition PentestJob.h:319
PentestJob & AddSteps(StepsT &&value)
Definition PentestJob.h:332
const Aws::Vector< Endpoint > & GetEndpoints() const
Definition PentestJob.h:152
PentestJob & WithExcludeRiskTypes(ExcludeRiskTypesT &&value)
Definition PentestJob.h:304
const Aws::Vector< DocumentInfo > & GetDocuments() const
Definition PentestJob.h:200
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue