Interface ResumePentestJobRequest.Builder

  • Method Details

    • agentSpaceId

      ResumePentestJobRequest.Builder agentSpaceId(String 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

      ResumePentestJobRequest.Builder pentestJobId(String 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 the Actor.Builder avoiding the need to create one manually via Actor.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to actors(List<Actor>).

      Parameters:
      actors - a consumer that will call methods on Actor.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • networkTrafficConfig

      ResumePentestJobRequest.Builder networkTrafficConfig(NetworkTrafficConfig 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 the NetworkTrafficConfig.Builder avoiding the need to create one manually via NetworkTrafficConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to networkTrafficConfig(NetworkTrafficConfig).

      Parameters:
      networkTrafficConfig - a consumer that will call methods on NetworkTrafficConfig.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 the VpcConfig.Builder avoiding the need to create one manually via VpcConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to vpcConfig(VpcConfig).

      Parameters:
      vpcConfig - a consumer that will call methods on VpcConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maxTaskHours

      ResumePentestJobRequest.Builder maxTaskHours(Double 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

      ResumePentestJobRequest.Builder 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. 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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.