Class Address.Builder

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

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

      • getNum

        public int getNum()
        Gets the value of the 'num' field.
        Returns:
        The value.
      • setNum

        public Address.Builder setNum​(int value)
        Sets the value of the 'num' field.
        Parameters:
        value - The value of 'num'.
        Returns:
        This builder.
      • hasNum

        public boolean hasNum()
        Checks whether the 'num' field has been set.
        Returns:
        True if the 'num' field has been set, false otherwise.
      • clearNum

        public Address.Builder clearNum()
        Clears the value of the 'num' field.
        Returns:
        This builder.
      • getStreet

        public String getStreet()
        Gets the value of the 'street' field.
        Returns:
        The value.
      • setStreet

        public Address.Builder setStreet​(String value)
        Sets the value of the 'street' field.
        Parameters:
        value - The value of 'street'.
        Returns:
        This builder.
      • hasStreet

        public boolean hasStreet()
        Checks whether the 'street' field has been set.
        Returns:
        True if the 'street' field has been set, false otherwise.
      • clearStreet

        public Address.Builder clearStreet()
        Clears the value of the 'street' field.
        Returns:
        This builder.
      • getCity

        public String getCity()
        Gets the value of the 'city' field.
        Returns:
        The value.
      • setCity

        public Address.Builder setCity​(String value)
        Sets the value of the 'city' field.
        Parameters:
        value - The value of 'city'.
        Returns:
        This builder.
      • hasCity

        public boolean hasCity()
        Checks whether the 'city' field has been set.
        Returns:
        True if the 'city' field has been set, false otherwise.
      • clearCity

        public Address.Builder clearCity()
        Clears the value of the 'city' field.
        Returns:
        This builder.
      • getState

        public String getState()
        Gets the value of the 'state' field.
        Returns:
        The value.
      • setState

        public Address.Builder setState​(String value)
        Sets the value of the 'state' field.
        Parameters:
        value - The value of 'state'.
        Returns:
        This builder.
      • hasState

        public boolean hasState()
        Checks whether the 'state' field has been set.
        Returns:
        True if the 'state' field has been set, false otherwise.
      • clearState

        public Address.Builder clearState()
        Clears the value of the 'state' field.
        Returns:
        This builder.
      • getZip

        public String getZip()
        Gets the value of the 'zip' field.
        Returns:
        The value.
      • setZip

        public Address.Builder setZip​(String value)
        Sets the value of the 'zip' field.
        Parameters:
        value - The value of 'zip'.
        Returns:
        This builder.
      • hasZip

        public boolean hasZip()
        Checks whether the 'zip' field has been set.
        Returns:
        True if the 'zip' field has been set, false otherwise.
      • clearZip

        public Address.Builder clearZip()
        Clears the value of the 'zip' field.
        Returns:
        This builder.
      • getAppno

        public String getAppno()
        Gets the value of the 'appno' field.
        Returns:
        The value.
      • setAppno

        public Address.Builder setAppno​(String value)
        Sets the value of the 'appno' field.
        Parameters:
        value - The value of 'appno'.
        Returns:
        This builder.
      • hasAppno

        public boolean hasAppno()
        Checks whether the 'appno' field has been set.
        Returns:
        True if the 'appno' field has been set, false otherwise.
      • clearAppno

        public Address.Builder clearAppno()
        Clears the value of the 'appno' field.
        Returns:
        This builder.
      • build

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