Interface AwsS3BucketServerSideEncryptionConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AwsS3BucketServerSideEncryptionConfiguration.Builder,,AwsS3BucketServerSideEncryptionConfiguration> SdkBuilder<AwsS3BucketServerSideEncryptionConfiguration.Builder,,AwsS3BucketServerSideEncryptionConfiguration> SdkPojo
- Enclosing class:
AwsS3BucketServerSideEncryptionConfiguration
public static interface AwsS3BucketServerSideEncryptionConfiguration.Builder
extends SdkPojo, CopyableBuilder<AwsS3BucketServerSideEncryptionConfiguration.Builder,AwsS3BucketServerSideEncryptionConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionThe encryption rules that are applied to the S3 bucket.The encryption rules that are applied to the S3 bucket.rules(AwsS3BucketServerSideEncryptionRule... rules) The encryption rules that are applied to the S3 bucket.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, sdkFields
-
Method Details
-
rules
AwsS3BucketServerSideEncryptionConfiguration.Builder rules(Collection<AwsS3BucketServerSideEncryptionRule> rules) The encryption rules that are applied to the S3 bucket.
- Parameters:
rules- The encryption rules that are applied to the S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
AwsS3BucketServerSideEncryptionConfiguration.Builder rules(AwsS3BucketServerSideEncryptionRule... rules) The encryption rules that are applied to the S3 bucket.
- Parameters:
rules- The encryption rules that are applied to the S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
AwsS3BucketServerSideEncryptionConfiguration.Builder rules(Consumer<AwsS3BucketServerSideEncryptionRule.Builder>... rules) The encryption rules that are applied to the S3 bucket.
This is a convenience method that creates an instance of theAwsS3BucketServerSideEncryptionRule.Builderavoiding the need to create one manually viaAwsS3BucketServerSideEncryptionRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torules(List<AwsS3BucketServerSideEncryptionRule>).- Parameters:
rules- a consumer that will call methods onAwsS3BucketServerSideEncryptionRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-