Class CfnStorageLens.S3BucketDestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnStorageLens.S3BucketDestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStorageLens.S3BucketDestinationProperty>
- Enclosing interface:
CfnStorageLens.S3BucketDestinationProperty
@Stability(Stable)
public static final class CfnStorageLens.S3BucketDestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStorageLens.S3BucketDestinationProperty>
A builder for
CfnStorageLens.S3BucketDestinationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnStorageLens.S3BucketDestinationProperty.getAccountId()Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getArn()build()Builds the configured instance.encryption(IResolvable encryption) Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getEncryption()encryption(CfnStorageLens.EncryptionProperty encryption) Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getEncryption()Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getFormat()outputSchemaVersion(String outputSchemaVersion) Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getOutputSchemaVersion()Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Stable) public CfnStorageLens.S3BucketDestinationProperty.Builder accountId(String accountId) Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getAccountId()- Parameters:
accountId- This property contains the details of the AWS account ID of the S3 Storage Lens export bucket destination. This parameter is required.- Returns:
this
-
arn
Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getArn()- Parameters:
arn- This property contains the details of the ARN of the bucket destination of the S3 Storage Lens export. This parameter is required.- Returns:
this
-
format
Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getFormat()- Parameters:
format- This property contains the details of the format of the S3 Storage Lens export bucket destination. This parameter is required.- Returns:
this
-
outputSchemaVersion
@Stability(Stable) public CfnStorageLens.S3BucketDestinationProperty.Builder outputSchemaVersion(String outputSchemaVersion) Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getOutputSchemaVersion()- Parameters:
outputSchemaVersion- This property contains the details of the output schema version of the S3 Storage Lens export bucket destination. This parameter is required.- Returns:
this
-
encryption
@Stability(Stable) public CfnStorageLens.S3BucketDestinationProperty.Builder encryption(IResolvable encryption) Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getEncryption()- Parameters:
encryption- This property contains the details of the encryption of the bucket destination of the Amazon S3 Storage Lens metrics export.- Returns:
this
-
encryption
@Stability(Stable) public CfnStorageLens.S3BucketDestinationProperty.Builder encryption(CfnStorageLens.EncryptionProperty encryption) Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getEncryption()- Parameters:
encryption- This property contains the details of the encryption of the bucket destination of the Amazon S3 Storage Lens metrics export.- Returns:
this
-
prefix
Sets the value ofCfnStorageLens.S3BucketDestinationProperty.getPrefix()- Parameters:
prefix- This property contains the details of the prefix of the bucket destination of the S3 Storage Lens export .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStorageLens.S3BucketDestinationProperty>- Returns:
- a new instance of
CfnStorageLens.S3BucketDestinationProperty - Throws:
NullPointerException- if any required attribute was not provided
-