Class Service.Builder

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

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

      • getDate

        public long getDate()
        Gets the value of the 'date' field.
        Returns:
        The value.
      • setDate

        public Service.Builder setDate​(long value)
        Sets the value of the 'date' field.
        Parameters:
        value - The value of 'date'.
        Returns:
        This builder.
      • hasDate

        public boolean hasDate()
        Checks whether the 'date' field has been set.
        Returns:
        True if the 'date' field has been set, false otherwise.
      • clearDate

        public Service.Builder clearDate()
        Clears the value of the 'date' field.
        Returns:
        This builder.
      • getMechanic

        public String getMechanic()
        Gets the value of the 'mechanic' field.
        Returns:
        The value.
      • setMechanic

        public Service.Builder setMechanic​(String value)
        Sets the value of the 'mechanic' field.
        Parameters:
        value - The value of 'mechanic'.
        Returns:
        This builder.
      • hasMechanic

        public boolean hasMechanic()
        Checks whether the 'mechanic' field has been set.
        Returns:
        True if the 'mechanic' field has been set, false otherwise.
      • clearMechanic

        public Service.Builder clearMechanic()
        Clears the value of the 'mechanic' field.
        Returns:
        This builder.
      • build

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