Class ConnectionMonitorDestination
java.lang.Object
com.azure.resourcemanager.network.models.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).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.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.
-
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.
-