Class ConnectionMonitorDestination


  • public final class ConnectionMonitorDestination
    extends Object
    Describes the destination of connection monitor.
    • Constructor Detail

      • ConnectionMonitorDestination

        public ConnectionMonitorDestination()
    • Method Detail

      • resourceId

        public String resourceId()
        Get the resourceId property: The ID of the resource used as the destination by connection monitor.
        Returns:
        the resourceId value.
      • withResourceId

        public ConnectionMonitorDestination withResourceId​(String resourceId)
        Set the resourceId property: The ID of the resource used as the destination by connection monitor.
        Parameters:
        resourceId - the resourceId value to set.
        Returns:
        the ConnectionMonitorDestination object itself.
      • address

        public String address()
        Get the address property: Address of the connection monitor destination (IP or domain name).
        Returns:
        the address value.
      • withAddress

        public ConnectionMonitorDestination withAddress​(String address)
        Set the address property: Address of the connection monitor destination (IP or domain name).
        Parameters:
        address - the address value to set.
        Returns:
        the ConnectionMonitorDestination object itself.
      • port

        public Integer port()
        Get the port property: The destination port used by connection monitor.
        Returns:
        the port value.
      • withPort

        public ConnectionMonitorDestination withPort​(Integer port)
        Set the port property: The destination port used by connection monitor.
        Parameters:
        port - the port value to set.
        Returns:
        the ConnectionMonitorDestination object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.