Class AlarmClass.Builder

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

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

      • getLocation

        public AlarmLocation getLocation()
        Gets the value of the 'location' field. The alarm location
        Returns:
        The value.
      • setLocation

        public AlarmClass.Builder setLocation​(AlarmLocation value)
        Sets the value of the 'location' field. The alarm location
        Parameters:
        value - The value of 'location'.
        Returns:
        This builder.
      • hasLocation

        public boolean hasLocation()
        Checks whether the 'location' field has been set. The alarm location
        Returns:
        True if the 'location' field has been set, false otherwise.
      • clearLocation

        public AlarmClass.Builder clearLocation()
        Clears the value of the 'location' field. The alarm location
        Returns:
        This builder.
      • getCategory

        public AlarmCategory getCategory()
        Gets the value of the 'category' field. The alarm category
        Returns:
        The value.
      • setCategory

        public AlarmClass.Builder setCategory​(AlarmCategory value)
        Sets the value of the 'category' field. The alarm category
        Parameters:
        value - The value of 'category'.
        Returns:
        This builder.
      • hasCategory

        public boolean hasCategory()
        Checks whether the 'category' field has been set. The alarm category
        Returns:
        True if the 'category' field has been set, false otherwise.
      • clearCategory

        public AlarmClass.Builder clearCategory()
        Clears the value of the 'category' field. The alarm category
        Returns:
        This builder.
      • getPriority

        public AlarmPriority getPriority()
        Gets the value of the 'priority' field. The alarm priority
        Returns:
        The value.
      • setPriority

        public AlarmClass.Builder setPriority​(AlarmPriority value)
        Sets the value of the 'priority' field. The alarm priority
        Parameters:
        value - The value of 'priority'.
        Returns:
        This builder.
      • hasPriority

        public boolean hasPriority()
        Checks whether the 'priority' field has been set. The alarm priority
        Returns:
        True if the 'priority' field has been set, false otherwise.
      • clearPriority

        public AlarmClass.Builder clearPriority()
        Clears the value of the 'priority' field. The alarm priority
        Returns:
        This builder.
      • getRationale

        public String getRationale()
        Gets the value of the 'rationale' field. Markdown formatted text describing the reason this alarm is necessary
        Returns:
        The value.
      • setRationale

        public AlarmClass.Builder setRationale​(String value)
        Sets the value of the 'rationale' field. Markdown formatted text describing the reason this alarm is necessary
        Parameters:
        value - The value of 'rationale'.
        Returns:
        This builder.
      • hasRationale

        public boolean hasRationale()
        Checks whether the 'rationale' field has been set. Markdown formatted text describing the reason this alarm is necessary
        Returns:
        True if the 'rationale' field has been set, false otherwise.
      • clearRationale

        public AlarmClass.Builder clearRationale()
        Clears the value of the 'rationale' field. Markdown formatted text describing the reason this alarm is necessary
        Returns:
        This builder.
      • getCorrectiveaction

        public String getCorrectiveaction()
        Gets the value of the 'correctiveaction' field. Markdown formatted text describing the corrective action to take when the alarm becomes active
        Returns:
        The value.
      • setCorrectiveaction

        public AlarmClass.Builder setCorrectiveaction​(String value)
        Sets the value of the 'correctiveaction' field. Markdown formatted text describing the corrective action to take when the alarm becomes active
        Parameters:
        value - The value of 'correctiveaction'.
        Returns:
        This builder.
      • hasCorrectiveaction

        public boolean hasCorrectiveaction()
        Checks whether the 'correctiveaction' field has been set. Markdown formatted text describing the corrective action to take when the alarm becomes active
        Returns:
        True if the 'correctiveaction' field has been set, false otherwise.
      • clearCorrectiveaction

        public AlarmClass.Builder clearCorrectiveaction()
        Clears the value of the 'correctiveaction' field. Markdown formatted text describing the corrective action to take when the alarm becomes active
        Returns:
        This builder.
      • getPointofcontactusername

        public String getPointofcontactusername()
        Gets the value of the 'pointofcontactusername' field. Username (identifier) of point of contact. Full contact info should be obtained from user database (LDAP for example)
        Returns:
        The value.
      • setPointofcontactusername

        public AlarmClass.Builder setPointofcontactusername​(String value)
        Sets the value of the 'pointofcontactusername' field. Username (identifier) of point of contact. Full contact info should be obtained from user database (LDAP for example)
        Parameters:
        value - The value of 'pointofcontactusername'.
        Returns:
        This builder.
      • hasPointofcontactusername

        public boolean hasPointofcontactusername()
        Checks whether the 'pointofcontactusername' field has been set. Username (identifier) of point of contact. Full contact info should be obtained from user database (LDAP for example)
        Returns:
        True if the 'pointofcontactusername' field has been set, false otherwise.
      • clearPointofcontactusername

        public AlarmClass.Builder clearPointofcontactusername()
        Clears the value of the 'pointofcontactusername' field. Username (identifier) of point of contact. Full contact info should be obtained from user database (LDAP for example)
        Returns:
        This builder.
      • getLatching

        public boolean getLatching()
        Gets the value of the 'latching' field. Indicates whether this alarm latches when activated and can only be cleared after an explicit acknowledgement
        Returns:
        The value.
      • setLatching

        public AlarmClass.Builder setLatching​(boolean value)
        Sets the value of the 'latching' field. Indicates whether this alarm latches when activated and can only be cleared after an explicit acknowledgement
        Parameters:
        value - The value of 'latching'.
        Returns:
        This builder.
      • hasLatching

        public boolean hasLatching()
        Checks whether the 'latching' field has been set. Indicates whether this alarm latches when activated and can only be cleared after an explicit acknowledgement
        Returns:
        True if the 'latching' field has been set, false otherwise.
      • clearLatching

        public AlarmClass.Builder clearLatching()
        Clears the value of the 'latching' field. Indicates whether this alarm latches when activated and can only be cleared after an explicit acknowledgement
        Returns:
        This builder.
      • getFilterable

        public boolean getFilterable()
        Gets the value of the 'filterable' field. Indicates whether this alarm can be filtered out of view (typically done when a portion of the machine is turned off). Some alarms must always be monitored, regardless of program.
        Returns:
        The value.
      • setFilterable

        public AlarmClass.Builder setFilterable​(boolean value)
        Sets the value of the 'filterable' field. Indicates whether this alarm can be filtered out of view (typically done when a portion of the machine is turned off). Some alarms must always be monitored, regardless of program.
        Parameters:
        value - The value of 'filterable'.
        Returns:
        This builder.
      • hasFilterable

        public boolean hasFilterable()
        Checks whether the 'filterable' field has been set. Indicates whether this alarm can be filtered out of view (typically done when a portion of the machine is turned off). Some alarms must always be monitored, regardless of program.
        Returns:
        True if the 'filterable' field has been set, false otherwise.
      • clearFilterable

        public AlarmClass.Builder clearFilterable()
        Clears the value of the 'filterable' field. Indicates whether this alarm can be filtered out of view (typically done when a portion of the machine is turned off). Some alarms must always be monitored, regardless of program.
        Returns:
        This builder.
      • getOndelayseconds

        public Long getOndelayseconds()
        Gets the value of the 'ondelayseconds' field. The number of seconds of on-delay
        Returns:
        The value.
      • setOndelayseconds

        public AlarmClass.Builder setOndelayseconds​(Long value)
        Sets the value of the 'ondelayseconds' field. The number of seconds of on-delay
        Parameters:
        value - The value of 'ondelayseconds'.
        Returns:
        This builder.
      • hasOndelayseconds

        public boolean hasOndelayseconds()
        Checks whether the 'ondelayseconds' field has been set. The number of seconds of on-delay
        Returns:
        True if the 'ondelayseconds' field has been set, false otherwise.
      • clearOndelayseconds

        public AlarmClass.Builder clearOndelayseconds()
        Clears the value of the 'ondelayseconds' field. The number of seconds of on-delay
        Returns:
        This builder.
      • getOffdelayseconds

        public Long getOffdelayseconds()
        Gets the value of the 'offdelayseconds' field. The number of seconds of off-delay
        Returns:
        The value.
      • setOffdelayseconds

        public AlarmClass.Builder setOffdelayseconds​(Long value)
        Sets the value of the 'offdelayseconds' field. The number of seconds of off-delay
        Parameters:
        value - The value of 'offdelayseconds'.
        Returns:
        This builder.
      • hasOffdelayseconds

        public boolean hasOffdelayseconds()
        Checks whether the 'offdelayseconds' field has been set. The number of seconds of off-delay
        Returns:
        True if the 'offdelayseconds' field has been set, false otherwise.
      • clearOffdelayseconds

        public AlarmClass.Builder clearOffdelayseconds()
        Clears the value of the 'offdelayseconds' field. The number of seconds of off-delay
        Returns:
        This builder.
      • getMaskedby

        public String getMaskedby()
        Gets the value of the 'maskedby' field. The name of the parent alarm, which if active, masks this alarm (flood suppression via logical hierarchy)
        Returns:
        The value.
      • setMaskedby

        public AlarmClass.Builder setMaskedby​(String value)
        Sets the value of the 'maskedby' field. The name of the parent alarm, which if active, masks this alarm (flood suppression via logical hierarchy)
        Parameters:
        value - The value of 'maskedby'.
        Returns:
        This builder.
      • hasMaskedby

        public boolean hasMaskedby()
        Checks whether the 'maskedby' field has been set. The name of the parent alarm, which if active, masks this alarm (flood suppression via logical hierarchy)
        Returns:
        True if the 'maskedby' field has been set, false otherwise.
      • clearMaskedby

        public AlarmClass.Builder clearMaskedby()
        Clears the value of the 'maskedby' field. The name of the parent alarm, which if active, masks this alarm (flood suppression via logical hierarchy)
        Returns:
        This builder.
      • getScreenpath

        public String getScreenpath()
        Gets the value of the 'screenpath' field. The path the alarm screen display
        Returns:
        The value.
      • setScreenpath

        public AlarmClass.Builder setScreenpath​(String value)
        Sets the value of the 'screenpath' field. The path the alarm screen display
        Parameters:
        value - The value of 'screenpath'.
        Returns:
        This builder.
      • hasScreenpath

        public boolean hasScreenpath()
        Checks whether the 'screenpath' field has been set. The path the alarm screen display
        Returns:
        True if the 'screenpath' field has been set, false otherwise.
      • clearScreenpath

        public AlarmClass.Builder clearScreenpath()
        Clears the value of the 'screenpath' field. The path the alarm screen display
        Returns:
        This builder.
      • build

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