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 Details

    • Builder

      public Builder()
  • Method Details

    • delimiter

      @Stability(Stable) public CsvOptions.Builder delimiter(String delimiter)
      Sets the value of CsvOptions.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 ( )
      Returns:
      this
    • headerList

      @Stability(Stable) public CsvOptions.Builder headerList(List<String> headerList)
      Sets the value of CsvOptions.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

      @Stability(Stable) public CsvOptions build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CsvOptions>
      Returns:
      a new instance of CsvOptions
      Throws:
      NullPointerException - if any required attribute was not provided