Class CfnDeliveryStreamPropsMixin.ParquetSerDeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kinesisfirehose.CfnDeliveryStreamPropsMixin.ParquetSerDeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryStreamPropsMixin.ParquetSerDeProperty>
- Enclosing interface:
CfnDeliveryStreamPropsMixin.ParquetSerDeProperty
@Stability(Stable)
public static final class CfnDeliveryStreamPropsMixin.ParquetSerDeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryStreamPropsMixin.ParquetSerDeProperty>
A builder for
CfnDeliveryStreamPropsMixin.ParquetSerDeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockSizeBytes(Number blockSizeBytes) Sets the value ofCfnDeliveryStreamPropsMixin.ParquetSerDeProperty.getBlockSizeBytes()build()Builds the configured instance.compression(String compression) Sets the value ofCfnDeliveryStreamPropsMixin.ParquetSerDeProperty.getCompression()enableDictionaryCompression(Boolean enableDictionaryCompression) enableDictionaryCompression(IResolvable enableDictionaryCompression) maxPaddingBytes(Number maxPaddingBytes) Sets the value ofCfnDeliveryStreamPropsMixin.ParquetSerDeProperty.getMaxPaddingBytes()pageSizeBytes(Number pageSizeBytes) Sets the value ofCfnDeliveryStreamPropsMixin.ParquetSerDeProperty.getPageSizeBytes()writerVersion(String writerVersion) Sets the value ofCfnDeliveryStreamPropsMixin.ParquetSerDeProperty.getWriterVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blockSizeBytes
@Stability(Stable) public CfnDeliveryStreamPropsMixin.ParquetSerDeProperty.Builder blockSizeBytes(Number blockSizeBytes) Sets the value ofCfnDeliveryStreamPropsMixin.ParquetSerDeProperty.getBlockSizeBytes()- Parameters:
blockSizeBytes- The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Firehose uses this value for padding calculations.- Returns:
this
-
compression
@Stability(Stable) public CfnDeliveryStreamPropsMixin.ParquetSerDeProperty.Builder compression(String compression) Sets the value ofCfnDeliveryStreamPropsMixin.ParquetSerDeProperty.getCompression()- Parameters:
compression- The compression code to use over data blocks. The possible values areUNCOMPRESSED,SNAPPY, andGZIP, with the default beingSNAPPY. UseSNAPPYfor higher decompression speed. UseGZIPif the compression ratio is more important than speed.- Returns:
this
-
enableDictionaryCompression
@Stability(Stable) public CfnDeliveryStreamPropsMixin.ParquetSerDeProperty.Builder enableDictionaryCompression(Boolean enableDictionaryCompression) - Parameters:
enableDictionaryCompression- Indicates whether to enable dictionary compression.- Returns:
this
-
enableDictionaryCompression
@Stability(Stable) public CfnDeliveryStreamPropsMixin.ParquetSerDeProperty.Builder enableDictionaryCompression(IResolvable enableDictionaryCompression) - Parameters:
enableDictionaryCompression- Indicates whether to enable dictionary compression.- Returns:
this
-
maxPaddingBytes
@Stability(Stable) public CfnDeliveryStreamPropsMixin.ParquetSerDeProperty.Builder maxPaddingBytes(Number maxPaddingBytes) Sets the value ofCfnDeliveryStreamPropsMixin.ParquetSerDeProperty.getMaxPaddingBytes()- Parameters:
maxPaddingBytes- The maximum amount of padding to apply. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 0.- Returns:
this
-
pageSizeBytes
@Stability(Stable) public CfnDeliveryStreamPropsMixin.ParquetSerDeProperty.Builder pageSizeBytes(Number pageSizeBytes) Sets the value ofCfnDeliveryStreamPropsMixin.ParquetSerDeProperty.getPageSizeBytes()- Parameters:
pageSizeBytes- The Parquet page size. Column chunks are divided into pages. A page is conceptually an indivisible unit (in terms of compression and encoding). The minimum value is 64 KiB and the default is 1 MiB.- Returns:
this
-
writerVersion
@Stability(Stable) public CfnDeliveryStreamPropsMixin.ParquetSerDeProperty.Builder writerVersion(String writerVersion) Sets the value ofCfnDeliveryStreamPropsMixin.ParquetSerDeProperty.getWriterVersion()- Parameters:
writerVersion- Indicates the version of row format to output. The possible values areV1andV2. The default isV1.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeliveryStreamPropsMixin.ParquetSerDeProperty>- Returns:
- a new instance of
CfnDeliveryStreamPropsMixin.ParquetSerDeProperty - Throws:
NullPointerException- if any required attribute was not provided
-