Class CfnBucketPropsMixin.DestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.DestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.DestinationProperty>
- Enclosing interface:
CfnBucketPropsMixin.DestinationProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.DestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.DestinationProperty>
A builder for
CfnBucketPropsMixin.DestinationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketAccountId(String bucketAccountId) Sets the value ofCfnBucketPropsMixin.DestinationProperty.getBucketAccountId()Sets the value ofCfnBucketPropsMixin.DestinationProperty.getBucketArn()bucketArn(IBucketRef bucketArn) Sets the value ofCfnBucketPropsMixin.DestinationProperty.getBucketArn()build()Builds the configured instance.Sets the value ofCfnBucketPropsMixin.DestinationProperty.getFormat()Sets the value ofCfnBucketPropsMixin.DestinationProperty.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketAccountId
@Stability(Stable) public CfnBucketPropsMixin.DestinationProperty.Builder bucketAccountId(String bucketAccountId) Sets the value ofCfnBucketPropsMixin.DestinationProperty.getBucketAccountId()- Parameters:
bucketAccountId- The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.
- Returns:
this
-
bucketArn
@Stability(Stable) public CfnBucketPropsMixin.DestinationProperty.Builder bucketArn(String bucketArn) Sets the value ofCfnBucketPropsMixin.DestinationProperty.getBucketArn()- Parameters:
bucketArn- The Amazon Resource Name (ARN) of the bucket to which data is exported.- Returns:
this
-
bucketArn
@Stability(Stable) public CfnBucketPropsMixin.DestinationProperty.Builder bucketArn(IBucketRef bucketArn) Sets the value ofCfnBucketPropsMixin.DestinationProperty.getBucketArn()- Parameters:
bucketArn- The Amazon Resource Name (ARN) of the bucket to which data is exported.- Returns:
this
-
format
Sets the value ofCfnBucketPropsMixin.DestinationProperty.getFormat()- Parameters:
format- Specifies the file format used when exporting data to Amazon S3. Allowed values :CSV|ORC|Parquet- Returns:
this
-
prefix
Sets the value ofCfnBucketPropsMixin.DestinationProperty.getPrefix()- Parameters:
prefix- The prefix to use when exporting data. The prefix is prepended to all results.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.DestinationProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.DestinationProperty - Throws:
NullPointerException- if any required attribute was not provided
-