Interface PentestJob.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PentestJob.Builder,,PentestJob> SdkBuilder<PentestJob.Builder,,PentestJob> SdkPojo
- Enclosing class:
PentestJob
-
Method Summary
Modifier and TypeMethodDescriptionactors(Collection<Actor> actors) List of actors that interact with the systemactors(Consumer<Actor.Builder>... actors) List of actors that interact with the systemList of actors that interact with the systemallowedDomains(Collection<Endpoint> allowedDomains) List of allowed domains for network accessallowedDomains(Consumer<Endpoint.Builder>... allowedDomains) List of allowed domains for network accessallowedDomains(Endpoint... allowedDomains) List of allowed domains for network accesscodeRemediationStrategy(String codeRemediationStrategy) Strategy for code remediation on findingscodeRemediationStrategy(CodeRemediationStrategy codeRemediationStrategy) Strategy for code remediation on findingsTimestamp when the pentest job was createddocuments(Collection<DocumentInfo> documents) List of documents providing context for testingdocuments(Consumer<DocumentInfo.Builder>... documents) List of documents providing context for testingdocuments(DocumentInfo... documents) List of documents providing context for testingendpoints(Collection<Endpoint> endpoints) List of web application endpoints to testendpoints(Consumer<Endpoint.Builder>... endpoints) List of web application endpoints to testList of web application endpoints to testdefault PentestJob.BuildererrorInformation(Consumer<ErrorInformation.Builder> errorInformation) Error information regarding the pentest joberrorInformation(ErrorInformation errorInformation) Error information regarding the pentest jobexcludePaths(Collection<Endpoint> excludePaths) List of URL paths to exclude from testingexcludePaths(Consumer<Endpoint.Builder>... excludePaths) List of URL paths to exclude from testingexcludePaths(Endpoint... excludePaths) List of URL paths to exclude from testingexcludeRiskTypes(Collection<RiskType> excludeRiskTypes) A list of risk types excluded from the pentest jobexcludeRiskTypes(RiskType... excludeRiskTypes) A list of risk types excluded from the pentest jobexcludeRiskTypesWithStrings(String... excludeRiskTypes) A list of risk types excluded from the pentest jobexcludeRiskTypesWithStrings(Collection<String> excludeRiskTypes) A list of risk types excluded from the pentest jobexecutionContext(Collection<ExecutionContext> executionContext) A list of execution context messages associated with the pentest jobexecutionContext(Consumer<ExecutionContext.Builder>... executionContext) A list of execution context messages associated with the pentest jobexecutionContext(ExecutionContext... executionContext) A list of execution context messages associated with the pentest jobintegratedRepositories(Collection<IntegratedRepository> integratedRepositories) List of integrated code repositoriesintegratedRepositories(Consumer<IntegratedRepository.Builder>... integratedRepositories) List of integrated code repositoriesintegratedRepositories(IntegratedRepository... integratedRepositories) List of integrated code repositoriesdefault PentestJob.BuilderlogConfig(Consumer<CloudWatchLog.Builder> logConfig) CloudWatch log group and stream prefix where pentest job logs are storedlogConfig(CloudWatchLog logConfig) CloudWatch log group and stream prefix where pentest job logs are storeddefault PentestJob.BuildernetworkTrafficConfig(Consumer<NetworkTrafficConfig.Builder> networkTrafficConfig) Configuration for network traffic filteringnetworkTrafficConfig(NetworkTrafficConfig networkTrafficConfig) Configuration for network traffic filteringOverview or description of the pentest jobIdentifier of the parent pentestpentestJobId(String pentestJobId) Unique identifier of the pentest jobserviceRole(String serviceRole) Service role ARN for accessing customer resourcessourceCode(Collection<SourceCodeRepository> sourceCode) List of source code repositories for static analysissourceCode(Consumer<SourceCodeRepository.Builder>... sourceCode) List of source code repositories for static analysissourceCode(SourceCodeRepository... sourceCode) List of source code repositories for static analysisCurrent status of the pentest jobCurrent status of the pentest jobsteps(Collection<Step> steps) List of execution steps for the pentest jobsteps(Consumer<Step.Builder>... steps) List of execution steps for the pentest jobList of execution steps for the pentest jobTitle or name of the pentestTimestamp when the pentest job was last updateddefault PentestJob.BuildervpcConfig(Consumer<VpcConfig.Builder> vpcConfig) VPC configuration that the Security Agent accessesVPC configuration that the Security Agent accessesMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
pentestJobId
Unique identifier of the pentest job
- Parameters:
pentestJobId- Unique identifier of the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pentestId
Identifier of the parent pentest
- Parameters:
pentestId- Identifier of the parent pentest- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
title
Title or name of the pentest
- Parameters:
title- Title or name of the pentest- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overview
Overview or description of the pentest job
- Parameters:
overview- Overview or description of the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Current status of the pentest job
- Parameters:
status- Current status of the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
Current status of the pentest job
- Parameters:
status- Current status of the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
endpoints
List of web application endpoints to test
- Parameters:
endpoints- List of web application endpoints to test- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endpoints
List of web application endpoints to test
- Parameters:
endpoints- List of web application endpoints to test- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endpoints
List of web application endpoints to test
This is a convenience method that creates an instance of theEndpoint.Builderavoiding the need to create one manually viaEndpoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toendpoints(List<Endpoint>).- Parameters:
endpoints- a consumer that will call methods onEndpoint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actors
List of actors that interact with the system
- Parameters:
actors- List of actors that interact with the system- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actors
List of actors that interact with the system
- Parameters:
actors- List of actors that interact with the system- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actors
List of actors that interact with the system
This is a convenience method that creates an instance of theActor.Builderavoiding the need to create one manually viaActor.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactors(List<Actor>).- Parameters:
actors- a consumer that will call methods onActor.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
documents
List of documents providing context for testing
- Parameters:
documents- List of documents providing context for testing- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documents
List of documents providing context for testing
- Parameters:
documents- List of documents providing context for testing- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documents
List of documents providing context for testing
This is a convenience method that creates an instance of theDocumentInfo.Builderavoiding the need to create one manually viaDocumentInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocuments(List<DocumentInfo>).- Parameters:
documents- a consumer that will call methods onDocumentInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceCode
List of source code repositories for static analysis
- Parameters:
sourceCode- List of source code repositories for static analysis- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceCode
List of source code repositories for static analysis
- Parameters:
sourceCode- List of source code repositories for static analysis- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceCode
List of source code repositories for static analysis
This is a convenience method that creates an instance of theSourceCodeRepository.Builderavoiding the need to create one manually viaSourceCodeRepository.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceCode(List<SourceCodeRepository>).- Parameters:
sourceCode- a consumer that will call methods onSourceCodeRepository.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
excludePaths
List of URL paths to exclude from testing
- Parameters:
excludePaths- List of URL paths to exclude from testing- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludePaths
List of URL paths to exclude from testing
- Parameters:
excludePaths- List of URL paths to exclude from testing- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludePaths
List of URL paths to exclude from testing
This is a convenience method that creates an instance of theEndpoint.Builderavoiding the need to create one manually viaEndpoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexcludePaths(List<Endpoint>).- Parameters:
excludePaths- a consumer that will call methods onEndpoint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allowedDomains
List of allowed domains for network access
- Parameters:
allowedDomains- List of allowed domains for network access- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedDomains
List of allowed domains for network access
- Parameters:
allowedDomains- List of allowed domains for network access- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedDomains
List of allowed domains for network access
This is a convenience method that creates an instance of theEndpoint.Builderavoiding the need to create one manually viaEndpoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toallowedDomains(List<Endpoint>).- Parameters:
allowedDomains- a consumer that will call methods onEndpoint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
excludeRiskTypesWithStrings
A list of risk types excluded from the pentest job
- Parameters:
excludeRiskTypes- A list of risk types excluded from the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeRiskTypesWithStrings
A list of risk types excluded from the pentest job
- Parameters:
excludeRiskTypes- A list of risk types excluded from the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeRiskTypes
A list of risk types excluded from the pentest job
- Parameters:
excludeRiskTypes- A list of risk types excluded from the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeRiskTypes
A list of risk types excluded from the pentest job
- Parameters:
excludeRiskTypes- A list of risk types excluded from the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
steps
List of execution steps for the pentest job
- Parameters:
steps- List of execution steps for the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
steps
List of execution steps for the pentest job
- Parameters:
steps- List of execution steps for the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
steps
List of execution steps for the pentest job
This is a convenience method that creates an instance of theStep.Builderavoiding the need to create one manually viaStep.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosteps(List<Step>).- Parameters:
steps- a consumer that will call methods onStep.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionContext
A list of execution context messages associated with the pentest job
- Parameters:
executionContext- A list of execution context messages associated with the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionContext
A list of execution context messages associated with the pentest job
- Parameters:
executionContext- A list of execution context messages associated with the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionContext
A list of execution context messages associated with the pentest job
This is a convenience method that creates an instance of theExecutionContext.Builderavoiding the need to create one manually viaExecutionContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexecutionContext(List<ExecutionContext>).- Parameters:
executionContext- a consumer that will call methods onExecutionContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serviceRole
Service role ARN for accessing customer resources
- Parameters:
serviceRole- Service role ARN for accessing customer resources- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfig
CloudWatch log group and stream prefix where pentest job logs are stored
- Parameters:
logConfig- CloudWatch log group and stream prefix where pentest job logs are stored- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfig
CloudWatch log group and stream prefix where pentest job logs are stored
This is a convenience method that creates an instance of theCloudWatchLog.Builderavoiding the need to create one manually viaCloudWatchLog.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologConfig(CloudWatchLog).- Parameters:
logConfig- a consumer that will call methods onCloudWatchLog.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpcConfig
VPC configuration that the Security Agent accesses
- Parameters:
vpcConfig- VPC configuration that the Security Agent accesses- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
VPC configuration that the Security Agent accesses
This is a convenience method that creates an instance of theVpcConfig.Builderavoiding the need to create one manually viaVpcConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovpcConfig(VpcConfig).- Parameters:
vpcConfig- a consumer that will call methods onVpcConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkTrafficConfig
Configuration for network traffic filtering
- Parameters:
networkTrafficConfig- Configuration for network traffic filtering- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkTrafficConfig
default PentestJob.Builder networkTrafficConfig(Consumer<NetworkTrafficConfig.Builder> networkTrafficConfig) Configuration for network traffic filtering
This is a convenience method that creates an instance of theNetworkTrafficConfig.Builderavoiding the need to create one manually viaNetworkTrafficConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworkTrafficConfig(NetworkTrafficConfig).- Parameters:
networkTrafficConfig- a consumer that will call methods onNetworkTrafficConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorInformation
Error information regarding the pentest job
- Parameters:
errorInformation- Error information regarding the pentest job- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorInformation
Error information regarding the pentest job
This is a convenience method that creates an instance of theErrorInformation.Builderavoiding the need to create one manually viaErrorInformation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrorInformation(ErrorInformation).- Parameters:
errorInformation- a consumer that will call methods onErrorInformation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
integratedRepositories
List of integrated code repositories
- Parameters:
integratedRepositories- List of integrated code repositories- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
integratedRepositories
List of integrated code repositories
- Parameters:
integratedRepositories- List of integrated code repositories- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
integratedRepositories
PentestJob.Builder integratedRepositories(Consumer<IntegratedRepository.Builder>... integratedRepositories) List of integrated code repositories
This is a convenience method that creates an instance of theIntegratedRepository.Builderavoiding the need to create one manually viaIntegratedRepository.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tointegratedRepositories(List<IntegratedRepository>).- Parameters:
integratedRepositories- a consumer that will call methods onIntegratedRepository.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
codeRemediationStrategy
Strategy for code remediation on findings
- Parameters:
codeRemediationStrategy- Strategy for code remediation on findings- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
codeRemediationStrategy
Strategy for code remediation on findings
- Parameters:
codeRemediationStrategy- Strategy for code remediation on findings- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
Timestamp when the pentest job was created
- Parameters:
createdAt- Timestamp when the pentest job was created- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
Timestamp when the pentest job was last updated
- Parameters:
updatedAt- Timestamp when the pentest job was last updated- Returns:
- Returns a reference to this object so that method calls can be chained together.
-