Enum AvroRecordType

java.lang.Object
java.lang.Enum<AvroRecordType>
com.amazonaws.services.schemaregistry.utils.AvroRecordType
All Implemented Interfaces:
Serializable, Comparable<AvroRecordType>, java.lang.constant.Constable

public enum AvroRecordType extends Enum<AvroRecordType>
Defines a set of supported Data Formats
  • Enum Constant Details

    • UNKNOWN

      public static final AvroRecordType UNKNOWN
      Unknown.
    • SPECIFIC_RECORD

      public static final AvroRecordType SPECIFIC_RECORD
      Specific record type.
    • GENERIC_RECORD

      public static final AvroRecordType GENERIC_RECORD
      Generic record type.
  • Method Details

    • values

      public static AvroRecordType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AvroRecordType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Returns the name for this Data Format.
      Returns:
      Returns the name for this Data Format.
    • getValue

      public int getValue()
      Returns the value for this Data Format.
      Returns:
      Returns the value for this Data Format.
    • fromName

      public static AvroRecordType fromName(String name)
      Returns data format associated with the given name.
      Parameters:
      name - Name of the data format.
      Returns:
      Returns data format associated with the given name.