Class Alarm.Builder

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

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

      • getRegistration

        public AlarmRegistration getRegistration()
        Gets the value of the 'registration' field. The alarm registration
        Returns:
        The value.
      • setRegistration

        public Alarm.Builder setRegistration​(AlarmRegistration value)
        Sets the value of the 'registration' field. The alarm registration
        Parameters:
        value - The value of 'registration'.
        Returns:
        This builder.
      • hasRegistration

        public boolean hasRegistration()
        Checks whether the 'registration' field has been set. The alarm registration
        Returns:
        True if the 'registration' field has been set, false otherwise.
      • getRegistrationBuilder

        public AlarmRegistration.Builder getRegistrationBuilder()
        Gets the Builder instance for the 'registration' field and creates one if it doesn't exist yet. The alarm registration
        Returns:
        This builder.
      • setRegistrationBuilder

        public Alarm.Builder setRegistrationBuilder​(AlarmRegistration.Builder value)
        Sets the Builder instance for the 'registration' field The alarm registration
        Parameters:
        value - The builder instance that must be set.
        Returns:
        This builder.
      • hasRegistrationBuilder

        public boolean hasRegistrationBuilder()
        Checks whether the 'registration' field has an active Builder instance The alarm registration
        Returns:
        True if the 'registration' field has an active Builder instance
      • clearRegistration

        public Alarm.Builder clearRegistration()
        Clears the value of the 'registration' field. The alarm registration
        Returns:
        This builder.
      • getClass$

        public AlarmClass getClass$()
        Gets the value of the 'class$' field. The alarm class
        Returns:
        The value.
      • setClass$

        public Alarm.Builder setClass$​(AlarmClass value)
        Sets the value of the 'class$' field. The alarm class
        Parameters:
        value - The value of 'class$'.
        Returns:
        This builder.
      • hasClass$

        public boolean hasClass$()
        Checks whether the 'class$' field has been set. The alarm class
        Returns:
        True if the 'class$' field has been set, false otherwise.
      • getClass$Builder

        public AlarmClass.Builder getClass$Builder()
        Gets the Builder instance for the 'class$' field and creates one if it doesn't exist yet. The alarm class
        Returns:
        This builder.
      • setClass$Builder

        public Alarm.Builder setClass$Builder​(AlarmClass.Builder value)
        Sets the Builder instance for the 'class$' field The alarm class
        Parameters:
        value - The builder instance that must be set.
        Returns:
        This builder.
      • hasClass$Builder

        public boolean hasClass$Builder()
        Checks whether the 'class$' field has an active Builder instance The alarm class
        Returns:
        True if the 'class$' field has an active Builder instance
      • clearClass$

        public Alarm.Builder clearClass$()
        Clears the value of the 'class$' field. The alarm class
        Returns:
        This builder.
      • getEffectiveRegistration

        public AlarmRegistration getEffectiveRegistration()
        Gets the value of the 'effectiveRegistration' field. The effective alarm registration accounting for alarm class defaults
        Returns:
        The value.
      • setEffectiveRegistration

        public Alarm.Builder setEffectiveRegistration​(AlarmRegistration value)
        Sets the value of the 'effectiveRegistration' field. The effective alarm registration accounting for alarm class defaults
        Parameters:
        value - The value of 'effectiveRegistration'.
        Returns:
        This builder.
      • hasEffectiveRegistration

        public boolean hasEffectiveRegistration()
        Checks whether the 'effectiveRegistration' field has been set. The effective alarm registration accounting for alarm class defaults
        Returns:
        True if the 'effectiveRegistration' field has been set, false otherwise.
      • getEffectiveRegistrationBuilder

        public AlarmRegistration.Builder getEffectiveRegistrationBuilder()
        Gets the Builder instance for the 'effectiveRegistration' field and creates one if it doesn't exist yet. The effective alarm registration accounting for alarm class defaults
        Returns:
        This builder.
      • setEffectiveRegistrationBuilder

        public Alarm.Builder setEffectiveRegistrationBuilder​(AlarmRegistration.Builder value)
        Sets the Builder instance for the 'effectiveRegistration' field The effective alarm registration accounting for alarm class defaults
        Parameters:
        value - The builder instance that must be set.
        Returns:
        This builder.
      • hasEffectiveRegistrationBuilder

        public boolean hasEffectiveRegistrationBuilder()
        Checks whether the 'effectiveRegistration' field has an active Builder instance The effective alarm registration accounting for alarm class defaults
        Returns:
        True if the 'effectiveRegistration' field has an active Builder instance
      • clearEffectiveRegistration

        public Alarm.Builder clearEffectiveRegistration()
        Clears the value of the 'effectiveRegistration' field. The effective alarm registration accounting for alarm class defaults
        Returns:
        This builder.
      • getActivation

        public AlarmActivationUnion getActivation()
        Gets the value of the 'activation' field. The alarm activation
        Returns:
        The value.
      • setActivation

        public Alarm.Builder setActivation​(AlarmActivationUnion value)
        Sets the value of the 'activation' field. The alarm activation
        Parameters:
        value - The value of 'activation'.
        Returns:
        This builder.
      • hasActivation

        public boolean hasActivation()
        Checks whether the 'activation' field has been set. The alarm activation
        Returns:
        True if the 'activation' field has been set, false otherwise.
      • getActivationBuilder

        public AlarmActivationUnion.Builder getActivationBuilder()
        Gets the Builder instance for the 'activation' field and creates one if it doesn't exist yet. The alarm activation
        Returns:
        This builder.
      • setActivationBuilder

        public Alarm.Builder setActivationBuilder​(AlarmActivationUnion.Builder value)
        Sets the Builder instance for the 'activation' field The alarm activation
        Parameters:
        value - The builder instance that must be set.
        Returns:
        This builder.
      • hasActivationBuilder

        public boolean hasActivationBuilder()
        Checks whether the 'activation' field has an active Builder instance The alarm activation
        Returns:
        True if the 'activation' field has an active Builder instance
      • clearActivation

        public Alarm.Builder clearActivation()
        Clears the value of the 'activation' field. The alarm activation
        Returns:
        This builder.
      • getOverrides

        public AlarmOverrideSet getOverrides()
        Gets the value of the 'overrides' field. The alarm overrides
        Returns:
        The value.
      • setOverrides

        public Alarm.Builder setOverrides​(AlarmOverrideSet value)
        Sets the value of the 'overrides' field. The alarm overrides
        Parameters:
        value - The value of 'overrides'.
        Returns:
        This builder.
      • hasOverrides

        public boolean hasOverrides()
        Checks whether the 'overrides' field has been set. The alarm overrides
        Returns:
        True if the 'overrides' field has been set, false otherwise.
      • getOverridesBuilder

        public AlarmOverrideSet.Builder getOverridesBuilder()
        Gets the Builder instance for the 'overrides' field and creates one if it doesn't exist yet. The alarm overrides
        Returns:
        This builder.
      • setOverridesBuilder

        public Alarm.Builder setOverridesBuilder​(AlarmOverrideSet.Builder value)
        Sets the Builder instance for the 'overrides' field The alarm overrides
        Parameters:
        value - The builder instance that must be set.
        Returns:
        This builder.
      • hasOverridesBuilder

        public boolean hasOverridesBuilder()
        Checks whether the 'overrides' field has an active Builder instance The alarm overrides
        Returns:
        True if the 'overrides' field has an active Builder instance
      • clearOverrides

        public Alarm.Builder clearOverrides()
        Clears the value of the 'overrides' field. The alarm overrides
        Returns:
        This builder.
      • getTransitions

        public ProcessorTransitions getTransitions()
        Gets the value of the 'transitions' field. override transition states used by alarm processor
        Returns:
        The value.
      • setTransitions

        public Alarm.Builder setTransitions​(ProcessorTransitions value)
        Sets the value of the 'transitions' field. override transition states used by alarm processor
        Parameters:
        value - The value of 'transitions'.
        Returns:
        This builder.
      • hasTransitions

        public boolean hasTransitions()
        Checks whether the 'transitions' field has been set. override transition states used by alarm processor
        Returns:
        True if the 'transitions' field has been set, false otherwise.
      • getTransitionsBuilder

        public ProcessorTransitions.Builder getTransitionsBuilder()
        Gets the Builder instance for the 'transitions' field and creates one if it doesn't exist yet. override transition states used by alarm processor
        Returns:
        This builder.
      • setTransitionsBuilder

        public Alarm.Builder setTransitionsBuilder​(ProcessorTransitions.Builder value)
        Sets the Builder instance for the 'transitions' field override transition states used by alarm processor
        Parameters:
        value - The builder instance that must be set.
        Returns:
        This builder.
      • hasTransitionsBuilder

        public boolean hasTransitionsBuilder()
        Checks whether the 'transitions' field has an active Builder instance override transition states used by alarm processor
        Returns:
        True if the 'transitions' field has an active Builder instance
      • clearTransitions

        public Alarm.Builder clearTransitions()
        Clears the value of the 'transitions' field. override transition states used by alarm processor
        Returns:
        This builder.
      • getState

        public AlarmState getState()
        Gets the value of the 'state' field. The computed effective state given active and override state
        Returns:
        The value.
      • setState

        public Alarm.Builder setState​(AlarmState value)
        Sets the value of the 'state' field. The computed effective state given active and override state
        Parameters:
        value - The value of 'state'.
        Returns:
        This builder.
      • hasState

        public boolean hasState()
        Checks whether the 'state' field has been set. The computed effective state given active and override state
        Returns:
        True if the 'state' field has been set, false otherwise.
      • clearState

        public Alarm.Builder clearState()
        Clears the value of the 'state' field. The computed effective state given active and override state
        Returns:
        This builder.
      • build

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