Interface ConversionSource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ConversionSource.Builder,
,ConversionSource> SdkBuilder<ConversionSource.Builder,
,ConversionSource> SdkPojo
- Enclosing class:
ConversionSource
@Mutable
@NotThreadSafe
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.Builder
inputFile
(Consumer<InputFileSource.Builder> inputFile) File to be convertedinputFile
(InputFileSource inputFile) File to be convertedMethods 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, sdkFieldNameToField, 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.Builder
avoiding the need to create one manually viaInputFileSource.builder()
.When the
Consumer
completes,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:
-