Interface FileSource.Builder

  • Method Details

    • dataSourceArn

      FileSource.Builder dataSourceArn(String dataSourceArn)

      The Amazon Resource Name (ARN) for the data source.

      Parameters:
      dataSourceArn - The Amazon Resource Name (ARN) for the data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • uploadSettings

      FileSource.Builder uploadSettings(UploadSettings uploadSettings)

      Information about the format for the source file.

      Parameters:
      uploadSettings - Information about the format for the source file.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • uploadSettings

      default FileSource.Builder uploadSettings(Consumer<UploadSettings.Builder> uploadSettings)

      Information about the format for the source file.

      This is a convenience method that creates an instance of the UploadSettings.Builder avoiding the need to create one manually via UploadSettings.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to uploadSettings(UploadSettings).

      Parameters:
      uploadSettings - a consumer that will call methods on UploadSettings.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sheetIndex

      FileSource.Builder sheetIndex(Integer sheetIndex)

      The zero-based index of the sheet to use within the file. For files that contain multiple sheets, this identifies which sheet to read. Files that contain a single sheet, or that have no concept of sheets, use sheet 0.

      Parameters:
      sheetIndex - The zero-based index of the sheet to use within the file. For files that contain multiple sheets, this identifies which sheet to read. Files that contain a single sheet, or that have no concept of sheets, use sheet 0.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inputColumns

      FileSource.Builder inputColumns(Collection<InputColumn> inputColumns)

      The column schema of the file.

      Parameters:
      inputColumns - The column schema of the file.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inputColumns

      FileSource.Builder inputColumns(InputColumn... inputColumns)

      The column schema of the file.

      Parameters:
      inputColumns - The column schema of the file.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inputColumns

      FileSource.Builder inputColumns(Consumer<InputColumn.Builder>... inputColumns)

      The column schema of the file.

      This is a convenience method that creates an instance of the InputColumn.Builder avoiding the need to create one manually via InputColumn.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to inputColumns(List<InputColumn>).

      Parameters:
      inputColumns - a consumer that will call methods on InputColumn.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: