Interface PatchBody.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PatchBody.Builder,,PatchBody> SdkBuilder<PatchBody.Builder,,PatchBody> SdkPojo
- Enclosing class:
PatchBody
-
Method Summary
Modifier and TypeMethodDescriptiondefault PatchBody.Builderdelivery(Consumer<PatchDelivery.Builder> delivery) Delivery of the patch to the customer's bucket or repository.delivery(PatchDelivery delivery) Delivery of the patch to the customer's bucket or repository.The patch's wire format, read from the patch itself, which determines how to apply it.format(PatchFormat format) The patch's wire format, read from the patch itself, which determines how to apply it.The patch exactly as stored, unmodified.patchSha256(String patchSha256) SHA-256 of the patch's UTF-8 bytes in lowercase hex, computed by Control Plane when it stored the patch.repositoryName(String repositoryName) The repository the patch applies to, as named in the source snapshot it was generated against.Size of the patch in UTF-8 bytes, the unit the digest is computed over.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
patch
The patch exactly as stored, unmodified. Control Plane accepted it only as a text unified diff, so
git applyapplies it.- Parameters:
patch- The patch exactly as stored, unmodified. Control Plane accepted it only as a text unified diff, sogit applyapplies it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
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 adiff --githeader.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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 adiff --githeader.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
repositoryName
The repository the patch applies to, as named in the source snapshot it was generated against.
- Parameters:
repositoryName- The repository the patch applies to, as named in the source snapshot it was generated against.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
sizeBytes
Size of the patch in UTF-8 bytes, the unit the digest is computed over.
- Parameters:
sizeBytes- Size of the patch in UTF-8 bytes, the unit the digest is computed over.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
delivery
Delivery of the patch to the customer's bucket or repository. Absent when the artifact has no delivery destination.
- Parameters:
delivery- Delivery of the patch to the customer's bucket or repository. Absent when the artifact has no delivery destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
delivery
Delivery of the patch to the customer's bucket or repository. Absent when the artifact has no delivery destination.
This is a convenience method that creates an instance of thePatchDelivery.Builderavoiding the need to create one manually viaPatchDelivery.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todelivery(PatchDelivery).- Parameters:
delivery- a consumer that will call methods onPatchDelivery.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-