Record Class OdysseyFlowRecords.ValidationResult

java.lang.Object
java.lang.Record
io.confluent.kafka.odyssey.OdysseyFlowRecords.ValidationResult
Enclosing class:
OdysseyFlowRecords

public static record OdysseyFlowRecords.ValidationResult(OdysseyFlowRecords.ClassifyResult classified, Set<String> passedValidation, Map<String, OdysseyResult> validationFailures) extends Record
  • Constructor Details

    • ValidationResult

      public ValidationResult(OdysseyFlowRecords.ClassifyResult classified, Set<String> passedValidation, Map<String, OdysseyResult> validationFailures)
      Creates an instance of a ValidationResult record class.
      Parameters:
      classified - the value for the classified record component
      passedValidation - the value for the passedValidation record component
      validationFailures - the value for the validationFailures record component
  • Method Details

    • request

    • classification

      public OdysseyFlowRecords.TopicClassification classification()
    • namespace

      public String namespace()
    • srClient

      public io.confluent.kafka.schemaregistry.client.SchemaRegistryClient srClient()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • classified

      public OdysseyFlowRecords.ClassifyResult classified()
      Returns the value of the classified record component.
      Returns:
      the value of the classified record component
    • passedValidation

      public Set<String> passedValidation()
      Returns the value of the passedValidation record component.
      Returns:
      the value of the passedValidation record component
    • validationFailures

      public Map<String, OdysseyResult> validationFailures()
      Returns the value of the validationFailures record component.
      Returns:
      the value of the validationFailures record component