Interface FileTransformerConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FileTransformerConfiguration.Builder,,FileTransformerConfiguration> SdkBuilder<FileTransformerConfiguration.Builder,FileTransformerConfiguration>
- Enclosing class:
FileTransformerConfiguration
public static interface FileTransformerConfiguration.Builder
extends CopyableBuilder<FileTransformerConfiguration.Builder,FileTransformerConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionexecutorService(ExecutorService executorService) Configures theExecutorServicethe writes should be executed on.failureBehavior(FileTransformerConfiguration.FailureBehavior failureBehavior) Configures theFileTransformerConfiguration.FailureBehaviorin the event of an errorfileWriteOption(FileTransformerConfiguration.FileWriteOption fileWriteOption) Configures how to write the fileExclusively used withFileTransformerConfiguration.FileWriteOption.WRITE_TO_POSITION.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Method Details
-
fileWriteOption
FileTransformerConfiguration.Builder fileWriteOption(FileTransformerConfiguration.FileWriteOption fileWriteOption) Configures how to write the file- Parameters:
fileWriteOption- the file write option- Returns:
- This object for method chaining.
-
failureBehavior
FileTransformerConfiguration.Builder failureBehavior(FileTransformerConfiguration.FailureBehavior failureBehavior) Configures theFileTransformerConfiguration.FailureBehaviorin the event of an error- Parameters:
failureBehavior- the failure behavior- Returns:
- This object for method chaining.
-
executorService
Configures theExecutorServicethe writes should be executed on.- Parameters:
executorService- the executor service to use, or null if using the default thread pool.- Returns:
- This object for method chaining.
-
position
Exclusively used withFileTransformerConfiguration.FileWriteOption.WRITE_TO_POSITION. Configures the position, where to start writing to the existing file. The location correspond to the first byte where new data will be written. For example, if128is configured, bytes 0-127 of the existing file will remain untouched and data will be written starting at byte 128. If not specified, defaults to 0.- Parameters:
writePosition- the position at where to start writing data to the file.- Returns:
- This object for method chaining.
-