Package software.amazon.awssdk.core
Enum FileTransformerConfiguration.FileWriteOption
java.lang.Object
java.lang.Enum<FileTransformerConfiguration.FileWriteOption>
software.amazon.awssdk.core.FileTransformerConfiguration.FileWriteOption
- All Implemented Interfaces:
Serializable
,Comparable<FileTransformerConfiguration.FileWriteOption>
- Enclosing class:
FileTransformerConfiguration
public static enum FileTransformerConfiguration.FileWriteOption
extends Enum<FileTransformerConfiguration.FileWriteOption>
Defines how the SDK should write the file
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways create a new file.Create a new file if it doesn't exist, otherwise append to the existing file.Create a new file if it doesn't exist, otherwise replace the existing file.Write to an existing file at the specified position, defined by theFileTransformerConfiguration.position()
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CREATE_NEW
Always create a new file. If the file already exists,FileAlreadyExistsException
will be thrown. -
CREATE_OR_REPLACE_EXISTING
Create a new file if it doesn't exist, otherwise replace the existing file. -
CREATE_OR_APPEND_TO_EXISTING
Create a new file if it doesn't exist, otherwise append to the existing file. -
WRITE_TO_POSITION
Write to an existing file at the specified position, defined by theFileTransformerConfiguration.position()
. If the file does not exist, aNoSuchFileException
will be thrown. IfFileTransformerConfiguration.position()
is not configured, start overwriting data at the beginning of the file (byte 0).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-