Class ShortCar.Builder

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

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

      • getMake

        public String getMake()
        Gets the value of the 'make' field.
        Returns:
        The value.
      • setMake

        public ShortCar.Builder setMake​(String value)
        Sets the value of the 'make' field.
        Parameters:
        value - The value of 'make'.
        Returns:
        This builder.
      • hasMake

        public boolean hasMake()
        Checks whether the 'make' field has been set.
        Returns:
        True if the 'make' field has been set, false otherwise.
      • clearMake

        public ShortCar.Builder clearMake()
        Clears the value of the 'make' field.
        Returns:
        This builder.
      • getEngine

        public Engine getEngine()
        Gets the value of the 'engine' field.
        Returns:
        The value.
      • setEngine

        public ShortCar.Builder setEngine​(Engine value)
        Sets the value of the 'engine' field.
        Parameters:
        value - The value of 'engine'.
        Returns:
        This builder.
      • hasEngine

        public boolean hasEngine()
        Checks whether the 'engine' field has been set.
        Returns:
        True if the 'engine' field has been set, false otherwise.
      • getEngineBuilder

        public Engine.Builder getEngineBuilder()
        Gets the Builder instance for the 'engine' field and creates one if it doesn't exist yet.
        Returns:
        This builder.
      • setEngineBuilder

        public ShortCar.Builder setEngineBuilder​(Engine.Builder value)
        Sets the Builder instance for the 'engine' field
        Parameters:
        value - The builder instance that must be set.
        Returns:
        This builder.
      • hasEngineBuilder

        public boolean hasEngineBuilder()
        Checks whether the 'engine' field has an active Builder instance
        Returns:
        True if the 'engine' field has an active Builder instance
      • clearEngine

        public ShortCar.Builder clearEngine()
        Clears the value of the 'engine' field.
        Returns:
        This builder.
      • getYear

        public long getYear()
        Gets the value of the 'year' field.
        Returns:
        The value.
      • setYear

        public ShortCar.Builder setYear​(long value)
        Sets the value of the 'year' field.
        Parameters:
        value - The value of 'year'.
        Returns:
        This builder.
      • hasYear

        public boolean hasYear()
        Checks whether the 'year' field has been set.
        Returns:
        True if the 'year' field has been set, false otherwise.
      • clearYear

        public ShortCar.Builder clearYear()
        Clears the value of the 'year' field.
        Returns:
        This builder.
      • getVin

        public Vin getVin()
        Gets the value of the 'vin' field.
        Returns:
        The value.
      • setVin

        public ShortCar.Builder setVin​(Vin value)
        Sets the value of the 'vin' field.
        Parameters:
        value - The value of 'vin'.
        Returns:
        This builder.
      • hasVin

        public boolean hasVin()
        Checks whether the 'vin' field has been set.
        Returns:
        True if the 'vin' field has been set, false otherwise.
      • clearVin

        public ShortCar.Builder clearVin()
        Clears the value of the 'vin' field.
        Returns:
        This builder.
      • build

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