Interface ConversionSource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ConversionSource.Builder,,ConversionSource> SdkBuilder<ConversionSource.Builder,,ConversionSource> SdkPojo
- Enclosing class:
ConversionSource
public static interface ConversionSource.Builder
extends SdkPojo, CopyableBuilder<ConversionSource.Builder,ConversionSource>
-
Method Summary
Modifier and TypeMethodDescriptionfileFormat(String fileFormat) The format for the input file: either JSON or XML.fileFormat(ConversionSourceFormat fileFormat) The format for the input file: either JSON or XML.default ConversionSource.BuilderinputFile(Consumer<InputFileSource.Builder> inputFile) File to be convertedinputFile(InputFileSource inputFile) File to be convertedMethods 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, sdkFields
-
Method Details
-
fileFormat
The format for the input file: either JSON or XML.
- Parameters:
fileFormat- The format for the input file: either JSON or XML.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fileFormat
The format for the input file: either JSON or XML.
- Parameters:
fileFormat- The format for the input file: either JSON or XML.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inputFile
File to be converted
- Parameters:
inputFile- File to be converted- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputFile
File to be converted
This is a convenience method that creates an instance of theInputFileSource.Builderavoiding the need to create one manually viaInputFileSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinputFile(InputFileSource).- Parameters:
inputFile- a consumer that will call methods onInputFileSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-