Interface IssueArtifactBody.Builder

  • Method Details

    • validationEvidence

      IssueArtifactBody.Builder validationEvidence(ValidationEvidenceBody validationEvidence)

      Projected VALIDATION_EVIDENCE content.

      Parameters:
      validationEvidence - Projected VALIDATION_EVIDENCE content.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • validationEvidence

      default IssueArtifactBody.Builder validationEvidence(Consumer<ValidationEvidenceBody.Builder> validationEvidence)

      Projected VALIDATION_EVIDENCE content.

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

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

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

      IssueArtifactBody.Builder prevalidationSignals(PrevalidationSignalsBody prevalidationSignals)

      Projected EVIDENCE content whose stored envelope declares artifact_kind: prevalidation_signals — the severity signals prioritization uses.

      One artifactType can select different members here: EVIDENCE also carries the prioritization markdown narrative, which is not JSON and so returns through raw. The member is therefore chosen by artifactType AND, for a type that carries more than one payload kind, the content's own discriminator.

      Parameters:
      prevalidationSignals - Projected EVIDENCE content whose stored envelope declares artifact_kind: prevalidation_signals — the severity signals prioritization uses.

      One artifactType can select different members here: EVIDENCE also carries the prioritization markdown narrative, which is not JSON and so returns through raw. The member is therefore chosen by artifactType AND, for a type that carries more than one payload kind, the content's own discriminator.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • prevalidationSignals

      default IssueArtifactBody.Builder prevalidationSignals(Consumer<PrevalidationSignalsBody.Builder> prevalidationSignals)

      Projected EVIDENCE content whose stored envelope declares artifact_kind: prevalidation_signals — the severity signals prioritization uses.

      One artifactType can select different members here: EVIDENCE also carries the prioritization markdown narrative, which is not JSON and so returns through raw. The member is therefore chosen by artifactType AND, for a type that carries more than one payload kind, the content's own discriminator.

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

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

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

      IssueArtifactBody.Builder remediationProposal(RemediationProposalBody remediationProposal)

      Projected REMEDIATION_PROPOSAL content: a patch the remediation agent produced, with the descriptors needed to apply and verify it.

      REMEDIATION_PROPOSAL content that does not match this shape is returned through raw.

      Parameters:
      remediationProposal - Projected REMEDIATION_PROPOSAL content: a patch the remediation agent produced, with the descriptors needed to apply and verify it.

      REMEDIATION_PROPOSAL content that does not match this shape is returned through raw.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • remediationProposal

      default IssueArtifactBody.Builder remediationProposal(Consumer<RemediationProposalBody.Builder> remediationProposal)

      Projected REMEDIATION_PROPOSAL content: a patch the remediation agent produced, with the descriptors needed to apply and verify it.

      REMEDIATION_PROPOSAL content that does not match this shape is returned through raw.

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

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

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

      Projected PATCH content: the remediation patch for one repository, with the descriptors needed to verify and apply it and the state of its delivery to the customer's own bucket or repository.

      Every PATCH projects here. The descriptors come from members Control Plane computes or owns when it stores the patch, not from producer metadata, so this member is the whole PATCH contract and metadata is omitted for it.

      Parameters:
      patch - Projected PATCH content: the remediation patch for one repository, with the descriptors needed to verify and apply it and the state of its delivery to the customer's own bucket or repository.

      Every PATCH projects here. The descriptors come from members Control Plane computes or owns when it stores the patch, not from producer metadata, so this member is the whole PATCH contract and metadata is omitted for it.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • patch

      Projected PATCH content: the remediation patch for one repository, with the descriptors needed to verify and apply it and the state of its delivery to the customer's own bucket or repository.

      Every PATCH projects here. The descriptors come from members Control Plane computes or owns when it stores the patch, not from producer metadata, so this member is the whole PATCH contract and metadata is omitted for it.

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

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

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

      The producer's content verbatim, for an artifactType with no defined shape or content that failed to parse against its shape.

      Parameters:
      raw - The producer's content verbatim, for an artifactType with no defined shape or content that failed to parse against its shape.
      Returns:
      Returns a reference to this object so that method calls can be chained together.