Interface CreatePentestResponse.Builder

  • Method Details

    • pentestId

      CreatePentestResponse.Builder pentestId(String pentestId)

      Unique identifier of the created pentest

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

      Title of the created pentest

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

      CreatePentestResponse.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

      CreatePentestResponse.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.
    • assets

      Assets to be tested in the created pentest

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

      Assets to be tested in the created 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

      CreatePentestResponse.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

      CreatePentestResponse.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

      CreatePentestResponse.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

      CreatePentestResponse.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

      CreatePentestResponse.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

      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

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

      CreatePentestResponse.Builder agentSpaceId(String agentSpaceId)

      ID of the agent space where the pentest was created

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