Class CsvOptions.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.CsvOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CsvOptions>
- Enclosing interface:
CsvOptions
@Stability(Stable)
public static final class CsvOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CsvOptions>
A builder for
CsvOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCsvOptions.getDelimiter()
headerList
(List<String> headerList) Sets the value ofCsvOptions.getHeaderList()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
delimiter
Sets the value ofCsvOptions.getDelimiter()
- Parameters:
delimiter
- The delimiter used for separating items in the CSV file being imported. Valid delimiters are as follows:- comma (
,
) - tab (
\t
) - colon (
:
) - semicolon (
;
) - pipe (
|
) - space (
- comma (
- Returns:
this
-
headerList
Sets the value ofCsvOptions.getHeaderList()
- Parameters:
headerList
- List of the headers used to specify a common header for all source CSV files being imported. NOTE: If this field is specified then the first line of each CSV file is treated as data instead of the header. If this field is not specified the the first line of each CSV file is treated as the header.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CsvOptions>
- Returns:
- a new instance of
CsvOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-