Interface TopicConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TopicConfiguration.Builder,,TopicConfiguration> SdkBuilder<TopicConfiguration.Builder,,TopicConfiguration> SdkPojo
- Enclosing class:
TopicConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault TopicConfiguration.BuilderrecordConverter(Consumer<RecordConverter.Builder> recordConverter) Configuration that controls how Apache Kafka record values are deserialized for the destination.recordConverter(RecordConverter recordConverter) Configuration that controls how Apache Kafka record values are deserialized for the destination.default TopicConfiguration.BuilderrecordSchema(Consumer<RecordSchema.Builder> recordSchema) The schema used to validate records when the value converter requires one (for example, JSON_SCHEMA_GSR).recordSchema(RecordSchema recordSchema) The schema used to validate records when the value converter requires one (for example, JSON_SCHEMA_GSR).The Amazon Resource Name (ARN) that uniquely identifies the topic.Methods 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, sdkFieldNameToField, sdkFields
-
Method Details
-
recordConverter
Configuration that controls how Apache Kafka record values are deserialized for the destination.
- Parameters:
recordConverter- Configuration that controls how Apache Kafka record values are deserialized for the destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recordConverter
default TopicConfiguration.Builder recordConverter(Consumer<RecordConverter.Builder> recordConverter) Configuration that controls how Apache Kafka record values are deserialized for the destination.
This is a convenience method that creates an instance of theRecordConverter.Builderavoiding the need to create one manually viaRecordConverter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecordConverter(RecordConverter).- Parameters:
recordConverter- a consumer that will call methods onRecordConverter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recordSchema
The schema used to validate records when the value converter requires one (for example, JSON_SCHEMA_GSR).
- Parameters:
recordSchema- The schema used to validate records when the value converter requires one (for example, JSON_SCHEMA_GSR).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recordSchema
The schema used to validate records when the value converter requires one (for example, JSON_SCHEMA_GSR).
This is a convenience method that creates an instance of theRecordSchema.Builderavoiding the need to create one manually viaRecordSchema.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecordSchema(RecordSchema).- Parameters:
recordSchema- a consumer that will call methods onRecordSchema.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
topicArn
The Amazon Resource Name (ARN) that uniquely identifies the topic.
- Parameters:
topicArn-The Amazon Resource Name (ARN) that uniquely identifies the topic.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-