Interface StartPentestJobRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StartPentestJobRequest.Builder,,StartPentestJobRequest> SdkBuilder<StartPentestJobRequest.Builder,,StartPentestJobRequest> SdkPojo,SdkRequest.Builder,SecurityAgentRequest.Builder
- Enclosing class:
StartPentestJobRequest
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier of the agent space.The type of pentest job to start.The type of pentest job to start.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The unique identifier of the pentest to start a job for.scopeChanges(Collection<ScopeChange> scopeChanges) The code changes that define the scope of a CI/CD pentest job.scopeChanges(Consumer<ScopeChange.Builder>... scopeChanges) The code changes that define the scope of a CI/CD pentest job.scopeChanges(ScopeChange... scopeChanges) The code changes that define the scope of a CI/CD pentest job.selectedFindingIds(String... selectedFindingIds) The list of finding identifiers to revalidate.selectedFindingIds(Collection<String> selectedFindingIds) The list of finding identifiers to revalidate.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.securityagent.model.SecurityAgentRequest.Builder
build
-
Method Details
-
agentSpaceId
The unique identifier of the agent space.
- Parameters:
agentSpaceId- The unique identifier of the agent space.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pentestId
The unique identifier of the pentest to start a job for.
- Parameters:
pentestId- The unique identifier of the pentest to start a job for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobType
The type of pentest job to start. Valid values are FULL, REVALIDATION, and CICD. When set to REVALIDATION, the selectedFindingIds parameter is required. When set to CICD, the scopeChanges parameter defines the code changes to test.
- Parameters:
jobType- The type of pentest job to start. Valid values are FULL, REVALIDATION, and CICD. When set to REVALIDATION, the selectedFindingIds parameter is required. When set to CICD, the scopeChanges parameter defines the code changes to test.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobType
The type of pentest job to start. Valid values are FULL, REVALIDATION, and CICD. When set to REVALIDATION, the selectedFindingIds parameter is required. When set to CICD, the scopeChanges parameter defines the code changes to test.
- Parameters:
jobType- The type of pentest job to start. Valid values are FULL, REVALIDATION, and CICD. When set to REVALIDATION, the selectedFindingIds parameter is required. When set to CICD, the scopeChanges parameter defines the code changes to test.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selectedFindingIds
The list of finding identifiers to revalidate. Required when jobType is REVALIDATION. Each finding must belong to the same agent space and pentest.
- Parameters:
selectedFindingIds- The list of finding identifiers to revalidate. Required when jobType is REVALIDATION. Each finding must belong to the same agent space and pentest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectedFindingIds
The list of finding identifiers to revalidate. Required when jobType is REVALIDATION. Each finding must belong to the same agent space and pentest.
- Parameters:
selectedFindingIds- The list of finding identifiers to revalidate. Required when jobType is REVALIDATION. Each finding must belong to the same agent space and pentest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopeChanges
The code changes that define the scope of a CI/CD pentest job. Provide this when starting a job with jobType CICD to test only the changes in the current pipeline run.
- Parameters:
scopeChanges- The code changes that define the scope of a CI/CD pentest job. Provide this when starting a job with jobType CICD to test only the changes in the current pipeline run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopeChanges
The code changes that define the scope of a CI/CD pentest job. Provide this when starting a job with jobType CICD to test only the changes in the current pipeline run.
- Parameters:
scopeChanges- The code changes that define the scope of a CI/CD pentest job. Provide this when starting a job with jobType CICD to test only the changes in the current pipeline run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopeChanges
The code changes that define the scope of a CI/CD pentest job. Provide this when starting a job with jobType CICD to test only the changes in the current pipeline run.
This is a convenience method that creates an instance of theScopeChange.Builderavoiding the need to create one manually viaScopeChange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscopeChanges(List<ScopeChange>).- Parameters:
scopeChanges- a consumer that will call methods onScopeChange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
StartPentestJobRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartPentestJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-