Class Engine.Builder

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

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

      • getType

        public EngineType getType()
        Gets the value of the 'type' field.
        Returns:
        The value.
      • setType

        public Engine.Builder setType​(EngineType value)
        Sets the value of the 'type' field.
        Parameters:
        value - The value of 'type'.
        Returns:
        This builder.
      • hasType

        public boolean hasType()
        Checks whether the 'type' field has been set.
        Returns:
        True if the 'type' field has been set, false otherwise.
      • clearType

        public Engine.Builder clearType()
        Clears the value of the 'type' field.
        Returns:
        This builder.
      • getCapacity

        public float getCapacity()
        Gets the value of the 'capacity' field.
        Returns:
        The value.
      • setCapacity

        public Engine.Builder setCapacity​(float value)
        Sets the value of the 'capacity' field.
        Parameters:
        value - The value of 'capacity'.
        Returns:
        This builder.
      • hasCapacity

        public boolean hasCapacity()
        Checks whether the 'capacity' field has been set.
        Returns:
        True if the 'capacity' field has been set, false otherwise.
      • clearCapacity

        public Engine.Builder clearCapacity()
        Clears the value of the 'capacity' field.
        Returns:
        This builder.
      • getHasTurboCharger

        public boolean getHasTurboCharger()
        Gets the value of the 'hasTurboCharger' field.
        Returns:
        The value.
      • setHasTurboCharger

        public Engine.Builder setHasTurboCharger​(boolean value)
        Sets the value of the 'hasTurboCharger' field.
        Parameters:
        value - The value of 'hasTurboCharger'.
        Returns:
        This builder.
      • hasHasTurboCharger

        public boolean hasHasTurboCharger()
        Checks whether the 'hasTurboCharger' field has been set.
        Returns:
        True if the 'hasTurboCharger' field has been set, false otherwise.
      • clearHasTurboCharger

        public Engine.Builder clearHasTurboCharger()
        Clears the value of the 'hasTurboCharger' field.
        Returns:
        This builder.
      • build

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