Package software.amazon.awssdk.core
Class FileTransformerConfiguration
java.lang.Object
software.amazon.awssdk.core.FileTransformerConfiguration
- All Implemented Interfaces:
 ToCopyableBuilder<FileTransformerConfiguration.Builder,FileTransformerConfiguration> 
public final class FileTransformerConfiguration
extends Object
implements ToCopyableBuilder<FileTransformerConfiguration.Builder,FileTransformerConfiguration> 
Configuration options for 
AsyncResponseTransformer.toFile(Path, FileTransformerConfiguration) to configure how the SDK
 should write the file and if the SDK should delete the file when an exception occurs.- See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enumDefines how the SDK should handle the file if there is an exceptionstatic enumDefines how the SDK should write the file - 
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create aFileTransformerConfiguration.Builder, used to create aFileTransformerConfiguration.static FileTransformerConfigurationReturns the defaultFileTransformerConfigurationforFileTransformerConfiguration.FileWriteOption.CREATE_NEWstatic FileTransformerConfigurationstatic FileTransformerConfigurationReturns the defaultFileTransformerConfigurationforFileTransformerConfiguration.FileWriteOption.CREATE_OR_REPLACE_EXISTINGbooleanThe configuredExecutorServicethe writes should be executed on.The configuredFileTransformerConfiguration.FailureBehaviorThe configuredFileTransformerConfiguration.FileWriteOptioninthashCode()Take this object and create a builder that contains all of the current property values of this object.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy 
- 
Method Details
- 
fileWriteOption
The configuredFileTransformerConfiguration.FileWriteOption - 
failureBehavior
The configuredFileTransformerConfiguration.FailureBehavior - 
executorService
The configuredExecutorServicethe writes should be executed on.If not set, the default thread pool defined by the underlying
FileSystemProviderwill be used. This will typically be the thread pool defined by theAsynchronousChannelGroup. - 
builder
Create aFileTransformerConfiguration.Builder, used to create aFileTransformerConfiguration. - 
defaultCreateNew
Returns the defaultFileTransformerConfigurationforFileTransformerConfiguration.FileWriteOption.CREATE_NEWAlways create a new file. If the file already exists,
FileAlreadyExistsExceptionwill be thrown. In the event of an error, the SDK will attempt to delete the file (whatever has been written to it so far). - 
defaultCreateOrReplaceExisting
Returns the defaultFileTransformerConfigurationforFileTransformerConfiguration.FileWriteOption.CREATE_OR_REPLACE_EXISTINGCreate a new file if it doesn't exist, otherwise replace the existing file. In the event of an error, the SDK will NOT attempt to delete the file, leaving it as-is
 - 
defaultCreateOrAppend
Returns the defaultFileTransformerConfigurationforFileTransformerConfiguration.FileWriteOption.CREATE_OR_APPEND_TO_EXISTINGCreate a new file if it doesn't exist, otherwise append to the existing file. In the event of an error, the SDK will NOT attempt to delete the file, leaving it as-is
 - 
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
 toBuilderin interfaceToCopyableBuilder<FileTransformerConfiguration.Builder,FileTransformerConfiguration> - Returns:
 - a builder for type T
 
 - 
equals
 - 
hashCode
public int hashCode() 
 -