Interface S3UpdateObjectEncryptionOperation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<S3UpdateObjectEncryptionOperation.Builder,,S3UpdateObjectEncryptionOperation> SdkBuilder<S3UpdateObjectEncryptionOperation.Builder,,S3UpdateObjectEncryptionOperation> SdkPojo
- Enclosing class:
S3UpdateObjectEncryptionOperation
@Mutable
@NotThreadSafe
public static interface S3UpdateObjectEncryptionOperation.Builder
extends SdkPojo, CopyableBuilder<S3UpdateObjectEncryptionOperation.Builder,S3UpdateObjectEncryptionOperation>
-
Method Summary
Modifier and TypeMethodDescriptionobjectEncryption(Consumer<ObjectEncryption.Builder> objectEncryption) The updated server-side encryption type for this S3 object.objectEncryption(ObjectEncryption objectEncryption) The updated server-side encryption type for this S3 object.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
-
objectEncryption
The updated server-side encryption type for this S3 object. The
UpdateObjectEncryptionoperation supports the SSE-KMS encryption type.- Parameters:
objectEncryption- The updated server-side encryption type for this S3 object. TheUpdateObjectEncryptionoperation supports the SSE-KMS encryption type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objectEncryption
default S3UpdateObjectEncryptionOperation.Builder objectEncryption(Consumer<ObjectEncryption.Builder> objectEncryption) The updated server-side encryption type for this S3 object. The
This is a convenience method that creates an instance of theUpdateObjectEncryptionoperation supports the SSE-KMS encryption type.ObjectEncryption.Builderavoiding the need to create one manually viaObjectEncryption.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toobjectEncryption(ObjectEncryption).- Parameters:
objectEncryption- a consumer that will call methods onObjectEncryption.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-