Interface FileSource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FileSource.Builder,,FileSource> SdkBuilder<FileSource.Builder,,FileSource> SdkPojo
- Enclosing class:
FileSource
-
Method Summary
Modifier and TypeMethodDescriptiondataSourceArn(String dataSourceArn) The Amazon Resource Name (ARN) for the data source.inputColumns(Collection<InputColumn> inputColumns) The column schema of the file.inputColumns(Consumer<InputColumn.Builder>... inputColumns) The column schema of the file.inputColumns(InputColumn... inputColumns) The column schema of the file.sheetIndex(Integer sheetIndex) The zero-based index of the sheet to use within the file.default FileSource.BuilderuploadSettings(Consumer<UploadSettings.Builder> uploadSettings) Information about the format for the source file.uploadSettings(UploadSettings uploadSettings) Information about the format for the source file.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
Information about the format for the source file.
This is a convenience method that creates an instance of theUploadSettings.Builderavoiding the need to create one manually viaUploadSettings.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touploadSettings(UploadSettings).- Parameters:
uploadSettings- a consumer that will call methods onUploadSettings.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
The column schema of the file.
This is a convenience method that creates an instance of theInputColumn.Builderavoiding the need to create one manually viaInputColumn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinputColumns(List<InputColumn>).- Parameters:
inputColumns- a consumer that will call methods onInputColumn.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-