Record Class AssociationConfig
java.lang.Object
java.lang.Record
io.confluent.kafka.odyssey.AssociationConfig
public record AssociationConfig(String associationType, String subject, 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, Boolean normalize)
extends Record
Configuration for a schema association (key or value).
-
Constructor Summary
ConstructorsConstructorDescriptionAssociationConfig(String associationType, String subject, 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, Boolean normalize) Creates an instance of aAssociationConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassociationTyperecord component.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 theschemaTyperecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AssociationConfig
public AssociationConfig(String associationType, String subject, 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, 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 componentnormalize- the value for thenormalizerecord component
-
-
Method Details
-
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
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
lifecycle
Returns the value of thelifecyclerecord component.- Returns:
- the value of the
lifecyclerecord component
-
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
-
normalize
Returns the value of thenormalizerecord component.- Returns:
- the value of the
normalizerecord component
-