Class ImmutableNode

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

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

      • newBuilderFrom

        public static ImmutableNode.Builder newBuilderFrom​(org.opennms.integration.api.v1.model.Node node)
      • immutableCopy

        public static org.opennms.integration.api.v1.model.Node immutableCopy​(org.opennms.integration.api.v1.model.Node node)
      • getId

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

        public java.lang.String getForeignSource()
        Specified by:
        getForeignSource in interface org.opennms.integration.api.v1.model.Node
      • getForeignId

        public java.lang.String getForeignId()
        Specified by:
        getForeignId in interface org.opennms.integration.api.v1.model.Node
      • getLabel

        public java.lang.String getLabel()
        Specified by:
        getLabel in interface org.opennms.integration.api.v1.model.Node
      • getLocation

        public java.lang.String getLocation()
        Specified by:
        getLocation in interface org.opennms.integration.api.v1.model.Node
      • getAssetRecord

        public org.opennms.integration.api.v1.model.NodeAssetRecord getAssetRecord()
        Specified by:
        getAssetRecord in interface org.opennms.integration.api.v1.model.Node
      • getIpInterfaces

        public java.util.List<org.opennms.integration.api.v1.model.IpInterface> getIpInterfaces()
        Specified by:
        getIpInterfaces in interface org.opennms.integration.api.v1.model.Node
      • getInterfaceByIp

        public java.util.Optional<org.opennms.integration.api.v1.model.IpInterface> getInterfaceByIp​(java.net.InetAddress ipAddr)
        Specified by:
        getInterfaceByIp in interface org.opennms.integration.api.v1.model.Node
      • getSnmpInterfaces

        public java.util.List<org.opennms.integration.api.v1.model.SnmpInterface> getSnmpInterfaces()
        Specified by:
        getSnmpInterfaces in interface org.opennms.integration.api.v1.model.Node
      • getMetaData

        public java.util.List<org.opennms.integration.api.v1.model.MetaData> getMetaData()
        Specified by:
        getMetaData in interface org.opennms.integration.api.v1.model.Node
      • getCategories

        public java.util.List<java.lang.String> getCategories()
        Specified by:
        getCategories in interface org.opennms.integration.api.v1.model.Node
      • 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