Class CfnBucket.DestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.DestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.DestinationProperty>
- Enclosing interface:
CfnBucket.DestinationProperty
@Stability(Stable)
public static final class CfnBucket.DestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.DestinationProperty>
A builder for
CfnBucket.DestinationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbucketAccountId
(String bucketAccountId) Sets the value ofCfnBucket.DestinationProperty.getBucketAccountId()
Sets the value ofCfnBucket.DestinationProperty.getBucketArn()
build()
Builds the configured instance.Sets the value ofCfnBucket.DestinationProperty.getFormat()
Sets the value ofCfnBucket.DestinationProperty.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketArn
Sets the value ofCfnBucket.DestinationProperty.getBucketArn()
- Parameters:
bucketArn
- The Amazon Resource Name (ARN) of the bucket to which data is exported. This parameter is required.- Returns:
this
-
format
Sets the value ofCfnBucket.DestinationProperty.getFormat()
- Parameters:
format
- Specifies the file format used when exporting data to Amazon S3. This parameter is required. Allowed values :CSV
|ORC
|Parquet
- Returns:
this
-
bucketAccountId
@Stability(Stable) public CfnBucket.DestinationProperty.Builder bucketAccountId(String bucketAccountId) Sets the value ofCfnBucket.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
-
prefix
Sets the value ofCfnBucket.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.DestinationProperty>
- Returns:
- a new instance of
CfnBucket.DestinationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-