Class ConnectionMonitorSource

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

public final class ConnectionMonitorSource extends Object
Describes the source of connection monitor.
  • Constructor Details

    • ConnectionMonitorSource

      public ConnectionMonitorSource()
      Creates an instance of ConnectionMonitorSource class.
  • Method Details

    • 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.