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>
43namespace SecurityAgent {
66 template <
typename PentestJobIdT = Aws::String>
68 m_pentestJobIdHasBeenSet =
true;
69 m_pentestJobId = std::forward<PentestJobIdT>(value);
71 template <
typename PentestJobIdT = Aws::String>
84 template <
typename PentestIdT = Aws::String>
86 m_pentestIdHasBeenSet =
true;
87 m_pentestId = std::forward<PentestIdT>(value);
89 template <
typename PentestIdT = Aws::String>
102 template <
typename TitleT = Aws::String>
104 m_titleHasBeenSet =
true;
105 m_title = std::forward<TitleT>(value);
107 template <
typename TitleT = Aws::String>
109 SetTitle(std::forward<TitleT>(value));
120 template <
typename OverviewT = Aws::String>
122 m_overviewHasBeenSet =
true;
123 m_overview = std::forward<OverviewT>(value);
125 template <
typename OverviewT = Aws::String>
139 m_statusHasBeenSet =
true;
154 template <
typename Endpo
intsT = Aws::Vector<Endpo
int>>
156 m_endpointsHasBeenSet =
true;
157 m_endpoints = std::forward<EndpointsT>(value);
159 template <
typename Endpo
intsT = Aws::Vector<Endpo
int>>
164 template <
typename Endpo
intsT = Endpo
int>
166 m_endpointsHasBeenSet =
true;
167 m_endpoints.emplace_back(std::forward<EndpointsT>(value));
178 template <
typename ActorsT = Aws::Vector<Actor>>
180 m_actorsHasBeenSet =
true;
181 m_actors = std::forward<ActorsT>(value);
183 template <
typename ActorsT = Aws::Vector<Actor>>
188 template <
typename ActorsT = Actor>
190 m_actorsHasBeenSet =
true;
191 m_actors.emplace_back(std::forward<ActorsT>(value));
202 template <
typename DocumentsT = Aws::Vector<DocumentInfo>>
204 m_documentsHasBeenSet =
true;
205 m_documents = std::forward<DocumentsT>(value);
207 template <
typename DocumentsT = Aws::Vector<DocumentInfo>>
212 template <
typename DocumentsT = DocumentInfo>
214 m_documentsHasBeenSet =
true;
215 m_documents.emplace_back(std::forward<DocumentsT>(value));
226 template <
typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
228 m_sourceCodeHasBeenSet =
true;
229 m_sourceCode = std::forward<SourceCodeT>(value);
231 template <
typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
236 template <
typename SourceCodeT = SourceCodeRepository>
238 m_sourceCodeHasBeenSet =
true;
239 m_sourceCode.emplace_back(std::forward<SourceCodeT>(value));
250 template <
typename ExcludePathsT = Aws::Vector<Endpo
int>>
252 m_excludePathsHasBeenSet =
true;
253 m_excludePaths = std::forward<ExcludePathsT>(value);
255 template <
typename ExcludePathsT = Aws::Vector<Endpo
int>>
260 template <
typename ExcludePathsT = Endpo
int>
262 m_excludePathsHasBeenSet =
true;
263 m_excludePaths.emplace_back(std::forward<ExcludePathsT>(value));
274 template <
typename AllowedDomainsT = Aws::Vector<Endpo
int>>
276 m_allowedDomainsHasBeenSet =
true;
277 m_allowedDomains = std::forward<AllowedDomainsT>(value);
279 template <
typename AllowedDomainsT = Aws::Vector<Endpo
int>>
284 template <
typename AllowedDomainsT = Endpo
int>
286 m_allowedDomainsHasBeenSet =
true;
287 m_allowedDomains.emplace_back(std::forward<AllowedDomainsT>(value));
298 template <
typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
300 m_excludeRiskTypesHasBeenSet =
true;
301 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
303 template <
typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
309 m_excludeRiskTypesHasBeenSet =
true;
310 m_excludeRiskTypes.push_back(value);
321 template <
typename StepsT = Aws::Vector<Step>>
323 m_stepsHasBeenSet =
true;
324 m_steps = std::forward<StepsT>(value);
326 template <
typename StepsT = Aws::Vector<Step>>
328 SetSteps(std::forward<StepsT>(value));
331 template <
typename StepsT = Step>
333 m_stepsHasBeenSet =
true;
334 m_steps.emplace_back(std::forward<StepsT>(value));
345 template <
typename ExecutionContextT = Aws::Vector<ExecutionContext>>
347 m_executionContextHasBeenSet =
true;
348 m_executionContext = std::forward<ExecutionContextT>(value);
350 template <
typename ExecutionContextT = Aws::Vector<ExecutionContext>>
355 template <
typename ExecutionContextT = ExecutionContext>
357 m_executionContextHasBeenSet =
true;
358 m_executionContext.emplace_back(std::forward<ExecutionContextT>(value));
369 template <
typename ServiceRoleT = Aws::String>
371 m_serviceRoleHasBeenSet =
true;
372 m_serviceRole = std::forward<ServiceRoleT>(value);
374 template <
typename ServiceRoleT = Aws::String>
387 template <
typename LogConfigT = CloudWatchLog>
389 m_logConfigHasBeenSet =
true;
390 m_logConfig = std::forward<LogConfigT>(value);
392 template <
typename LogConfigT = CloudWatchLog>
405 template <
typename VpcConfigT = VpcConfig>
407 m_vpcConfigHasBeenSet =
true;
408 m_vpcConfig = std::forward<VpcConfigT>(value);
410 template <
typename VpcConfigT = VpcConfig>
423 template <
typename NetworkTrafficConfigT = NetworkTrafficConfig>
425 m_networkTrafficConfigHasBeenSet =
true;
426 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
428 template <
typename NetworkTrafficConfigT = NetworkTrafficConfig>
441 template <
typename ErrorInformationT = ErrorInformation>
443 m_errorInformationHasBeenSet =
true;
444 m_errorInformation = std::forward<ErrorInformationT>(value);
446 template <
typename ErrorInformationT = ErrorInformation>
459 template <
typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
461 m_integratedRepositoriesHasBeenSet =
true;
462 m_integratedRepositories = std::forward<IntegratedRepositoriesT>(value);
464 template <
typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
469 template <
typename IntegratedRepositoriesT = IntegratedRepository>
471 m_integratedRepositoriesHasBeenSet =
true;
472 m_integratedRepositories.emplace_back(std::forward<IntegratedRepositoriesT>(value));
484 template <
typename TrustedCaCertificatesT = Aws::Vector<TrustedCaCertificate>>
486 m_trustedCaCertificatesHasBeenSet =
true;
487 m_trustedCaCertificates = std::forward<TrustedCaCertificatesT>(value);
489 template <
typename TrustedCaCertificatesT = Aws::Vector<TrustedCaCertificate>>
494 template <
typename TrustedCaCertificatesT = TrustedCaCertificate>
496 m_trustedCaCertificatesHasBeenSet =
true;
497 m_trustedCaCertificates.emplace_back(std::forward<TrustedCaCertificatesT>(value));
509 m_codeRemediationStrategyHasBeenSet =
true;
510 m_codeRemediationStrategy = value;
525 m_cleanUpStrategyHasBeenSet =
true;
526 m_cleanUpStrategy = value;
541 template <
typename DisableManagedSkillsT = Aws::Vector<SkillType>>
543 m_disableManagedSkillsHasBeenSet =
true;
544 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
546 template <
typename DisableManagedSkillsT = Aws::Vector<SkillType>>
552 m_disableManagedSkillsHasBeenSet =
true;
553 m_disableManagedSkills.push_back(value);
566 m_maxTaskHoursHasBeenSet =
true;
567 m_maxTaskHours = value;
583 m_jobTypeHasBeenSet =
true;
599 template <
typename SelectedFindingIdsT = Aws::Vector<Aws::String>>
601 m_selectedFindingIdsHasBeenSet =
true;
602 m_selectedFindingIds = std::forward<SelectedFindingIdsT>(value);
604 template <
typename SelectedFindingIdsT = Aws::Vector<Aws::String>>
609 template <
typename SelectedFindingIdsT = Aws::String>
611 m_selectedFindingIdsHasBeenSet =
true;
612 m_selectedFindingIds.emplace_back(std::forward<SelectedFindingIdsT>(value));
624 template <
typename ReportDestinationT = ReportDestination>
626 m_reportDestinationHasBeenSet =
true;
627 m_reportDestination = std::forward<ReportDestinationT>(value);
629 template <
typename ReportDestinationT = ReportDestination>
642 template <
typename ReportUrlT = Aws::String>
644 m_reportUrlHasBeenSet =
true;
645 m_reportUrl = std::forward<ReportUrlT>(value);
647 template <
typename ReportUrlT = Aws::String>
661 template <
typename ScopeResultT = ScopeResult>
663 m_scopeResultHasBeenSet =
true;
664 m_scopeResult = std::forward<ScopeResultT>(value);
666 template <
typename ScopeResultT = ScopeResult>
680 template <
typename ScopeChangesT = Aws::Vector<ScopeChange>>
682 m_scopeChangesHasBeenSet =
true;
683 m_scopeChanges = std::forward<ScopeChangesT>(value);
685 template <
typename ScopeChangesT = Aws::Vector<ScopeChange>>
690 template <
typename ScopeChangesT = ScopeChange>
692 m_scopeChangesHasBeenSet =
true;
693 m_scopeChanges.emplace_back(std::forward<ScopeChangesT>(value));
702 template <
typename CicdConfigurationT = CiCdConfiguration>
704 m_cicdConfigurationHasBeenSet =
true;
705 m_cicdConfiguration = std::forward<CicdConfigurationT>(value);
707 template <
typename CicdConfigurationT = CiCdConfiguration>
720 template <
typename CreatedAtT = Aws::Utils::DateTime>
722 m_createdAtHasBeenSet =
true;
723 m_createdAt = std::forward<CreatedAtT>(value);
725 template <
typename CreatedAtT = Aws::Utils::DateTime>
738 template <
typename UpdatedAtT = Aws::Utils::DateTime>
740 m_updatedAtHasBeenSet =
true;
741 m_updatedAt = std::forward<UpdatedAtT>(value);
743 template <
typename UpdatedAtT = Aws::Utils::DateTime>
780 CloudWatchLog m_logConfig;
782 VpcConfig m_vpcConfig;
784 NetworkTrafficConfig m_networkTrafficConfig;
786 ErrorInformation m_errorInformation;
798 double m_maxTaskHours{0.0};
804 ReportDestination m_reportDestination;
808 ScopeResult m_scopeResult;
812 CiCdConfiguration m_cicdConfiguration;
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;
const Aws::String & GetReportUrl() const
bool CreatedAtHasBeenSet() const
const ErrorInformation & GetErrorInformation() const
bool SelectedFindingIdsHasBeenSet() const
bool LogConfigHasBeenSet() const
PentestJob & WithLogConfig(LogConfigT &&value)
bool MaxTaskHoursHasBeenSet() const
bool ExcludePathsHasBeenSet() const
const ScopeResult & GetScopeResult() const
const Aws::String & GetPentestJobId() const
PentestJob & WithDocuments(DocumentsT &&value)
bool PentestJobIdHasBeenSet() const
const Aws::String & GetOverview() const
const Aws::Vector< TrustedCaCertificate > & GetTrustedCaCertificates() const
bool ReportDestinationHasBeenSet() const
PentestJob & WithCleanUpStrategy(CleanUpStrategy value)
PentestJob & WithAllowedDomains(AllowedDomainsT &&value)
PentestJob & WithScopeResult(ScopeResultT &&value)
PentestJob & WithCicdConfiguration(CicdConfigurationT &&value)
bool IntegratedRepositoriesHasBeenSet() const
bool StepsHasBeenSet() const
bool ServiceRoleHasBeenSet() const
CodeRemediationStrategy GetCodeRemediationStrategy() const
PentestJob & WithCreatedAt(CreatedAtT &&value)
PentestJob & WithCodeRemediationStrategy(CodeRemediationStrategy value)
const Aws::Vector< Endpoint > & GetAllowedDomains() const
PentestJob & AddScopeChanges(ScopeChangesT &&value)
void SetLogConfig(LogConfigT &&value)
PentestJob & AddDisableManagedSkills(SkillType value)
void SetServiceRole(ServiceRoleT &&value)
void SetPentestJobId(PentestJobIdT &&value)
void SetSourceCode(SourceCodeT &&value)
void SetNetworkTrafficConfig(NetworkTrafficConfigT &&value)
void SetVpcConfig(VpcConfigT &&value)
void SetStatus(JobStatus value)
const Aws::Vector< ScopeChange > & GetScopeChanges() const
PentestJob & WithPentestId(PentestIdT &&value)
bool CleanUpStrategyHasBeenSet() const
const Aws::String & GetTitle() const
PentestJob & WithDisableManagedSkills(DisableManagedSkillsT &&value)
PentestJob & WithTitle(TitleT &&value)
PentestJob & AddSelectedFindingIds(SelectedFindingIdsT &&value)
PentestJob & WithVpcConfig(VpcConfigT &&value)
PentestJob & WithReportUrl(ReportUrlT &&value)
void SetScopeResult(ScopeResultT &&value)
const NetworkTrafficConfig & GetNetworkTrafficConfig() const
PentestJob & WithErrorInformation(ErrorInformationT &&value)
CleanUpStrategy GetCleanUpStrategy() const
void SetCleanUpStrategy(CleanUpStrategy value)
bool PentestIdHasBeenSet() const
PentestJob & AddEndpoints(EndpointsT &&value)
const CloudWatchLog & GetLogConfig() const
PentestJob & WithNetworkTrafficConfig(NetworkTrafficConfigT &&value)
PentestJob & WithUpdatedAt(UpdatedAtT &&value)
void SetReportDestination(ReportDestinationT &&value)
PentestJob & WithSelectedFindingIds(SelectedFindingIdsT &&value)
PentestJob & AddAllowedDomains(AllowedDomainsT &&value)
const Aws::String & GetServiceRole() const
PentestJob & WithActors(ActorsT &&value)
PentestJob & WithScopeChanges(ScopeChangesT &&value)
PentestJob & WithEndpoints(EndpointsT &&value)
PentestJob & WithReportDestination(ReportDestinationT &&value)
void SetExecutionContext(ExecutionContextT &&value)
bool SourceCodeHasBeenSet() const
void SetReportUrl(ReportUrlT &&value)
PentestJob & AddActors(ActorsT &&value)
void SetActors(ActorsT &&value)
bool ScopeResultHasBeenSet() const
bool EndpointsHasBeenSet() const
PentestJob & AddTrustedCaCertificates(TrustedCaCertificatesT &&value)
void SetSteps(StepsT &&value)
const CiCdConfiguration & GetCicdConfiguration() const
PentestJob & AddExcludeRiskTypes(RiskType value)
bool ActorsHasBeenSet() const
PentestJob & WithExecutionContext(ExecutionContextT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetAllowedDomains(AllowedDomainsT &&value)
const Aws::Vector< Endpoint > & GetExcludePaths() const
AWS_SECURITYAGENT_API PentestJob()=default
void SetIntegratedRepositories(IntegratedRepositoriesT &&value)
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
PentestJob & WithMaxTaskHours(double value)
void SetDocuments(DocumentsT &&value)
bool StatusHasBeenSet() const
bool ErrorInformationHasBeenSet() const
bool CicdConfigurationHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
PentestJob & AddSourceCode(SourceCodeT &&value)
const Aws::Vector< RiskType > & GetExcludeRiskTypes() const
const Aws::String & GetPentestId() const
PentestJob & WithExcludePaths(ExcludePathsT &&value)
const Aws::Vector< ExecutionContext > & GetExecutionContext() const
const Aws::Vector< SourceCodeRepository > & GetSourceCode() const
bool TitleHasBeenSet() const
bool NetworkTrafficConfigHasBeenSet() const
const Aws::Vector< Aws::String > & GetSelectedFindingIds() const
double GetMaxTaskHours() const
const Aws::Vector< SkillType > & GetDisableManagedSkills() const
void SetPentestId(PentestIdT &&value)
PentestJob & WithPentestJobId(PentestJobIdT &&value)
const VpcConfig & GetVpcConfig() const
void SetExcludePaths(ExcludePathsT &&value)
PentestJob & AddExcludePaths(ExcludePathsT &&value)
void SetErrorInformation(ErrorInformationT &&value)
bool UpdatedAtHasBeenSet() const
bool AllowedDomainsHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
bool VpcConfigHasBeenSet() const
PentestJob & WithSourceCode(SourceCodeT &&value)
bool CodeRemediationStrategyHasBeenSet() const
PentestJob & AddExecutionContext(ExecutionContextT &&value)
bool ScopeChangesHasBeenSet() const
const Aws::Vector< IntegratedRepository > & GetIntegratedRepositories() const
PentestJob & AddDocuments(DocumentsT &&value)
PentestJob & WithServiceRole(ServiceRoleT &&value)
bool OverviewHasBeenSet() const
bool ReportUrlHasBeenSet() const
void SetDisableManagedSkills(DisableManagedSkillsT &&value)
void SetTrustedCaCertificates(TrustedCaCertificatesT &&value)
const Aws::Vector< Actor > & GetActors() const
AWS_SECURITYAGENT_API PentestJob(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
const ReportDestination & GetReportDestination() const
bool ExecutionContextHasBeenSet() const
bool DisableManagedSkillsHasBeenSet() const
void SetTitle(TitleT &&value)
AWS_SECURITYAGENT_API PentestJob & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TrustedCaCertificatesHasBeenSet() const
PentestJob & WithJobType(JobType value)
void SetSelectedFindingIds(SelectedFindingIdsT &&value)
JobStatus GetStatus() const
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMaxTaskHours(double value)
void SetJobType(JobType value)
PentestJob & WithStatus(JobStatus value)
PentestJob & WithOverview(OverviewT &&value)
void SetEndpoints(EndpointsT &&value)
void SetScopeChanges(ScopeChangesT &&value)
PentestJob & WithIntegratedRepositories(IntegratedRepositoriesT &&value)
JobType GetJobType() const
PentestJob & WithTrustedCaCertificates(TrustedCaCertificatesT &&value)
void SetCicdConfiguration(CicdConfigurationT &&value)
void SetExcludeRiskTypes(ExcludeRiskTypesT &&value)
PentestJob & AddIntegratedRepositories(IntegratedRepositoriesT &&value)
bool JobTypeHasBeenSet() const
PentestJob & WithSteps(StepsT &&value)
void SetOverview(OverviewT &&value)
const Aws::Vector< Step > & GetSteps() const
bool DocumentsHasBeenSet() const
PentestJob & AddSteps(StepsT &&value)
const Aws::Vector< Endpoint > & GetEndpoints() const
bool ExcludeRiskTypesHasBeenSet() const
PentestJob & WithExcludeRiskTypes(ExcludeRiskTypesT &&value)
const Aws::Vector< DocumentInfo > & GetDocuments() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue