Class ImmutableIpInterface

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

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

      • newInstance

        public static ImmutableIpInterface newInstance​(java.net.InetAddress ipAddress,
                                                       org.opennms.integration.api.v1.model.SnmpInterface snmpInterface,
                                                       java.util.List<org.opennms.integration.api.v1.model.MetaData> metaData,
                                                       java.util.List<org.opennms.integration.api.v1.model.MonitoredService> monitoredServices)
      • immutableCopy

        public static org.opennms.integration.api.v1.model.IpInterface immutableCopy​(org.opennms.integration.api.v1.model.IpInterface ipInterface)
      • newBuilderFrom

        public static ImmutableIpInterface.Builder newBuilderFrom​(org.opennms.integration.api.v1.model.IpInterface ipInterface)
      • getIpAddress

        public java.net.InetAddress getIpAddress()
        Specified by:
        getIpAddress in interface org.opennms.integration.api.v1.model.IpInterface
      • getSnmpInterface

        public java.util.Optional<org.opennms.integration.api.v1.model.SnmpInterface> getSnmpInterface()
        Specified by:
        getSnmpInterface in interface org.opennms.integration.api.v1.model.IpInterface
      • getMetaData

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

        public java.util.List<org.opennms.integration.api.v1.model.MonitoredService> getMonitoredServices()
        Specified by:
        getMonitoredServices in interface org.opennms.integration.api.v1.model.IpInterface
      • getMonitoredService

        public java.util.Optional<org.opennms.integration.api.v1.model.MonitoredService> getMonitoredService​(java.lang.String name)
        Specified by:
        getMonitoredService in interface org.opennms.integration.api.v1.model.IpInterface
      • 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