Class CommonDestinationS3Props.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.destinations.alpha.CommonDestinationS3Props.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CommonDestinationS3Props>
- Enclosing interface:
CommonDestinationS3Props
@Stability(Experimental)
public static final class CommonDestinationS3Props.Builder
extends Object
implements software.amazon.jsii.Builder<CommonDestinationS3Props>
A builder for
CommonDestinationS3Props
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbufferingInterval
(Duration bufferingInterval) Sets the value ofCommonDestinationS3Props.getBufferingInterval()
bufferingSize
(Size bufferingSize) Sets the value ofCommonDestinationS3Props.getBufferingSize()
build()
Builds the configured instance.compression
(Compression compression) Sets the value ofCommonDestinationS3Props.getCompression()
dataOutputPrefix
(String dataOutputPrefix) Sets the value ofCommonDestinationS3Props.getDataOutputPrefix()
encryptionKey
(IKey encryptionKey) Sets the value ofCommonDestinationS3Props.getEncryptionKey()
errorOutputPrefix
(String errorOutputPrefix) Sets the value ofCommonDestinationS3Props.getErrorOutputPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bufferingInterval
@Stability(Experimental) public CommonDestinationS3Props.Builder bufferingInterval(Duration bufferingInterval) Sets the value ofCommonDestinationS3Props.getBufferingInterval()
- Parameters:
bufferingInterval
- The length of time that Firehose buffers incoming data before delivering it to the S3 bucket. Minimum: Duration.seconds(0) Maximum: Duration.seconds(900)- Returns:
this
-
bufferingSize
Sets the value ofCommonDestinationS3Props.getBufferingSize()
- Parameters:
bufferingSize
- The size of the buffer that Kinesis Data Firehose uses for incoming data before delivering it to the S3 bucket. Minimum: Size.mebibytes(1) Maximum: Size.mebibytes(128)- Returns:
this
-
compression
@Stability(Experimental) public CommonDestinationS3Props.Builder compression(Compression compression) Sets the value ofCommonDestinationS3Props.getCompression()
- Parameters:
compression
- The type of compression that Kinesis Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket. The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket.- Returns:
this
-
dataOutputPrefix
@Stability(Experimental) public CommonDestinationS3Props.Builder dataOutputPrefix(String dataOutputPrefix) Sets the value ofCommonDestinationS3Props.getDataOutputPrefix()
- Parameters:
dataOutputPrefix
- A prefix that Kinesis Data Firehose evaluates and adds to records before writing them to S3. This prefix appears immediately following the bucket name.- Returns:
this
-
encryptionKey
Sets the value ofCommonDestinationS3Props.getEncryptionKey()
- Parameters:
encryptionKey
- The AWS KMS key used to encrypt the data that it delivers to your Amazon S3 bucket.- Returns:
this
-
errorOutputPrefix
@Stability(Experimental) public CommonDestinationS3Props.Builder errorOutputPrefix(String errorOutputPrefix) Sets the value ofCommonDestinationS3Props.getErrorOutputPrefix()
- Parameters:
errorOutputPrefix
- A prefix that Kinesis Data Firehose evaluates and adds to failed records before writing them to S3. This prefix appears immediately following the bucket name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CommonDestinationS3Props>
- Returns:
- a new instance of
CommonDestinationS3Props
- Throws:
NullPointerException
- if any required attribute was not provided
-