Class ImmutableIpInterface
- java.lang.Object
-
- org.opennms.integration.api.v1.model.immutables.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.IpInterfaceAn immutable implementation ofIpInterfacethat enforces deep immutability.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableIpInterface.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.net.InetAddressgetIpAddress()java.util.List<org.opennms.integration.api.v1.model.MetaData>getMetaData()java.util.Optional<org.opennms.integration.api.v1.model.MonitoredService>getMonitoredService(java.lang.String name)java.util.List<org.opennms.integration.api.v1.model.MonitoredService>getMonitoredServices()java.util.Optional<org.opennms.integration.api.v1.model.SnmpInterface>getSnmpInterface()inthashCode()static org.opennms.integration.api.v1.model.IpInterfaceimmutableCopy(org.opennms.integration.api.v1.model.IpInterface ipInterface)static ImmutableIpInterface.BuildernewBuilder()static ImmutableIpInterface.BuildernewBuilderFrom(org.opennms.integration.api.v1.model.IpInterface ipInterface)static ImmutableIpInterfacenewInstance(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)java.lang.StringtoString()
-
-
-
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)
-
newBuilder
public static ImmutableIpInterface.Builder newBuilder()
-
newBuilderFrom
public static ImmutableIpInterface.Builder newBuilderFrom(org.opennms.integration.api.v1.model.IpInterface ipInterface)
-
getIpAddress
public java.net.InetAddress getIpAddress()
- Specified by:
getIpAddressin interfaceorg.opennms.integration.api.v1.model.IpInterface
-
getSnmpInterface
public java.util.Optional<org.opennms.integration.api.v1.model.SnmpInterface> getSnmpInterface()
- Specified by:
getSnmpInterfacein interfaceorg.opennms.integration.api.v1.model.IpInterface
-
getMetaData
public java.util.List<org.opennms.integration.api.v1.model.MetaData> getMetaData()
- Specified by:
getMetaDatain interfaceorg.opennms.integration.api.v1.model.IpInterface
-
getMonitoredServices
public java.util.List<org.opennms.integration.api.v1.model.MonitoredService> getMonitoredServices()
- Specified by:
getMonitoredServicesin interfaceorg.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:
getMonitoredServicein interfaceorg.opennms.integration.api.v1.model.IpInterface
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-