Class ConnectionMonitorDestination
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ConnectionMonitorDestination
-
public final class ConnectionMonitorDestination extends Object
Describes the destination of connection monitor.
-
-
Constructor Summary
Constructors Constructor Description ConnectionMonitorDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaddress()Get the address property: Address of the connection monitor destination (IP or domain name).Integerport()Get the port property: The destination port used by connection monitor.StringresourceId()Get the resourceId property: The ID of the resource used as the destination by connection monitor.voidvalidate()Validates the instance.ConnectionMonitorDestinationwithAddress(String address)Set the address property: Address of the connection monitor destination (IP or domain name).ConnectionMonitorDestinationwithPort(Integer port)Set the port property: The destination port used by connection monitor.ConnectionMonitorDestinationwithResourceId(String resourceId)Set the resourceId property: The ID of the resource used as the destination by connection monitor.
-
-
-
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.
-
-