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