ConnectionMonitorSource Class

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

Implements

public final class ConnectionMonitorSource
implements JsonSerializable<ConnectionMonitorSource>

Describes the source of connection monitor.

Constructor Summary

Constructor Description
ConnectionMonitorSource()

Creates an instance of ConnectionMonitorSource class.

Method Summary

Modifier and Type Method and Description
static ConnectionMonitorSource fromJson(JsonReader jsonReader)

Reads an instance of ConnectionMonitorSource from the JsonReader.

Integer port()

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

String resourceId()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectionMonitorSource withPort(Integer port)

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

ConnectionMonitorSource withResourceId(String resourceId)

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

Methods inherited from java.lang.Object

Constructor Details

ConnectionMonitorSource

public ConnectionMonitorSource()

Creates an instance of ConnectionMonitorSource class.

Method Details

fromJson

public static ConnectionMonitorSource fromJson(JsonReader jsonReader)

Reads an instance of ConnectionMonitorSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConnectionMonitorSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

port

public Integer port()

Get the port property: The source 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 source by connection monitor.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPort

public ConnectionMonitorSource withPort(Integer port)

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

Parameters:

port - the port value to set.

Returns:

the ConnectionMonitorSource object itself.

withResourceId

public ConnectionMonitorSource withResourceId(String resourceId)

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

Parameters:

resourceId - the resourceId value to set.

Returns:

the ConnectionMonitorSource object itself.

Applies to