Interface Finding.Builder

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

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

    • findingId

      Finding.Builder findingId(String findingId)

      Unique identifier for the finding

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

      Finding.Builder agentSpaceId(String agentSpaceId)

      Identifier of the agent space that created this finding

      Parameters:
      agentSpaceId - Identifier of the agent space that created this finding
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pentestId

      Finding.Builder pentestId(String pentestId)

      Identifier of the parent pentest

      Parameters:
      pentestId - Identifier of the parent pentest
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pentestJobId

      Finding.Builder pentestJobId(String pentestJobId)

      Identifier of the pentest job

      Parameters:
      pentestJobId - Identifier of the pentest job
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taskId

      Finding.Builder taskId(String taskId)

      Identifier of the associated task

      Parameters:
      taskId - Identifier of the associated task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Finding.Builder name(String name)

      Name or title of the finding

      Parameters:
      name - Name or title of the finding
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Finding.Builder description(String description)

      Detailed description of the security vulnerability

      Parameters:
      description - Detailed description of the security vulnerability
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      Finding.Builder status(String status)

      Current status of the finding

      Parameters:
      status - Current status of the finding
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Current status of the finding

      Parameters:
      status - Current status of the finding
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • riskType

      Finding.Builder riskType(String riskType)

      Type of security risk identified

      Parameters:
      riskType - Type of security risk identified
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • riskLevel

      Finding.Builder riskLevel(String riskLevel)

      Severity level of the identified risk

      Parameters:
      riskLevel - Severity level of the identified risk
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • riskLevel

      Finding.Builder riskLevel(RiskLevel riskLevel)

      Severity level of the identified risk

      Parameters:
      riskLevel - Severity level of the identified risk
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • riskScore

      Finding.Builder riskScore(String riskScore)

      Risk score associated with the finding

      Parameters:
      riskScore - Risk score associated with the finding
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reasoning

      Finding.Builder reasoning(String reasoning)

      Justification for the assigned risk score

      Parameters:
      reasoning - Justification for the assigned risk score
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • confidence

      Finding.Builder confidence(String confidence)

      Confidence level of the finding

      Parameters:
      confidence - Confidence level of the finding
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • confidence

      Finding.Builder confidence(ConfidenceLevel confidence)

      Confidence level of the finding

      Parameters:
      confidence - Confidence level of the finding
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • attackScript

      Finding.Builder attackScript(String attackScript)

      Proof-of-concept code demonstrating the vulnerability

      Parameters:
      attackScript - Proof-of-concept code demonstrating the vulnerability
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeRemediationTask

      Finding.Builder codeRemediationTask(CodeRemediationTask codeRemediationTask)

      Code remediation task associated with this finding

      Parameters:
      codeRemediationTask - Code remediation task associated with this finding
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeRemediationTask

      default Finding.Builder codeRemediationTask(Consumer<CodeRemediationTask.Builder> codeRemediationTask)

      Code remediation task associated with this finding

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

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

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

      Finding.Builder lastUpdatedBy(String lastUpdatedBy)

      Identifier of the task or agent that last updated this finding

      Parameters:
      lastUpdatedBy - Identifier of the task or agent that last updated this finding
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Finding.Builder createdAt(Instant createdAt)

      Timestamp when the finding was created

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

      Finding.Builder updatedAt(Instant updatedAt)

      Timestamp when the finding was last updated

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