Record Class AssociationConfig
java.lang.Object
java.lang.Record
io.confluent.kafka.odyssey.AssociationConfig
public record AssociationConfig(AssociationType associationType, Optional<String> subject, Optional<String> lifecycle, Optional<String> schema, Optional<io.confluent.kafka.schemaregistry.client.rest.entities.Metadata> schemaMetadata, Optional<io.confluent.kafka.schemaregistry.client.rest.entities.RuleSet> schemaRuleSet, Optional<List<io.confluent.kafka.schemaregistry.client.rest.entities.SchemaReference>> schemaReferences, Optional<String> schemaType, Optional<List<io.confluent.kafka.schemaregistry.client.rest.entities.SchemaTags>> schemaTagsToAdd, Optional<List<io.confluent.kafka.schemaregistry.client.rest.entities.SchemaTags>> schemaTagsToRemove, Optional<Boolean> normalize)
extends Record
Configuration for a schema association (key or value).
Field groups:
- Shared: associationType, subject, lifecycle, schema*, normalize — read + write
- Write-only: schemaTagsToAdd, schemaTagsToRemove — delta ops sent to SR; always empty on the read path
normalize is tri-state: Optional.empty() means "unspecified" (use SR /
caller default), Optional.of(true|false) means explicit. "Unspecified" is semantically
distinct from false.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAssociationConfig(AssociationType associationType, Optional<String> subject, Optional<String> lifecycle, Optional<String> schema, Optional<io.confluent.kafka.schemaregistry.client.rest.entities.Metadata> schemaMetadata, Optional<io.confluent.kafka.schemaregistry.client.rest.entities.RuleSet> schemaRuleSet, Optional<List<io.confluent.kafka.schemaregistry.client.rest.entities.SchemaReference>> schemaReferences, Optional<String> schemaType, Optional<List<io.confluent.kafka.schemaregistry.client.rest.entities.SchemaTags>> schemaTagsToAdd, Optional<List<io.confluent.kafka.schemaregistry.client.rest.entities.SchemaTags>> schemaTagsToRemove, Optional<Boolean> normalize) Creates an instance of aAssociationConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassociationTyperecord component.static AssociationConfig.Builderbuilder(AssociationType associationType) Returns a builder withassociationTypeset; all other fields default to empty.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelifecyclerecord component.Returns the value of thenormalizerecord component.schema()Returns the value of theschemarecord component.Optional<io.confluent.kafka.schemaregistry.client.rest.entities.Metadata> Returns the value of theschemaMetadatarecord component.Returns the value of theschemaReferencesrecord component.Optional<io.confluent.kafka.schemaregistry.client.rest.entities.RuleSet> Returns the value of theschemaRuleSetrecord component.Returns the value of theschemaTagsToAddrecord component.Returns the value of theschemaTagsToRemoverecord component.Returns the value of theschemaTyperecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AssociationConfig
public AssociationConfig(AssociationType associationType, Optional<String> subject, Optional<String> lifecycle, Optional<String> schema, Optional<io.confluent.kafka.schemaregistry.client.rest.entities.Metadata> schemaMetadata, Optional<io.confluent.kafka.schemaregistry.client.rest.entities.RuleSet> schemaRuleSet, Optional<List<io.confluent.kafka.schemaregistry.client.rest.entities.SchemaReference>> schemaReferences, Optional<String> schemaType, Optional<List<io.confluent.kafka.schemaregistry.client.rest.entities.SchemaTags>> schemaTagsToAdd, Optional<List<io.confluent.kafka.schemaregistry.client.rest.entities.SchemaTags>> schemaTagsToRemove, Optional<Boolean> normalize) Creates an instance of aAssociationConfigrecord class.- Parameters:
associationType- the value for theassociationTyperecord componentsubject- the value for thesubjectrecord componentlifecycle- the value for thelifecyclerecord componentschema- the value for theschemarecord componentschemaMetadata- the value for theschemaMetadatarecord componentschemaRuleSet- the value for theschemaRuleSetrecord componentschemaReferences- the value for theschemaReferencesrecord componentschemaType- the value for theschemaTyperecord componentschemaTagsToAdd- the value for theschemaTagsToAddrecord componentschemaTagsToRemove- the value for theschemaTagsToRemoverecord componentnormalize- the value for thenormalizerecord component
-
-
Method Details
-
builder
Returns a builder withassociationTypeset; all other fields default to empty. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
associationType
Returns the value of theassociationTyperecord component.- Returns:
- the value of the
associationTyperecord component
-
subject
-
lifecycle
-
schema
-
schemaMetadata
Returns the value of theschemaMetadatarecord component.- Returns:
- the value of the
schemaMetadatarecord component
-
schemaRuleSet
Returns the value of theschemaRuleSetrecord component.- Returns:
- the value of the
schemaRuleSetrecord component
-
schemaReferences
-
schemaType
-
schemaTagsToAdd
-
schemaTagsToRemove
-
normalize
-