Class ConnectionMonitorSource
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ConnectionMonitorSource
-
public final class ConnectionMonitorSource extends Object
Describes the source of connection monitor.
-
-
Constructor Summary
Constructors Constructor Description ConnectionMonitorSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerport()Get the port property: The source port used by connection monitor.StringresourceId()Get the resourceId property: The ID of the resource used as the source by connection monitor.voidvalidate()Validates the instance.ConnectionMonitorSourcewithPort(Integer port)Set the port property: The source port used by connection monitor.ConnectionMonitorSourcewithResourceId(String resourceId)Set the resourceId property: The ID of the resource used as the source by connection monitor.
-
-
-
Method Detail
-
resourceId
public String resourceId()
Get the resourceId property: The ID of the resource used as the source by connection monitor.- Returns:
- the resourceId value.
-
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.
-
port
public Integer port()
Get the port property: The source port used by connection monitor.- Returns:
- the port value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-