Class ConnectionMonitorDestination

java.lang.Object
com.azure.resourcemanager.network.models.ConnectionMonitorDestination
All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionMonitorDestination>

public final class ConnectionMonitorDestination extends Object implements com.azure.json.JsonSerializable<ConnectionMonitorDestination>
Describes the destination of connection monitor.
  • Constructor Details

    • ConnectionMonitorDestination

      public ConnectionMonitorDestination()
      Creates an instance of ConnectionMonitorDestination class.
  • Method Details

    • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ConnectionMonitorDestination>
      Throws:
      IOException
    • fromJson

      public static ConnectionMonitorDestination fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ConnectionMonitorDestination from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ConnectionMonitorDestination if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ConnectionMonitorDestination.