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 Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionMonitorDestination class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Get the address property: Address of the connection monitor destination (IP or domain name).static ConnectionMonitorDestinationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionMonitorDestination from the JsonReader.port()Get the port property: The destination port used by connection monitor.Get the resourceId property: The ID of the resource used as the destination by connection monitor.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddress(String address) Set the address property: Address of the connection monitor destination (IP or domain name).Set the port property: The destination port used by connection monitor.withResourceId(String resourceId) Set the resourceId property: The ID of the resource used as the destination by connection monitor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ConnectionMonitorDestination
public ConnectionMonitorDestination()Creates an instance of ConnectionMonitorDestination class.
-
-
Method Details
-
resourceId
Get the resourceId property: The ID of the resource used as the destination by connection monitor.- Returns:
- the resourceId value.
-
withResourceId
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
Get the address property: Address of the connection monitor destination (IP or domain name).- Returns:
- the address value.
-
withAddress
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
Get the port property: The destination port used by connection monitor.- Returns:
- the port value.
-
withPort
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
- Specified by:
toJsonin interfacecom.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.
-