Package example.avro

Class Email.Builder

java.lang.Object
org.apache.avro.data.RecordBuilderBase<T>
org.apache.avro.specific.SpecificRecordBuilderBase<Email>
example.avro.Email.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<Email>
Enclosing class:
Email

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

    • getAddressTo

      public CharSequence getAddressTo()
      Gets the value of the 'addressTo' field.
      Returns:
      The value.
    • setAddressTo

      public Email.Builder setAddressTo(CharSequence value)
      Sets the value of the 'addressTo' field.
      Parameters:
      value - The value of 'addressTo'.
      Returns:
      This builder.
    • hasAddressTo

      public boolean hasAddressTo()
      Checks whether the 'addressTo' field has been set.
      Returns:
      True if the 'addressTo' field has been set, false otherwise.
    • clearAddressTo

      public Email.Builder clearAddressTo()
      Clears the value of the 'addressTo' field.
      Returns:
      This builder.
    • getTitle

      public CharSequence getTitle()
      Gets the value of the 'title' field.
      Returns:
      The value.
    • setTitle

      public Email.Builder setTitle(CharSequence value)
      Sets the value of the 'title' field.
      Parameters:
      value - The value of 'title'.
      Returns:
      This builder.
    • hasTitle

      public boolean hasTitle()
      Checks whether the 'title' field has been set.
      Returns:
      True if the 'title' field has been set, false otherwise.
    • clearTitle

      public Email.Builder clearTitle()
      Clears the value of the 'title' field.
      Returns:
      This builder.
    • getText

      public CharSequence getText()
      Gets the value of the 'text' field.
      Returns:
      The value.
    • setText

      public Email.Builder setText(CharSequence value)
      Sets the value of the 'text' field.
      Parameters:
      value - The value of 'text'.
      Returns:
      This builder.
    • hasText

      public boolean hasText()
      Checks whether the 'text' field has been set.
      Returns:
      True if the 'text' field has been set, false otherwise.
    • clearText

      public Email.Builder clearText()
      Clears the value of the 'text' field.
      Returns:
      This builder.
    • build

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