Class RemediationProposalBody
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RemediationProposalBody.Builder,RemediationProposalBody>
Projected content for a REMEDIATION_PROPOSAL artifact: the patch the remediation agent produced, with the descriptors needed to apply and verify it.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Stringfilename()Filename the producer suggests for the patch, when it named one.final PatchFormatformat()The patch's wire format, which determines how to apply it.final StringThe patch's wire format, which determines how to apply it.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringpatch()The patch exactly as the remediation agent produced it, unmodified.final StringSHA-256 of the patch bytes in lowercase hex, as recorded by the producer.static Class<? extends RemediationProposalBody.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.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
patch
The patch exactly as the remediation agent produced it, unmodified.
- Returns:
- The patch exactly as the remediation agent produced it, unmodified.
-
format
The patch's wire format, which determines how to apply it. Absent when the producer recorded a format with no mapping yet.
If the service returns an enum value that is not available in the current SDK version,
formatwill returnPatchFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromformatAsString().- Returns:
- The patch's wire format, which determines how to apply it. Absent when the producer recorded a format with no mapping yet.
- See Also:
-
formatAsString
The patch's wire format, which determines how to apply it. Absent when the producer recorded a format with no mapping yet.
If the service returns an enum value that is not available in the current SDK version,
formatwill returnPatchFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromformatAsString().- Returns:
- The patch's wire format, which determines how to apply it. Absent when the producer recorded a format with no mapping yet.
- See Also:
-
filename
Filename the producer suggests for the patch, when it named one.
- Returns:
- Filename the producer suggests for the patch, when it named one.
-
patchSha256
SHA-256 of the patch bytes in lowercase hex, as recorded by the producer.
Lets a caller confirm the patch it applies is byte-for-byte the one that was reviewed. Computed over the patch bytes, so it is verifiable against
patchwithout trusting this value.- Returns:
- SHA-256 of the patch bytes in lowercase hex, as recorded by the producer.
Lets a caller confirm the patch it applies is byte-for-byte the one that was reviewed. Computed over the patch bytes, so it is verifiable against
patchwithout trusting this value.
-
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<RemediationProposalBody.Builder,RemediationProposalBody> - 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
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-