Class ImmutableNodeResource

  • All Implemented Interfaces:
    org.opennms.integration.api.v1.collectors.resource.NodeResource, org.opennms.integration.api.v1.collectors.resource.Resource

    public final class ImmutableNodeResource
    extends java.lang.Object
    implements org.opennms.integration.api.v1.collectors.resource.NodeResource
    An immutable implementation of NodeResource that enforces deep immutability.
    • Method Detail

      • newBuilderFrom

        public static ImmutableNodeResource.Builder newBuilderFrom​(org.opennms.integration.api.v1.collectors.resource.NodeResource nodeResource)
      • immutableCopy

        public static org.opennms.integration.api.v1.collectors.resource.NodeResource immutableCopy​(org.opennms.integration.api.v1.collectors.resource.NodeResource nodeResource)
      • getNodeId

        public java.lang.Integer getNodeId()
        Specified by:
        getNodeId in interface org.opennms.integration.api.v1.collectors.resource.NodeResource
      • getForeignSource

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

        public java.lang.String getForeignId()
        Specified by:
        getForeignId in interface org.opennms.integration.api.v1.collectors.resource.NodeResource
      • getNodeLabel

        public java.lang.String getNodeLabel()
        Specified by:
        getNodeLabel in interface org.opennms.integration.api.v1.collectors.resource.NodeResource
      • getLocation

        public java.lang.String getLocation()
        Specified by:
        getLocation in interface org.opennms.integration.api.v1.collectors.resource.NodeResource
      • getResourceType

        public org.opennms.integration.api.v1.collectors.resource.Resource.Type getResourceType()
        Specified by:
        getResourceType in interface org.opennms.integration.api.v1.collectors.resource.Resource
      • 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