Class IssueArtifactBody

java.lang.Object
software.amazon.awssdk.services.continuum.model.IssueArtifactBody
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<IssueArtifactBody.Builder,IssueArtifactBody>

@Generated("software.amazon.awssdk:codegen") public final class IssueArtifactBody extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IssueArtifactBody.Builder,IssueArtifactBody>

The projected body of an artifact. The active member is selected by the artifact's artifactType, and for a type that carries more than one payload kind by the stored content's own discriminator; raw carries content for types with no defined shape yet and for content that did not match its shape.

See Also:
  • Method Details

    • validationEvidence

      public final ValidationEvidenceBody validationEvidence()

      Projected VALIDATION_EVIDENCE content.

      Returns:
      Projected VALIDATION_EVIDENCE content.
    • prevalidationSignals

      public final 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.

      Returns:
      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.

    • remediationProposal

      public final 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.

      Returns:
      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.

    • patch

      public final PatchBody 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:
      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.

    • raw

      public final String raw()

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

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

      public IssueArtifactBody.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<IssueArtifactBody.Builder,IssueArtifactBody>
      Returns:
      a builder for type T
    • builder

      public static IssueArtifactBody.Builder builder()
    • serializableBuilderClass

      public static Class<? extends IssueArtifactBody.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • fromValidationEvidence

      public static IssueArtifactBody fromValidationEvidence(ValidationEvidenceBody validationEvidence)
      Create an instance of this class with validationEvidence() initialized to the given value.

      Projected VALIDATION_EVIDENCE content.

      Parameters:
      validationEvidence - Projected VALIDATION_EVIDENCE content.
    • fromValidationEvidence

      public static IssueArtifactBody fromValidationEvidence(Consumer<ValidationEvidenceBody.Builder> validationEvidence)
      Create an instance of this class with validationEvidence() initialized to the given value.

      Projected VALIDATION_EVIDENCE content.

      Parameters:
      validationEvidence - Projected VALIDATION_EVIDENCE content.
    • fromPrevalidationSignals

      public static IssueArtifactBody fromPrevalidationSignals(PrevalidationSignalsBody prevalidationSignals)
      Create an instance of this class with prevalidationSignals() initialized to the given value.

      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.

    • fromPrevalidationSignals

      public static IssueArtifactBody fromPrevalidationSignals(Consumer<PrevalidationSignalsBody.Builder> prevalidationSignals)
      Create an instance of this class with prevalidationSignals() initialized to the given value.

      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.

    • fromRemediationProposal

      public static IssueArtifactBody fromRemediationProposal(RemediationProposalBody remediationProposal)
      Create an instance of this class with remediationProposal() initialized to the given value.

      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.

    • fromRemediationProposal

      public static IssueArtifactBody fromRemediationProposal(Consumer<RemediationProposalBody.Builder> remediationProposal)
      Create an instance of this class with remediationProposal() initialized to the given value.

      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.

    • fromPatch

      public static IssueArtifactBody fromPatch(PatchBody patch)
      Create an instance of this class with patch() initialized to the given value.

      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.

    • fromPatch

      public static IssueArtifactBody fromPatch(Consumer<PatchBody.Builder> patch)
      Create an instance of this class with patch() initialized to the given value.

      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.

    • fromRaw

      public static IssueArtifactBody fromRaw(String raw)
      Create an instance of this class with raw() initialized to the given value.

      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.
    • type

      public IssueArtifactBody.Type type()
      Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will be IssueArtifactBody.Type.UNKNOWN_TO_SDK_VERSION if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will be IssueArtifactBody.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.