Class ConnectionMonitorSource
java.lang.Object
com.azure.resourcemanager.network.models.ConnectionMonitorSource
Describes the source of connection monitor.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionMonitorSource class. -
Method Summary
Modifier and TypeMethodDescriptionport()Get the port property: The source port used by connection monitor.Get the resourceId property: The ID of the resource used as the source by connection monitor.voidvalidate()Validates the instance.Set the port property: The source port used by connection monitor.withResourceId(String resourceId) Set the resourceId property: The ID of the resource used as the source by connection monitor.
-
Constructor Details
-
ConnectionMonitorSource
public ConnectionMonitorSource()Creates an instance of ConnectionMonitorSource class.
-
-
Method Details
-
resourceId
Get the resourceId property: The ID of the resource used as the source by connection monitor.- Returns:
- the resourceId value.
-
withResourceId
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.
-
port
Get the port property: The source port used by connection monitor.- Returns:
- the port value.
-
withPort
Set the port property: The source port used by connection monitor.- Parameters:
port- the port value to set.- Returns:
- the ConnectionMonitorSource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-