Class AvroMessageType.Builder

java.lang.Object
org.apache.avro.data.RecordBuilderBase<AvroMessageType>
org.apache.avro.specific.SpecificRecordBuilderBase<AvroMessageType>
ch.admin.bit.jeap.messaging.avro.AvroMessageType.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<AvroMessageType>
Enclosing class:
AvroMessageType

public static class AvroMessageType.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<AvroMessageType> implements org.apache.avro.data.RecordBuilder<AvroMessageType>
RecordBuilder for AvroMessageType instances.
  • Method Details

    • getName

      public String getName()
      Gets the value of the 'name' field.
      Returns:
      The value.
    • getOptionalName

      public Optional<String> getOptionalName()
      Gets the value of the 'name' field as an Optional
      Returns:
      The Optional<value>.
    • setName

      public AvroMessageType.Builder setName(String value)
      Sets the value of the 'name' field.
      Parameters:
      value - The value of 'name'.
      Returns:
      This builder.
    • hasName

      public boolean hasName()
      Checks whether the 'name' field has been set.
      Returns:
      True if the 'name' field has been set, false otherwise.
    • clearName

      public AvroMessageType.Builder clearName()
      Clears the value of the 'name' field.
      Returns:
      This builder.
    • getVersion

      public String getVersion()
      Gets the value of the 'version' field.
      Returns:
      The value.
    • getOptionalVersion

      public Optional<String> getOptionalVersion()
      Gets the value of the 'version' field as an Optional
      Returns:
      The Optional<value>.
    • setVersion

      public AvroMessageType.Builder setVersion(String value)
      Sets the value of the 'version' field.
      Parameters:
      value - The value of 'version'.
      Returns:
      This builder.
    • hasVersion

      public boolean hasVersion()
      Checks whether the 'version' field has been set.
      Returns:
      True if the 'version' field has been set, false otherwise.
    • clearVersion

      public AvroMessageType.Builder clearVersion()
      Clears the value of the 'version' field.
      Returns:
      This builder.
    • getVariant

      public String getVariant()
      Gets the value of the 'variant' field.
      Returns:
      The value.
    • getOptionalVariant

      public Optional<String> getOptionalVariant()
      Gets the value of the 'variant' field as an Optional
      Returns:
      The Optional<value>.
    • setVariant

      public AvroMessageType.Builder setVariant(String value)
      Sets the value of the 'variant' field.
      Parameters:
      value - The value of 'variant'.
      Returns:
      This builder.
    • hasVariant

      public boolean hasVariant()
      Checks whether the 'variant' field has been set.
      Returns:
      True if the 'variant' field has been set, false otherwise.
    • clearVariant

      public AvroMessageType.Builder clearVariant()
      Clears the value of the 'variant' field.
      Returns:
      This builder.
    • build

      public AvroMessageType build()
      Specified by:
      build in interface org.apache.avro.data.RecordBuilder<AvroMessageType>