Class Annotation.Builder

  • All Implemented Interfaces:
    org.apache.avro.data.RecordBuilder<Annotation>
    Enclosing class:
    Annotation

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

      • getKey

        public String getKey()
        Gets the value of the 'key' field.
        Returns:
        The value.
      • setKey

        public Annotation.Builder setKey​(String value)
        Sets the value of the 'key' field.
        Parameters:
        value - The value of 'key'.
        Returns:
        This builder.
      • hasKey

        public boolean hasKey()
        Checks whether the 'key' field has been set.
        Returns:
        True if the 'key' field has been set, false otherwise.
      • clearKey

        public Annotation.Builder clearKey()
        Clears the value of the 'key' field.
        Returns:
        This builder.
      • getValue

        public String getValue()
        Gets the value of the 'value' field.
        Returns:
        The value.
      • setValue

        public Annotation.Builder setValue​(String value)
        Sets the value of the 'value' field.
        Parameters:
        value - The value of 'value'.
        Returns:
        This builder.
      • hasValue

        public boolean hasValue()
        Checks whether the 'value' field has been set.
        Returns:
        True if the 'value' field has been set, false otherwise.
      • clearValue

        public Annotation.Builder clearValue()
        Clears the value of the 'value' field.
        Returns:
        This builder.
      • build

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