Class CfnPartition.StorageDescriptorProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnPartition.StorageDescriptorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPartition.StorageDescriptorProperty>
- Enclosing interface:
CfnPartition.StorageDescriptorProperty
@Stability(Stable)
public static final class CfnPartition.StorageDescriptorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPartition.StorageDescriptorProperty>
A builder for
CfnPartition.StorageDescriptorProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbucketColumns
(List<String> bucketColumns) Sets the value ofCfnPartition.StorageDescriptorProperty.getBucketColumns()
build()
Builds the configured instance.Sets the value ofCfnPartition.StorageDescriptorProperty.getColumns()
columns
(IResolvable columns) Sets the value ofCfnPartition.StorageDescriptorProperty.getColumns()
compressed
(Boolean compressed) Sets the value ofCfnPartition.StorageDescriptorProperty.getCompressed()
compressed
(IResolvable compressed) Sets the value ofCfnPartition.StorageDescriptorProperty.getCompressed()
inputFormat
(String inputFormat) Sets the value ofCfnPartition.StorageDescriptorProperty.getInputFormat()
Sets the value ofCfnPartition.StorageDescriptorProperty.getLocation()
numberOfBuckets
(Number numberOfBuckets) Sets the value ofCfnPartition.StorageDescriptorProperty.getNumberOfBuckets()
outputFormat
(String outputFormat) Sets the value ofCfnPartition.StorageDescriptorProperty.getOutputFormat()
parameters
(Object parameters) Sets the value ofCfnPartition.StorageDescriptorProperty.getParameters()
schemaReference
(IResolvable schemaReference) Sets the value ofCfnPartition.StorageDescriptorProperty.getSchemaReference()
schemaReference
(CfnPartition.SchemaReferenceProperty schemaReference) Sets the value ofCfnPartition.StorageDescriptorProperty.getSchemaReference()
serdeInfo
(IResolvable serdeInfo) Sets the value ofCfnPartition.StorageDescriptorProperty.getSerdeInfo()
serdeInfo
(CfnPartition.SerdeInfoProperty serdeInfo) Sets the value ofCfnPartition.StorageDescriptorProperty.getSerdeInfo()
skewedInfo
(IResolvable skewedInfo) Sets the value ofCfnPartition.StorageDescriptorProperty.getSkewedInfo()
skewedInfo
(CfnPartition.SkewedInfoProperty skewedInfo) Sets the value ofCfnPartition.StorageDescriptorProperty.getSkewedInfo()
sortColumns
(List<? extends Object> sortColumns) Sets the value ofCfnPartition.StorageDescriptorProperty.getSortColumns()
sortColumns
(IResolvable sortColumns) Sets the value ofCfnPartition.StorageDescriptorProperty.getSortColumns()
storedAsSubDirectories
(Boolean storedAsSubDirectories) Sets the value ofCfnPartition.StorageDescriptorProperty.getStoredAsSubDirectories()
storedAsSubDirectories
(IResolvable storedAsSubDirectories) Sets the value ofCfnPartition.StorageDescriptorProperty.getStoredAsSubDirectories()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketColumns
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder bucketColumns(List<String> bucketColumns) Sets the value ofCfnPartition.StorageDescriptorProperty.getBucketColumns()
- Parameters:
bucketColumns
- A list of reducer grouping columns, clustering columns, and bucketing columns in the table.- Returns:
this
-
columns
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder columns(IResolvable columns) Sets the value ofCfnPartition.StorageDescriptorProperty.getColumns()
- Parameters:
columns
- A list of theColumns
in the table.- Returns:
this
-
columns
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder columns(List<? extends Object> columns) Sets the value ofCfnPartition.StorageDescriptorProperty.getColumns()
- Parameters:
columns
- A list of theColumns
in the table.- Returns:
this
-
compressed
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder compressed(Boolean compressed) Sets the value ofCfnPartition.StorageDescriptorProperty.getCompressed()
- Parameters:
compressed
-True
if the data in the table is compressed, orFalse
if not.- Returns:
this
-
compressed
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder compressed(IResolvable compressed) Sets the value ofCfnPartition.StorageDescriptorProperty.getCompressed()
- Parameters:
compressed
-True
if the data in the table is compressed, orFalse
if not.- Returns:
this
-
inputFormat
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder inputFormat(String inputFormat) Sets the value ofCfnPartition.StorageDescriptorProperty.getInputFormat()
- Parameters:
inputFormat
- The input format:SequenceFileInputFormat
(binary), orTextInputFormat
, or a custom format.- Returns:
this
-
location
Sets the value ofCfnPartition.StorageDescriptorProperty.getLocation()
- Parameters:
location
- The physical location of the table. By default, this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.- Returns:
this
-
numberOfBuckets
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder numberOfBuckets(Number numberOfBuckets) Sets the value ofCfnPartition.StorageDescriptorProperty.getNumberOfBuckets()
- Parameters:
numberOfBuckets
- The number of buckets. You must specify this property if the partition contains any dimension columns.- Returns:
this
-
outputFormat
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder outputFormat(String outputFormat) Sets the value ofCfnPartition.StorageDescriptorProperty.getOutputFormat()
- Parameters:
outputFormat
- The output format:SequenceFileOutputFormat
(binary), orIgnoreKeyTextOutputFormat
, or a custom format.- Returns:
this
-
parameters
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder parameters(Object parameters) Sets the value ofCfnPartition.StorageDescriptorProperty.getParameters()
- Parameters:
parameters
- The user-supplied properties in key-value form.- Returns:
this
-
schemaReference
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder schemaReference(IResolvable schemaReference) Sets the value ofCfnPartition.StorageDescriptorProperty.getSchemaReference()
- Parameters:
schemaReference
- An object that references a schema stored in the AWS Glue Schema Registry.- Returns:
this
-
schemaReference
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder schemaReference(CfnPartition.SchemaReferenceProperty schemaReference) Sets the value ofCfnPartition.StorageDescriptorProperty.getSchemaReference()
- Parameters:
schemaReference
- An object that references a schema stored in the AWS Glue Schema Registry.- Returns:
this
-
serdeInfo
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder serdeInfo(IResolvable serdeInfo) Sets the value ofCfnPartition.StorageDescriptorProperty.getSerdeInfo()
- Parameters:
serdeInfo
- The serialization/deserialization (SerDe) information.- Returns:
this
-
serdeInfo
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder serdeInfo(CfnPartition.SerdeInfoProperty serdeInfo) Sets the value ofCfnPartition.StorageDescriptorProperty.getSerdeInfo()
- Parameters:
serdeInfo
- The serialization/deserialization (SerDe) information.- Returns:
this
-
skewedInfo
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder skewedInfo(IResolvable skewedInfo) Sets the value ofCfnPartition.StorageDescriptorProperty.getSkewedInfo()
- Parameters:
skewedInfo
- The information about values that appear frequently in a column (skewed values).- Returns:
this
-
skewedInfo
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder skewedInfo(CfnPartition.SkewedInfoProperty skewedInfo) Sets the value ofCfnPartition.StorageDescriptorProperty.getSkewedInfo()
- Parameters:
skewedInfo
- The information about values that appear frequently in a column (skewed values).- Returns:
this
-
sortColumns
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder sortColumns(IResolvable sortColumns) Sets the value ofCfnPartition.StorageDescriptorProperty.getSortColumns()
- Parameters:
sortColumns
- A list specifying the sort order of each bucket in the table.- Returns:
this
-
sortColumns
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder sortColumns(List<? extends Object> sortColumns) Sets the value ofCfnPartition.StorageDescriptorProperty.getSortColumns()
- Parameters:
sortColumns
- A list specifying the sort order of each bucket in the table.- Returns:
this
-
storedAsSubDirectories
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder storedAsSubDirectories(Boolean storedAsSubDirectories) Sets the value ofCfnPartition.StorageDescriptorProperty.getStoredAsSubDirectories()
- Parameters:
storedAsSubDirectories
-True
if the table data is stored in subdirectories, orFalse
if not.- Returns:
this
-
storedAsSubDirectories
@Stability(Stable) public CfnPartition.StorageDescriptorProperty.Builder storedAsSubDirectories(IResolvable storedAsSubDirectories) Sets the value ofCfnPartition.StorageDescriptorProperty.getStoredAsSubDirectories()
- Parameters:
storedAsSubDirectories
-True
if the table data is stored in subdirectories, orFalse
if not.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPartition.StorageDescriptorProperty>
- Returns:
- a new instance of
CfnPartition.StorageDescriptorProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-