Package software.amazon.awssdk.core
Enum FileTransformerConfiguration.FailureBehavior
- java.lang.Object
-
- java.lang.Enum<FileTransformerConfiguration.FailureBehavior>
-
- software.amazon.awssdk.core.FileTransformerConfiguration.FailureBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<FileTransformerConfiguration.FailureBehavior>
- Enclosing class:
- FileTransformerConfiguration
public static enum FileTransformerConfiguration.FailureBehavior extends Enum<FileTransformerConfiguration.FailureBehavior>
Defines how the SDK should handle the file if there is an exception
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETE
In the event of an error, the SDK will attempt to delete the file and whatever has been written to it so far.LEAVE
In the event of an error, the SDK will NOT attempt to delete the file and leave the file as-is (with whatever has been written to it so far)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileTransformerConfiguration.FailureBehavior
valueOf(String name)
Returns the enum constant of this type with the specified name.static FileTransformerConfiguration.FailureBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DELETE
public static final FileTransformerConfiguration.FailureBehavior DELETE
In the event of an error, the SDK will attempt to delete the file and whatever has been written to it so far.
-
LEAVE
public static final FileTransformerConfiguration.FailureBehavior LEAVE
In the event of an error, the SDK will NOT attempt to delete the file and leave the file as-is (with whatever has been written to it so far)
-
-
Method Detail
-
values
public static FileTransformerConfiguration.FailureBehavior[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileTransformerConfiguration.FailureBehavior c : FileTransformerConfiguration.FailureBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileTransformerConfiguration.FailureBehavior valueOf(String name)
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
-
-