Interface ResumePentestJobRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ResumePentestJobRequest.Builder,,ResumePentestJobRequest> SdkBuilder<ResumePentestJobRequest.Builder,,ResumePentestJobRequest> SdkPojo,SdkRequest.Builder,SecurityAgentRequest.Builder
- Enclosing class:
ResumePentestJobRequest
-
Method Summary
Modifier and TypeMethodDescriptionactors(Collection<Actor> actors) The actors to use for the resumed job.actors(Consumer<Actor.Builder>... actors) The actors to use for the resumed job.The actors to use for the resumed job.agentSpaceId(String agentSpaceId) The unique identifier of the agent space.copyConfigFromPentest(Boolean copyConfigFromPentest) Specifies whether to copy the current actors, network traffic configuration, VPC configuration, and maximum task hours from the pentest to the resumed job.maxTaskHours(Double maxTaskHours) The maximum number of task hours for the resumed job.default ResumePentestJobRequest.BuildernetworkTrafficConfig(Consumer<NetworkTrafficConfig.Builder> networkTrafficConfig) The network traffic configuration to use for the resumed job.networkTrafficConfig(NetworkTrafficConfig networkTrafficConfig) The network traffic configuration to use for the resumed job.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.pentestJobId(String pentestJobId) The unique identifier of the pentest job to resume.default ResumePentestJobRequest.BuildervpcConfig(Consumer<VpcConfig.Builder> vpcConfig) The VPC configuration to use for the resumed job.The VPC configuration to use for the resumed job.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.
-
pentestJobId
The unique identifier of the pentest job to resume.
- Parameters:
pentestJobId- The unique identifier of the pentest job to resume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actors
The actors to use for the resumed job. When specified, replaces the actors the job used before it stopped.
- Parameters:
actors- The actors to use for the resumed job. When specified, replaces the actors the job used before it stopped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actors
The actors to use for the resumed job. When specified, replaces the actors the job used before it stopped.
- Parameters:
actors- The actors to use for the resumed job. When specified, replaces the actors the job used before it stopped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actors
The actors to use for the resumed job. When specified, replaces the actors the job used before it stopped.
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:
-
networkTrafficConfig
The network traffic configuration to use for the resumed job. When specified, replaces the configuration the job used before it stopped.
- Parameters:
networkTrafficConfig- The network traffic configuration to use for the resumed job. When specified, replaces the configuration the job used before it stopped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkTrafficConfig
default ResumePentestJobRequest.Builder networkTrafficConfig(Consumer<NetworkTrafficConfig.Builder> networkTrafficConfig) The network traffic configuration to use for the resumed job. When specified, replaces the configuration the job used before it stopped.
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:
-
vpcConfig
The VPC configuration to use for the resumed job. When specified, replaces the configuration the job used before it stopped.
- Parameters:
vpcConfig- The VPC configuration to use for the resumed job. When specified, replaces the configuration the job used before it stopped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
The VPC configuration to use for the resumed job. When specified, replaces the configuration the job used before it stopped.
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:
-
maxTaskHours
The maximum number of task hours for the resumed job. To resume a job that stopped because it reached its task hours limit, specify a higher value.
- Parameters:
maxTaskHours- The maximum number of task hours for the resumed job. To resume a job that stopped because it reached its task hours limit, specify a higher value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyConfigFromPentest
Specifies whether to copy the current actors, network traffic configuration, VPC configuration, and maximum task hours from the pentest to the resumed job. The job's scope, such as its target endpoints, is never changed. Values you specify in this request take precedence over copied values.
- Parameters:
copyConfigFromPentest- Specifies whether to copy the current actors, network traffic configuration, VPC configuration, and maximum task hours from the pentest to the resumed job. The job's scope, such as its target endpoints, is never changed. Values you specify in this request take precedence over copied values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ResumePentestJobRequest.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
ResumePentestJobRequest.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.
-