Interface Pentest.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Pentest.Builder,Pentest>, SdkBuilder<Pentest.Builder,Pentest>, SdkPojo
Enclosing class:
Pentest

@Mutable @NotThreadSafe public static interface Pentest.Builder extends SdkPojo, CopyableBuilder<Pentest.Builder,Pentest>
  • Method Details

    • pentestId

      Pentest.Builder pentestId(String pentestId)

      The unique identifier of the pentest.

      Parameters:
      pentestId - The unique identifier of the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentSpaceId

      Pentest.Builder agentSpaceId(String agentSpaceId)

      The unique identifier of the agent space that contains the pentest.

      Parameters:
      agentSpaceId - The unique identifier of the agent space that contains the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • title

      Pentest.Builder title(String title)

      The title of the pentest.

      Parameters:
      title - The title of the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assets

      Pentest.Builder assets(Assets assets)

      The assets included in the pentest.

      Parameters:
      assets - The assets included in the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assets

      default Pentest.Builder assets(Consumer<Assets.Builder> assets)

      The assets included in the pentest.

      This is a convenience method that creates an instance of the Assets.Builder avoiding the need to create one manually via Assets.builder().

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

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

      Pentest.Builder excludeRiskTypesWithStrings(Collection<String> excludeRiskTypes)

      The list of risk types excluded from the pentest.

      Parameters:
      excludeRiskTypes - The list of risk types excluded from the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludeRiskTypesWithStrings

      Pentest.Builder excludeRiskTypesWithStrings(String... excludeRiskTypes)

      The list of risk types excluded from the pentest.

      Parameters:
      excludeRiskTypes - The list of risk types excluded from the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludeRiskTypes

      Pentest.Builder excludeRiskTypes(Collection<RiskType> excludeRiskTypes)

      The list of risk types excluded from the pentest.

      Parameters:
      excludeRiskTypes - The list of risk types excluded from the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludeRiskTypes

      Pentest.Builder excludeRiskTypes(RiskType... excludeRiskTypes)

      The list of risk types excluded from the pentest.

      Parameters:
      excludeRiskTypes - The list of risk types excluded from the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serviceRole

      Pentest.Builder serviceRole(String serviceRole)

      The IAM service role used for the pentest.

      Parameters:
      serviceRole - The IAM service role used for the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logConfig

      Pentest.Builder logConfig(CloudWatchLog logConfig)

      The CloudWatch Logs configuration for the pentest.

      Parameters:
      logConfig - The CloudWatch Logs configuration for the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logConfig

      default Pentest.Builder logConfig(Consumer<CloudWatchLog.Builder> logConfig)

      The CloudWatch Logs configuration for the pentest.

      This is a convenience method that creates an instance of the CloudWatchLog.Builder avoiding the need to create one manually via CloudWatchLog.builder().

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

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

      Pentest.Builder vpcConfig(VpcConfig vpcConfig)

      The VPC configuration for the pentest.

      Parameters:
      vpcConfig - The VPC configuration for the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vpcConfig

      default Pentest.Builder vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)

      The VPC configuration for the pentest.

      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:
    • networkTrafficConfig

      Pentest.Builder networkTrafficConfig(NetworkTrafficConfig networkTrafficConfig)

      The network traffic configuration for the pentest.

      Parameters:
      networkTrafficConfig - The network traffic configuration for the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkTrafficConfig

      default Pentest.Builder networkTrafficConfig(Consumer<NetworkTrafficConfig.Builder> networkTrafficConfig)

      The network traffic configuration for the pentest.

      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:
    • codeRemediationStrategy

      Pentest.Builder codeRemediationStrategy(String codeRemediationStrategy)

      The code remediation strategy for the pentest.

      Parameters:
      codeRemediationStrategy - The code remediation strategy for the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • codeRemediationStrategy

      Pentest.Builder codeRemediationStrategy(CodeRemediationStrategy codeRemediationStrategy)

      The code remediation strategy for the pentest.

      Parameters:
      codeRemediationStrategy - The code remediation strategy for the pentest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      Pentest.Builder createdAt(Instant createdAt)

      The date and time the pentest was created, in UTC format.

      Parameters:
      createdAt - The date and time the pentest was created, in UTC format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      Pentest.Builder updatedAt(Instant updatedAt)

      The date and time the pentest was last updated, in UTC format.

      Parameters:
      updatedAt - The date and time the pentest was last updated, in UTC format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.