Class PatchBody
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PatchBody.Builder,PatchBody>
Projected content for a PATCH artifact: 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.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PatchBody.Builderbuilder()final PatchDeliverydelivery()Delivery of the patch to the customer's bucket or repository.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final PatchFormatformat()The patch's wire format, read from the patch itself, which determines how to apply it.final StringThe patch's wire format, read from the patch itself, which determines how to apply it.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringpatch()The patch exactly as stored, unmodified.final StringSHA-256 of the patch's UTF-8 bytes in lowercase hex, computed by Control Plane when it stored the patch.final StringThe repository the patch applies to, as named in the source snapshot it was generated against.static Class<? extends PatchBody.Builder> final LongSize of the patch in UTF-8 bytes, the unit the digest is computed over.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 stored, unmodified. Control Plane accepted it only as a text unified diff, so
git applyapplies it.- Returns:
- The patch exactly as stored, unmodified. Control Plane accepted it only as a text unified diff, so
git applyapplies it.
-
format
The patch's wire format, read from the patch itself, which determines how to apply it. Absent when the patch starts with neither a git mailbox header nor a
diff --githeader.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, read from the patch itself, which determines how to apply it. Absent when the
patch starts with neither a git mailbox header nor a
diff --githeader. - See Also:
-
formatAsString
The patch's wire format, read from the patch itself, which determines how to apply it. Absent when the patch starts with neither a git mailbox header nor a
diff --githeader.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, read from the patch itself, which determines how to apply it. Absent when the
patch starts with neither a git mailbox header nor a
diff --githeader. - See Also:
-
repositoryName
The repository the patch applies to, as named in the source snapshot it was generated against.
- Returns:
- The repository the patch applies to, as named in the source snapshot it was generated against.
-
patchSha256
SHA-256 of the patch's UTF-8 bytes in lowercase hex, computed by Control Plane when it stored the patch.
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's UTF-8 bytes in lowercase hex, computed by Control Plane when it stored the
patch.
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.
-
sizeBytes
Size of the patch in UTF-8 bytes, the unit the digest is computed over.
- Returns:
- Size of the patch in UTF-8 bytes, the unit the digest is computed over.
-
delivery
Delivery of the patch to the customer's bucket or repository. Absent when the artifact has no delivery destination.
- Returns:
- Delivery of the patch to the customer's bucket or repository. Absent when the artifact has no delivery destination.
-
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<PatchBody.Builder,PatchBody> - 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.
-