Class ImmutableAlarm

  • All Implemented Interfaces:
    org.opennms.integration.api.v1.model.Alarm

    public final class ImmutableAlarm
    extends java.lang.Object
    implements org.opennms.integration.api.v1.model.Alarm
    An immutable implementation of Alarm that enforces deep immutability.
    • Method Detail

      • newBuilderFrom

        public static ImmutableAlarm.Builder newBuilderFrom​(org.opennms.integration.api.v1.model.Alarm fromAlarm)
      • immutableCopy

        public static org.opennms.integration.api.v1.model.Alarm immutableCopy​(org.opennms.integration.api.v1.model.Alarm alarm)
      • getReductionKey

        public java.lang.String getReductionKey()
        Specified by:
        getReductionKey in interface org.opennms.integration.api.v1.model.Alarm
      • getId

        public java.lang.Integer getId()
        Specified by:
        getId in interface org.opennms.integration.api.v1.model.Alarm
      • getNode

        public org.opennms.integration.api.v1.model.Node getNode()
        Specified by:
        getNode in interface org.opennms.integration.api.v1.model.Alarm
      • getType

        public org.opennms.integration.api.v1.config.events.AlarmType getType()
        Specified by:
        getType in interface org.opennms.integration.api.v1.model.Alarm
      • getManagedObjectInstance

        public java.lang.String getManagedObjectInstance()
        Specified by:
        getManagedObjectInstance in interface org.opennms.integration.api.v1.model.Alarm
      • getManagedObjectType

        public java.lang.String getManagedObjectType()
        Specified by:
        getManagedObjectType in interface org.opennms.integration.api.v1.model.Alarm
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.String> getAttributes()
        Specified by:
        getAttributes in interface org.opennms.integration.api.v1.model.Alarm
      • getSeverity

        public org.opennms.integration.api.v1.model.Severity getSeverity()
        Specified by:
        getSeverity in interface org.opennms.integration.api.v1.model.Alarm
      • isSituation

        public boolean isSituation()
        Specified by:
        isSituation in interface org.opennms.integration.api.v1.model.Alarm
      • getRelatedAlarms

        public java.util.List<org.opennms.integration.api.v1.model.Alarm> getRelatedAlarms()
        Specified by:
        getRelatedAlarms in interface org.opennms.integration.api.v1.model.Alarm
      • getLogMessage

        public java.lang.String getLogMessage()
        Specified by:
        getLogMessage in interface org.opennms.integration.api.v1.model.Alarm
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface org.opennms.integration.api.v1.model.Alarm
      • getLastEventTime

        public java.util.Date getLastEventTime()
        Specified by:
        getLastEventTime in interface org.opennms.integration.api.v1.model.Alarm
      • getFirstEventTime

        public java.util.Date getFirstEventTime()
        Specified by:
        getFirstEventTime in interface org.opennms.integration.api.v1.model.Alarm
      • getLastEvent

        public org.opennms.integration.api.v1.model.DatabaseEvent getLastEvent()
        Specified by:
        getLastEvent in interface org.opennms.integration.api.v1.model.Alarm
      • isAcknowledged

        public boolean isAcknowledged()
        Specified by:
        isAcknowledged in interface org.opennms.integration.api.v1.model.Alarm
      • getTicketId

        public java.lang.String getTicketId()
        Specified by:
        getTicketId in interface org.opennms.integration.api.v1.model.Alarm
      • getTicketState

        public org.opennms.integration.api.v1.ticketing.Ticket.State getTicketState()
        Specified by:
        getTicketState in interface org.opennms.integration.api.v1.model.Alarm
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object