Class IssueArtifactBody
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic IssueArtifactBody.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static IssueArtifactBodyfromPatch(Consumer<PatchBody.Builder> patch) Create an instance of this class withpatch()initialized to the given value.static IssueArtifactBodyCreate an instance of this class withpatch()initialized to the given value.static IssueArtifactBodyfromPrevalidationSignals(Consumer<PrevalidationSignalsBody.Builder> prevalidationSignals) Create an instance of this class withprevalidationSignals()initialized to the given value.static IssueArtifactBodyfromPrevalidationSignals(PrevalidationSignalsBody prevalidationSignals) Create an instance of this class withprevalidationSignals()initialized to the given value.static IssueArtifactBodyCreate an instance of this class withraw()initialized to the given value.static IssueArtifactBodyfromRemediationProposal(Consumer<RemediationProposalBody.Builder> remediationProposal) Create an instance of this class withremediationProposal()initialized to the given value.static IssueArtifactBodyfromRemediationProposal(RemediationProposalBody remediationProposal) Create an instance of this class withremediationProposal()initialized to the given value.static IssueArtifactBodyfromValidationEvidence(Consumer<ValidationEvidenceBody.Builder> validationEvidence) Create an instance of this class withvalidationEvidence()initialized to the given value.static IssueArtifactBodyfromValidationEvidence(ValidationEvidenceBody validationEvidence) Create an instance of this class withvalidationEvidence()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final PatchBodypatch()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.final PrevalidationSignalsBodyProjected EVIDENCE content whose stored envelope declaresartifact_kind: prevalidation_signals— the severity signals prioritization uses.final Stringraw()The producer's content verbatim, for an artifactType with no defined shape or content that failed to parse against its shape.final RemediationProposalBodyProjected REMEDIATION_PROPOSAL content: a patch the remediation agent produced, with the descriptors needed to apply and verify it.static Class<? extends IssueArtifactBody.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.final ValidationEvidenceBodyProjected VALIDATION_EVIDENCE content.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
validationEvidence
Projected VALIDATION_EVIDENCE content.
- Returns:
- Projected VALIDATION_EVIDENCE content.
-
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
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
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
metadatais 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
metadatais omitted for it.
-
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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<IssueArtifactBody.Builder,IssueArtifactBody> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromValidationEvidence
Create an instance of this class withvalidationEvidence()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 withvalidationEvidence()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 withprevalidationSignals()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 declaresartifact_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 withprevalidationSignals()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 declaresartifact_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 withremediationProposal()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 withremediationProposal()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
Create an instance of this class withpatch()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
metadatais 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
metadatais omitted for it.
-
fromPatch
Create an instance of this class withpatch()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
metadatais 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
metadatais omitted for it.
-
fromRaw
Create an instance of this class withraw()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
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beIssueArtifactBody.Type.UNKNOWN_TO_SDK_VERSIONif 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 beIssueArtifactBody.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-