Interface SourceSchema.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SourceSchema.Builder,SourceSchema>,SdkBuilder<SourceSchema.Builder,SourceSchema>,SdkPojo
- Enclosing class:
- SourceSchema
public static interface SourceSchema.Builder extends SdkPojo, CopyableBuilder<SourceSchema.Builder,SourceSchema>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SourceSchema.BuilderrecordColumns(Collection<RecordColumn> recordColumns)A list ofRecordColumnobjects.SourceSchema.BuilderrecordColumns(Consumer<RecordColumn.Builder>... recordColumns)A list ofRecordColumnobjects.SourceSchema.BuilderrecordColumns(RecordColumn... recordColumns)A list ofRecordColumnobjects.SourceSchema.BuilderrecordEncoding(String recordEncoding)Specifies the encoding of the records in the streaming source.default SourceSchema.BuilderrecordFormat(Consumer<RecordFormat.Builder> recordFormat)Specifies the format of the records on the streaming source.SourceSchema.BuilderrecordFormat(RecordFormat recordFormat)Specifies the format of the records on the streaming source.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
recordFormat
SourceSchema.Builder recordFormat(RecordFormat recordFormat)
Specifies the format of the records on the streaming source.
- Parameters:
recordFormat- Specifies the format of the records on the streaming source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recordFormat
default SourceSchema.Builder recordFormat(Consumer<RecordFormat.Builder> recordFormat)
Specifies the format of the records on the streaming source.
This is a convenience method that creates an instance of theRecordFormat.Builderavoiding the need to create one manually viaRecordFormat.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecordFormat(RecordFormat).- Parameters:
recordFormat- a consumer that will call methods onRecordFormat.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
recordFormat(RecordFormat)
-
recordEncoding
SourceSchema.Builder recordEncoding(String recordEncoding)
Specifies the encoding of the records in the streaming source. For example, UTF-8.
- Parameters:
recordEncoding- Specifies the encoding of the records in the streaming source. For example, UTF-8.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recordColumns
SourceSchema.Builder recordColumns(Collection<RecordColumn> recordColumns)
A list of
RecordColumnobjects.- Parameters:
recordColumns- A list ofRecordColumnobjects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recordColumns
SourceSchema.Builder recordColumns(RecordColumn... recordColumns)
A list of
RecordColumnobjects.- Parameters:
recordColumns- A list ofRecordColumnobjects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recordColumns
SourceSchema.Builder recordColumns(Consumer<RecordColumn.Builder>... recordColumns)
A list of
This is a convenience method that creates an instance of theRecordColumnobjects.RecordColumn.Builderavoiding the need to create one manually viaRecordColumn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#recordColumns(List.) - Parameters:
recordColumns- a consumer that will call methods onRecordColumn.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#recordColumns(java.util.Collection)
-
-