Class CfnClassifier.CsvClassifierProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnClassifier.CsvClassifierProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClassifier.CsvClassifierProperty>
- Enclosing interface:
CfnClassifier.CsvClassifierProperty
@Stability(Stable)
public static final class CfnClassifier.CsvClassifierProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClassifier.CsvClassifierProperty>
A builder for
CfnClassifier.CsvClassifierProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowSingleColumn
(Boolean allowSingleColumn) Sets the value ofCfnClassifier.CsvClassifierProperty.getAllowSingleColumn()
allowSingleColumn
(IResolvable allowSingleColumn) Sets the value ofCfnClassifier.CsvClassifierProperty.getAllowSingleColumn()
build()
Builds the configured instance.containsCustomDatatype
(List<String> containsCustomDatatype) Sets the value ofCfnClassifier.CsvClassifierProperty.getContainsCustomDatatype()
containsHeader
(String containsHeader) Sets the value ofCfnClassifier.CsvClassifierProperty.getContainsHeader()
customDatatypeConfigured
(Boolean customDatatypeConfigured) Sets the value ofCfnClassifier.CsvClassifierProperty.getCustomDatatypeConfigured()
customDatatypeConfigured
(IResolvable customDatatypeConfigured) Sets the value ofCfnClassifier.CsvClassifierProperty.getCustomDatatypeConfigured()
Sets the value ofCfnClassifier.CsvClassifierProperty.getDelimiter()
disableValueTrimming
(Boolean disableValueTrimming) Sets the value ofCfnClassifier.CsvClassifierProperty.getDisableValueTrimming()
disableValueTrimming
(IResolvable disableValueTrimming) Sets the value ofCfnClassifier.CsvClassifierProperty.getDisableValueTrimming()
Sets the value ofCfnClassifier.CsvClassifierProperty.getHeader()
Sets the value ofCfnClassifier.CsvClassifierProperty.getName()
quoteSymbol
(String quoteSymbol) Sets the value ofCfnClassifier.CsvClassifierProperty.getQuoteSymbol()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowSingleColumn
@Stability(Stable) public CfnClassifier.CsvClassifierProperty.Builder allowSingleColumn(Boolean allowSingleColumn) Sets the value ofCfnClassifier.CsvClassifierProperty.getAllowSingleColumn()
- Parameters:
allowSingleColumn
- Enables the processing of files that contain only one column.- Returns:
this
-
allowSingleColumn
@Stability(Stable) public CfnClassifier.CsvClassifierProperty.Builder allowSingleColumn(IResolvable allowSingleColumn) Sets the value ofCfnClassifier.CsvClassifierProperty.getAllowSingleColumn()
- Parameters:
allowSingleColumn
- Enables the processing of files that contain only one column.- Returns:
this
-
containsCustomDatatype
@Stability(Stable) public CfnClassifier.CsvClassifierProperty.Builder containsCustomDatatype(List<String> containsCustomDatatype) Sets the value ofCfnClassifier.CsvClassifierProperty.getContainsCustomDatatype()
- Parameters:
containsCustomDatatype
- Indicates whether the CSV file contains custom data types.- Returns:
this
-
containsHeader
@Stability(Stable) public CfnClassifier.CsvClassifierProperty.Builder containsHeader(String containsHeader) Sets the value ofCfnClassifier.CsvClassifierProperty.getContainsHeader()
- Parameters:
containsHeader
- Indicates whether the CSV file contains a header. A value ofUNKNOWN
specifies that the classifier will detect whether the CSV file contains headings.A value of
PRESENT
specifies that the CSV file contains headings.A value of
ABSENT
specifies that the CSV file does not contain headings.- Returns:
this
-
customDatatypeConfigured
@Stability(Stable) public CfnClassifier.CsvClassifierProperty.Builder customDatatypeConfigured(Boolean customDatatypeConfigured) Sets the value ofCfnClassifier.CsvClassifierProperty.getCustomDatatypeConfigured()
- Parameters:
customDatatypeConfigured
- Enables the configuration of custom data types.- Returns:
this
-
customDatatypeConfigured
@Stability(Stable) public CfnClassifier.CsvClassifierProperty.Builder customDatatypeConfigured(IResolvable customDatatypeConfigured) Sets the value ofCfnClassifier.CsvClassifierProperty.getCustomDatatypeConfigured()
- Parameters:
customDatatypeConfigured
- Enables the configuration of custom data types.- Returns:
this
-
delimiter
Sets the value ofCfnClassifier.CsvClassifierProperty.getDelimiter()
- Parameters:
delimiter
- A custom symbol to denote what separates each column entry in the row.- Returns:
this
-
disableValueTrimming
@Stability(Stable) public CfnClassifier.CsvClassifierProperty.Builder disableValueTrimming(Boolean disableValueTrimming) Sets the value ofCfnClassifier.CsvClassifierProperty.getDisableValueTrimming()
- Parameters:
disableValueTrimming
- Specifies not to trim values before identifying the type of column values. The default value istrue
.- Returns:
this
-
disableValueTrimming
@Stability(Stable) public CfnClassifier.CsvClassifierProperty.Builder disableValueTrimming(IResolvable disableValueTrimming) Sets the value ofCfnClassifier.CsvClassifierProperty.getDisableValueTrimming()
- Parameters:
disableValueTrimming
- Specifies not to trim values before identifying the type of column values. The default value istrue
.- Returns:
this
-
header
Sets the value ofCfnClassifier.CsvClassifierProperty.getHeader()
- Parameters:
header
- A list of strings representing column names.- Returns:
this
-
name
Sets the value ofCfnClassifier.CsvClassifierProperty.getName()
- Parameters:
name
- The name of the classifier.- Returns:
this
-
quoteSymbol
@Stability(Stable) public CfnClassifier.CsvClassifierProperty.Builder quoteSymbol(String quoteSymbol) Sets the value ofCfnClassifier.CsvClassifierProperty.getQuoteSymbol()
- Parameters:
quoteSymbol
- A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnClassifier.CsvClassifierProperty>
- Returns:
- a new instance of
CfnClassifier.CsvClassifierProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-