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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ConversionSource.BuilderfileFormat(String fileFormat)The format for the input file: either JSON or XML.ConversionSource.BuilderfileFormat(ConversionSourceFormat fileFormat)The format for the input file: either JSON or XML.default ConversionSource.BuilderinputFile(Consumer<InputFileSource.Builder> inputFile)File to be convertedConversionSource.BuilderinputFile(InputFileSource inputFile)File to be converted-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
fileFormat
ConversionSource.Builder fileFormat(String 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:
ConversionSourceFormat,ConversionSourceFormat
-
fileFormat
ConversionSource.Builder fileFormat(ConversionSourceFormat 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:
ConversionSourceFormat,ConversionSourceFormat
-
inputFile
ConversionSource.Builder inputFile(InputFileSource 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
default ConversionSource.Builder inputFile(Consumer<InputFileSource.Builder> 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:
inputFile(InputFileSource)
-
-