Class Stereo.Builder

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

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

      • getMake

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

        public Stereo.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 Stereo.Builder clearMake()
        Clears the value of the 'make' field.
        Returns:
        This builder.
      • getSpeakers

        public int getSpeakers()
        Gets the value of the 'speakers' field.
        Returns:
        The value.
      • setSpeakers

        public Stereo.Builder setSpeakers​(int value)
        Sets the value of the 'speakers' field.
        Parameters:
        value - The value of 'speakers'.
        Returns:
        This builder.
      • hasSpeakers

        public boolean hasSpeakers()
        Checks whether the 'speakers' field has been set.
        Returns:
        True if the 'speakers' field has been set, false otherwise.
      • clearSpeakers

        public Stereo.Builder clearSpeakers()
        Clears the value of the 'speakers' field.
        Returns:
        This builder.
      • build

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