ConnectionMonitorDestination Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ConnectionMonitorDestination
- com.
Implements
public final class ConnectionMonitorDestination
implements JsonSerializable<ConnectionMonitorDestination>
Describes the destination of connection monitor.
Constructor Summary
| Constructor | Description |
|---|---|
| ConnectionMonitorDestination() |
Creates an instance of Connection |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
address()
Get the address property: Address of the connection monitor destination (IP or domain name). |
|
static
Connection |
fromJson(JsonReader jsonReader)
Reads an instance of Connection |
| Integer |
port()
Get the port property: The destination port used by connection monitor. |
| String |
resourceId()
Get the resource |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Connection |
withAddress(String address)
Set the address property: Address of the connection monitor destination (IP or domain name). |
|
Connection |
withPort(Integer port)
Set the port property: The destination port used by connection monitor. |
|
Connection |
withResourceId(String resourceId)
Set the resource |
Methods inherited from java.lang.Object
Constructor Details
ConnectionMonitorDestination
public ConnectionMonitorDestination()
Creates an instance of ConnectionMonitorDestination class.
Method Details
address
public String address()
Get the address property: Address of the connection monitor destination (IP or domain name).
Returns:
fromJson
public static ConnectionMonitorDestination fromJson(JsonReader jsonReader)
Reads an instance of ConnectionMonitorDestination from the JsonReader.
Parameters:
Returns:
Throws:
port
public Integer port()
Get the port property: The destination port used by connection monitor.
Returns:
resourceId
public String resourceId()
Get the resourceId property: The ID of the resource used as the destination by connection monitor.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAddress
public ConnectionMonitorDestination withAddress(String address)
Set the address property: Address of the connection monitor destination (IP or domain name).
Parameters:
Returns:
withPort
public ConnectionMonitorDestination withPort(Integer port)
Set the port property: The destination port used by connection monitor.
Parameters:
Returns:
withResourceId
public ConnectionMonitorDestination withResourceId(String resourceId)
Set the resourceId property: The ID of the resource used as the destination by connection monitor.
Parameters:
Returns: