Class S3Encryption.Builder
java.lang.Object
software.amazon.awscdk.services.glue.alpha.S3Encryption.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3Encryption>
- Enclosing interface:
S3Encryption
@Stability(Experimental)
public static final class S3Encryption.Builder
extends Object
implements software.amazon.jsii.Builder<S3Encryption>
A builder for
S3Encryption
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofS3Encryption.getKmsKey()
mode
(S3EncryptionMode mode) Sets the value ofS3Encryption.getMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mode
Sets the value ofS3Encryption.getMode()
- Parameters:
mode
- Encryption mode. This parameter is required.- Returns:
this
-
kmsKey
Sets the value ofS3Encryption.getKmsKey()
- Parameters:
kmsKey
- The KMS key to be used to encrypt the data.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<S3Encryption>
- Returns:
- a new instance of
S3Encryption
- Throws:
NullPointerException
- if any required attribute was not provided
-