Interface GetCodeIssueResponse.Builder

  • Method Details

    • issueId

      The unique identifier of the issue.

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

      The ARN of the issue.

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

      The name of the issue.

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

      A free-form synopsis of the issue.

      Parameters:
      synopsis - A free-form synopsis of the issue.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • severity

      Current severity: the FindingSeverity seed at create, overwritten by the authoritative severity that prioritization assigns after validation.

      Parameters:
      severity - Current severity: the FindingSeverity seed at create, overwritten by the authoritative severity that prioritization assigns after validation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • severity

      Current severity: the FindingSeverity seed at create, overwritten by the authoritative severity that prioritization assigns after validation.

      Parameters:
      severity - Current severity: the FindingSeverity seed at create, overwritten by the authoritative severity that prioritization assigns after validation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • confidence

      GetCodeIssueResponse.Builder confidence(Integer confidence)

      The likelihood that this issue is a true positive, expressed as a percentage (0-100).

      Parameters:
      confidence - The likelihood that this issue is a true positive, expressed as a percentage (0-100).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • severityReasoning

      GetCodeIssueResponse.Builder severityReasoning(String severityReasoning)

      The justification for the current severity. Always leads with a customer-facing basis clause synthesized from how the severity was determined (e.g. "Severity from finding.", "Severity from Continuum system."); when prioritization has run, its own reasoning follows. Issues created before the basis clause was introduced return their original reasoning without it.

      Parameters:
      severityReasoning - The justification for the current severity. Always leads with a customer-facing basis clause synthesized from how the severity was determined (e.g. "Severity from finding.", "Severity from Continuum system."); when prioritization has run, its own reasoning follows. Issues created before the basis clause was introduced return their original reasoning without it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • summary

      The remediation completion summary, when the green stage has run.

      Parameters:
      summary - The remediation completion summary, when the green stage has run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingIds

      The findings that motivated this issue. Bare identifiers only -- a caller authorized for GetCodeIssue is not necessarily authorized to read finding detail; call GetCodeFinding for that. Every referenced finding is included regardless of origin (both CustomerUploaded and ContinuumScanner).

      Parameters:
      findingIds - The findings that motivated this issue. Bare identifiers only -- a caller authorized for GetCodeIssue is not necessarily authorized to read finding detail; call GetCodeFinding for that. Every referenced finding is included regardless of origin (both CustomerUploaded and ContinuumScanner).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingIds

      GetCodeIssueResponse.Builder findingIds(String... findingIds)

      The findings that motivated this issue. Bare identifiers only -- a caller authorized for GetCodeIssue is not necessarily authorized to read finding detail; call GetCodeFinding for that. Every referenced finding is included regardless of origin (both CustomerUploaded and ContinuumScanner).

      Parameters:
      findingIds - The findings that motivated this issue. Bare identifiers only -- a caller authorized for GetCodeIssue is not necessarily authorized to read finding detail; call GetCodeFinding for that. Every referenced finding is included regardless of origin (both CustomerUploaded and ContinuumScanner).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current lifecycle status of the issue.

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

      The current lifecycle status of the issue.

      Parameters:
      status - The current lifecycle status of the issue.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • phase

      The part of the workflow the issue is in. Present when status is IN_PROGRESS, and when status is FAILED and the failing phase is known.

      Parameters:
      phase - The part of the workflow the issue is in. Present when status is IN_PROGRESS, and when status is FAILED and the failing phase is known.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • phase

      The part of the workflow the issue is in. Present when status is IN_PROGRESS, and when status is FAILED and the failing phase is known.

      Parameters:
      phase - The part of the workflow the issue is in. Present when status is IN_PROGRESS, and when status is FAILED and the failing phase is known.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusReason

      GetCodeIssueResponse.Builder statusReason(String statusReason)

      Why the issue failed. Present only when status is FAILED.

      Parameters:
      statusReason - Why the issue failed. Present only when status is FAILED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusReason

      GetCodeIssueResponse.Builder statusReason(IssueStatusReason statusReason)

      Why the issue failed. Present only when status is FAILED.

      Parameters:
      statusReason - Why the issue failed. Present only when status is FAILED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusMessage

      GetCodeIssueResponse.Builder statusMessage(String statusMessage)

      Customer-facing explanation of statusReason. Present only when status is FAILED.

      Parameters:
      statusMessage - Customer-facing explanation of statusReason. Present only when status is FAILED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statusUpdatedAt

      GetCodeIssueResponse.Builder statusUpdatedAt(Instant statusUpdatedAt)

      The timestamp when the status or phase last changed.

      Parameters:
      statusUpdatedAt - The timestamp when the status or phase last changed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      GetCodeIssueResponse.Builder createdAt(Instant createdAt)

      The timestamp when the issue was created.

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

      GetCodeIssueResponse.Builder updatedAt(Instant updatedAt)

      The timestamp when any field of the issue last changed. Advances on every mutation (including score-only updates that do not transition status), so it is greater than or equal to statusUpdatedAt.

      Parameters:
      updatedAt - The timestamp when any field of the issue last changed. Advances on every mutation (including score-only updates that do not transition status), so it is greater than or equal to statusUpdatedAt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evidenceAvailability

      GetCodeIssueResponse.Builder evidenceAvailability(String evidenceAvailability)

      Whether the issue has any attached evidence (formerly 'artifacts': tool output, remediation proposals, patches). NONE = no evidence; AVAILABLE = at least one evidence item exists. Computed at read time.

      Parameters:
      evidenceAvailability - Whether the issue has any attached evidence (formerly 'artifacts': tool output, remediation proposals, patches). NONE = no evidence; AVAILABLE = at least one evidence item exists. Computed at read time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • evidenceAvailability

      GetCodeIssueResponse.Builder evidenceAvailability(IssueEvidenceAvailability evidenceAvailability)

      Whether the issue has any attached evidence (formerly 'artifacts': tool output, remediation proposals, patches). NONE = no evidence; AVAILABLE = at least one evidence item exists. Computed at read time.

      Parameters:
      evidenceAvailability - Whether the issue has any attached evidence (formerly 'artifacts': tool output, remediation proposals, patches). NONE = no evidence; AVAILABLE = at least one evidence item exists. Computed at read time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • patchDelivery

      GetCodeIssueResponse.Builder patchDelivery(IssuePatchDelivery patchDelivery)

      Customer delivery of the issue's patches, summarized from its PATCH artifacts at read time. Absent when no patch has a destination delivery.

      Parameters:
      patchDelivery - Customer delivery of the issue's patches, summarized from its PATCH artifacts at read time. Absent when no patch has a destination delivery.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • patchDelivery

      default GetCodeIssueResponse.Builder patchDelivery(Consumer<IssuePatchDelivery.Builder> patchDelivery)

      Customer delivery of the issue's patches, summarized from its PATCH artifacts at read time. Absent when no patch has a destination delivery.

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

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

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