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)

      Unique identifier for the pentest

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

      Pentest.Builder agentSpaceId(String agentSpaceId)

      ID of the agent space where the pentest exists

      Parameters:
      agentSpaceId - ID of the agent space where the pentest exists
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • title

      Pentest.Builder title(String 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.
    • assets

      Pentest.Builder assets(Assets assets)

      Collection of assets to be tested or used during the pentest

      Parameters:
      assets - Collection of assets to be tested or used during 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)

      Collection of assets to be tested or used during 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)

      A list of risk types excluded from the pentest execution

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

      Pentest.Builder excludeRiskTypesWithStrings(String... excludeRiskTypes)

      A list of risk types excluded from the pentest execution

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

      Pentest.Builder excludeRiskTypes(Collection<RiskType> excludeRiskTypes)

      A list of risk types excluded from the pentest execution

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

      Pentest.Builder excludeRiskTypes(RiskType... excludeRiskTypes)

      A list of risk types excluded from the pentest execution

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

      Pentest.Builder serviceRole(String 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

      Pentest.Builder logConfig(CloudWatchLog logConfig)

      CloudWatch log group and stream prefix where pentest execution logs are stored

      Parameters:
      logConfig - CloudWatch log group and stream prefix where pentest execution logs are stored
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logConfig

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

      CloudWatch log group and stream prefix where pentest execution logs are stored

      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)

      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

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

      VPC configuration that the Security Agent accesses

      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)

      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 Pentest.Builder networkTrafficConfig(Consumer<NetworkTrafficConfig.Builder> networkTrafficConfig)

      Configuration for network traffic filtering

      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)

      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

      Pentest.Builder codeRemediationStrategy(CodeRemediationStrategy 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

      Pentest.Builder createdAt(Instant createdAt)

      Timestamp when the pentest was created

      Parameters:
      createdAt - Timestamp when the pentest was created
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      Pentest.Builder updatedAt(Instant updatedAt)

      Timestamp when the pentest was last updated

      Parameters:
      updatedAt - Timestamp when the pentest was last updated
      Returns:
      Returns a reference to this object so that method calls can be chained together.