Class ConnectivitySource

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

public final class ConnectivitySource extends Object
Parameters that define the source of the connection.
  • Constructor Details

    • ConnectivitySource

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

    • resourceId

      public String resourceId()
      Get the resourceId property: The ID of the resource from which a connectivity check will be initiated.
      Returns:
      the resourceId value.
    • withResourceId

      public ConnectivitySource withResourceId(String resourceId)
      Set the resourceId property: The ID of the resource from which a connectivity check will be initiated.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the ConnectivitySource object itself.
    • port

      public Integer port()
      Get the port property: The source port from which a connectivity check will be performed.
      Returns:
      the port value.
    • withPort

      public ConnectivitySource withPort(Integer port)
      Set the port property: The source port from which a connectivity check will be performed.
      Parameters:
      port - the port value to set.
      Returns:
      the ConnectivitySource object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.