Class Recipient.Builder

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

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

      • getOnlyAdmins

        public boolean getOnlyAdmins()
        Gets the value of the 'only_admins' field.
        Returns:
        The value.
      • setOnlyAdmins

        public Recipient.Builder setOnlyAdmins​(boolean value)
        Sets the value of the 'only_admins' field.
        Parameters:
        value - The value of 'only_admins'.
        Returns:
        This builder.
      • hasOnlyAdmins

        public boolean hasOnlyAdmins()
        Checks whether the 'only_admins' field has been set.
        Returns:
        True if the 'only_admins' field has been set, false otherwise.
      • clearOnlyAdmins

        public Recipient.Builder clearOnlyAdmins()
        Clears the value of the 'only_admins' field.
        Returns:
        This builder.
      • getIgnoreUserPreferences

        public boolean getIgnoreUserPreferences()
        Gets the value of the 'ignore_user_preferences' field.
        Returns:
        The value.
      • setIgnoreUserPreferences

        public Recipient.Builder setIgnoreUserPreferences​(boolean value)
        Sets the value of the 'ignore_user_preferences' field.
        Parameters:
        value - The value of 'ignore_user_preferences'.
        Returns:
        This builder.
      • hasIgnoreUserPreferences

        public boolean hasIgnoreUserPreferences()
        Checks whether the 'ignore_user_preferences' field has been set.
        Returns:
        True if the 'ignore_user_preferences' field has been set, false otherwise.
      • clearIgnoreUserPreferences

        public Recipient.Builder clearIgnoreUserPreferences()
        Clears the value of the 'ignore_user_preferences' field.
        Returns:
        This builder.
      • build

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