Class CfnBucket.ServerSideEncryptionRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.ServerSideEncryptionRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.ServerSideEncryptionRuleProperty>
- Enclosing interface:
CfnBucket.ServerSideEncryptionRuleProperty
@Stability(Stable)
public static final class CfnBucket.ServerSideEncryptionRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.ServerSideEncryptionRuleProperty>
A builder for
CfnBucket.ServerSideEncryptionRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbucketKeyEnabled
(Boolean bucketKeyEnabled) Sets the value ofCfnBucket.ServerSideEncryptionRuleProperty.getBucketKeyEnabled()
bucketKeyEnabled
(IResolvable bucketKeyEnabled) Sets the value ofCfnBucket.ServerSideEncryptionRuleProperty.getBucketKeyEnabled()
build()
Builds the configured instance.serverSideEncryptionByDefault
(IResolvable serverSideEncryptionByDefault) serverSideEncryptionByDefault
(CfnBucket.ServerSideEncryptionByDefaultProperty serverSideEncryptionByDefault)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketKeyEnabled
@Stability(Stable) public CfnBucket.ServerSideEncryptionRuleProperty.Builder bucketKeyEnabled(Boolean bucketKeyEnabled) Sets the value ofCfnBucket.ServerSideEncryptionRuleProperty.getBucketKeyEnabled()
- Parameters:
bucketKeyEnabled
- Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting theBucketKeyEnabled
element totrue
causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide .
- Returns:
this
-
bucketKeyEnabled
@Stability(Stable) public CfnBucket.ServerSideEncryptionRuleProperty.Builder bucketKeyEnabled(IResolvable bucketKeyEnabled) Sets the value ofCfnBucket.ServerSideEncryptionRuleProperty.getBucketKeyEnabled()
- Parameters:
bucketKeyEnabled
- Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting theBucketKeyEnabled
element totrue
causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide .
- Returns:
this
-
serverSideEncryptionByDefault
@Stability(Stable) public CfnBucket.ServerSideEncryptionRuleProperty.Builder serverSideEncryptionByDefault(IResolvable serverSideEncryptionByDefault) - Parameters:
serverSideEncryptionByDefault
- Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.- Returns:
this
-
serverSideEncryptionByDefault
@Stability(Stable) public CfnBucket.ServerSideEncryptionRuleProperty.Builder serverSideEncryptionByDefault(CfnBucket.ServerSideEncryptionByDefaultProperty serverSideEncryptionByDefault) - Parameters:
serverSideEncryptionByDefault
- Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.ServerSideEncryptionRuleProperty>
- Returns:
- a new instance of
CfnBucket.ServerSideEncryptionRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-