ConnectionMonitorDestination Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ConnectionMonitorDestination

Implements

public final class ConnectionMonitorDestination
implements JsonSerializable<ConnectionMonitorDestination>

Describes the destination of connection monitor.

Constructor Summary

Constructor Description
ConnectionMonitorDestination()

Creates an instance of ConnectionMonitorDestination class.

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 ConnectionMonitorDestination fromJson(JsonReader jsonReader)

Reads an instance of ConnectionMonitorDestination from the JsonReader.

Integer port()

Get the port property: The destination port used by connection monitor.

String resourceId()

Get the resourceId property: The ID of the resource used as the destination by connection monitor.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectionMonitorDestination withAddress(String address)

Set the address property: Address of the connection monitor destination (IP or domain name).

ConnectionMonitorDestination withPort(Integer port)

Set the port property: The destination port used by connection monitor.

ConnectionMonitorDestination withResourceId(String resourceId)

Set the resourceId property: The ID of the resource used as the destination by connection monitor.

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:

the address value.

fromJson

public static ConnectionMonitorDestination fromJson(JsonReader jsonReader)

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.

port

public Integer port()

Get the port property: The destination port used by connection monitor.

Returns:

the port value.

resourceId

public String resourceId()

Get the resourceId property: The ID of the resource used as the destination by connection monitor.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

address - the address value to set.

Returns:

the ConnectionMonitorDestination object itself.

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.

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.

Applies to