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)

      The unique identifier of the finding.

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

      Finding.Builder agentSpaceId(String agentSpaceId)

      The unique identifier of the agent space associated with the finding.

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

      Finding.Builder pentestId(String pentestId)

      The unique identifier of the pentest associated with the finding.

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

      Finding.Builder pentestJobId(String pentestJobId)

      The unique identifier of the pentest job that produced the finding.

      Parameters:
      pentestJobId - The unique identifier of the pentest job that produced the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeReviewId

      Finding.Builder codeReviewId(String codeReviewId)

      The unique identifier of the code review associated with the finding.

      Parameters:
      codeReviewId - The unique identifier of the code review associated with the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeReviewJobId

      Finding.Builder codeReviewJobId(String codeReviewJobId)

      The unique identifier of the code review job that produced the finding.

      Parameters:
      codeReviewJobId - The unique identifier of the code review job that produced the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taskId

      Finding.Builder taskId(String taskId)

      The unique identifier of the task that produced the finding.

      Parameters:
      taskId - The unique identifier of the task that produced the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Finding.Builder name(String name)

      The name of the finding.

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

      Finding.Builder description(String description)

      A description of the finding.

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

      Finding.Builder status(String status)

      The current status of the finding. Valid values include ACTIVE, RESOLVED, ACCEPTED, and FALSE_POSITIVE.

      Parameters:
      status - The current status of the finding. Valid values include ACTIVE, RESOLVED, ACCEPTED, and FALSE_POSITIVE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the finding. Valid values include ACTIVE, RESOLVED, ACCEPTED, and FALSE_POSITIVE.

      Parameters:
      status - The current status of the finding. Valid values include ACTIVE, RESOLVED, ACCEPTED, and FALSE_POSITIVE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • riskType

      Finding.Builder riskType(String riskType)

      The type of security risk identified by the finding.

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

      Finding.Builder riskLevel(String riskLevel)

      The risk level of the finding. Valid values include UNKNOWN, INFORMATIONAL, LOW, MEDIUM, HIGH, and CRITICAL.

      Parameters:
      riskLevel - The risk level of the finding. Valid values include UNKNOWN, INFORMATIONAL, LOW, MEDIUM, HIGH, and CRITICAL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • riskLevel

      Finding.Builder riskLevel(RiskLevel riskLevel)

      The risk level of the finding. Valid values include UNKNOWN, INFORMATIONAL, LOW, MEDIUM, HIGH, and CRITICAL.

      Parameters:
      riskLevel - The risk level of the finding. Valid values include UNKNOWN, INFORMATIONAL, LOW, MEDIUM, HIGH, and CRITICAL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • riskScore

      Finding.Builder riskScore(String riskScore)

      The numerical risk score of the finding.

      Parameters:
      riskScore - The numerical risk score of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reasoning

      Finding.Builder reasoning(String reasoning)

      The reasoning behind the finding, explaining why it was identified as a vulnerability.

      Parameters:
      reasoning - The reasoning behind the finding, explaining why it was identified as a vulnerability.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • confidence

      Finding.Builder confidence(String confidence)

      The confidence level of the finding. Valid values include FALSE_POSITIVE, UNCONFIRMED, LOW, MEDIUM, and HIGH.

      Parameters:
      confidence - The confidence level of the finding. Valid values include FALSE_POSITIVE, UNCONFIRMED, LOW, MEDIUM, and HIGH.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • confidence

      Finding.Builder confidence(ConfidenceLevel confidence)

      The confidence level of the finding. Valid values include FALSE_POSITIVE, UNCONFIRMED, LOW, MEDIUM, and HIGH.

      Parameters:
      confidence - The confidence level of the finding. Valid values include FALSE_POSITIVE, UNCONFIRMED, LOW, MEDIUM, and HIGH.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • attackScript

      Finding.Builder attackScript(String attackScript)

      The attack script used to reproduce the finding.

      Parameters:
      attackScript - The attack script used to reproduce the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeRemediationTask

      Finding.Builder codeRemediationTask(CodeRemediationTask codeRemediationTask)

      The code remediation task associated with the finding, if code remediation was initiated.

      Parameters:
      codeRemediationTask - The code remediation task associated with the finding, if code remediation was initiated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeRemediationTask

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

      The code remediation task associated with the finding, if code remediation was initiated.

      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)

      The identifier of the entity that last updated the finding.

      Parameters:
      lastUpdatedBy - The identifier of the entity that last updated the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeLocations

      Finding.Builder codeLocations(Collection<CodeLocation> codeLocations)

      The file locations involved in the vulnerability, as reported by the code scanner.

      Parameters:
      codeLocations - The file locations involved in the vulnerability, as reported by the code scanner.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeLocations

      Finding.Builder codeLocations(CodeLocation... codeLocations)

      The file locations involved in the vulnerability, as reported by the code scanner.

      Parameters:
      codeLocations - The file locations involved in the vulnerability, as reported by the code scanner.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeLocations

      Finding.Builder codeLocations(Consumer<CodeLocation.Builder>... codeLocations)

      The file locations involved in the vulnerability, as reported by the code scanner.

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

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

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

      Finding.Builder createdAt(Instant createdAt)

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

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

      Finding.Builder updatedAt(Instant updatedAt)

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

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