ConnectionMonitorSource Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ConnectionMonitorSource
- com.
Implements
public final class ConnectionMonitorSource
implements JsonSerializable<ConnectionMonitorSource>
Describes the source of connection monitor.
Constructor Summary
Constructor | Description |
---|---|
ConnectionMonitorSource() |
Creates an instance of Connection |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Connection |
fromJson(JsonReader jsonReader)
Reads an instance of Connection |
Integer |
port()
Get the port property: The source port used by connection monitor. |
String |
resourceId()
Get the resource |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Connection |
withPort(Integer port)
Set the port property: The source port used by connection monitor. |
Connection |
withResourceId(String resourceId)
Set the resource |
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:
Returns:
Throws:
port
public Integer port()
Get the port property: The source port used by connection monitor.
Returns:
resourceId
public String resourceId()
Get the resourceId property: The ID of the resource used as the source by connection monitor.
Returns:
toJson
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:
Returns:
withResourceId
public ConnectionMonitorSource withResourceId(String resourceId)
Set the resourceId property: The ID of the resource used as the source by connection monitor.
Parameters:
Returns:
Applies to
Azure SDK for Java