Interface EncryptionConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EncryptionConfiguration.Builder,,EncryptionConfiguration> SdkBuilder<EncryptionConfiguration.Builder,,EncryptionConfiguration> SdkPojo
- Enclosing class:
EncryptionConfiguration
@Mutable
@NotThreadSafe
public static interface EncryptionConfiguration.Builder
extends SdkPojo, CopyableBuilder<EncryptionConfiguration.Builder,EncryptionConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault EncryptionConfiguration.BuildercustomerManaged(Consumer<CustomerManagedEncryption.Builder> customerManaged) Encrypt with a customer managed KMS key that you own.customerManaged(CustomerManagedEncryption customerManaged) Encrypt with a customer managed KMS key that you own.default EncryptionConfiguration.BuilderserviceManaged(Consumer<Unit.Builder> serviceManaged) Encrypt with a service-owned, AWS-managed key.serviceManaged(Unit serviceManaged) Encrypt with a service-owned, AWS-managed key.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
-
customerManaged
Encrypt with a customer managed KMS key that you own.
- Parameters:
customerManaged- Encrypt with a customer managed KMS key that you own.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerManaged
default EncryptionConfiguration.Builder customerManaged(Consumer<CustomerManagedEncryption.Builder> customerManaged) Encrypt with a customer managed KMS key that you own.
This is a convenience method that creates an instance of theCustomerManagedEncryption.Builderavoiding the need to create one manually viaCustomerManagedEncryption.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomerManaged(CustomerManagedEncryption).- Parameters:
customerManaged- a consumer that will call methods onCustomerManagedEncryption.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serviceManaged
Encrypt with a service-owned, AWS-managed key. Carries no parameters.
- Parameters:
serviceManaged- Encrypt with a service-owned, AWS-managed key. Carries no parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceManaged
Encrypt with a service-owned, AWS-managed key. Carries no parameters.
This is a convenience method that creates an instance of theUnit.Builderavoiding the need to create one manually viaUnit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserviceManaged(Unit).- Parameters:
serviceManaged- a consumer that will call methods onUnit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-