Class ConnectionMonitorHttpConfiguration

java.lang.Object
com.microsoft.azure.management.network.ConnectionMonitorHttpConfiguration

public class ConnectionMonitorHttpConfiguration extends Object
Describes the HTTP configuration.
  • Constructor Details

    • ConnectionMonitorHttpConfiguration

      public ConnectionMonitorHttpConfiguration()
  • Method Details

    • port

      public Integer port()
      Get the port to connect to.
      Returns:
      the port value
    • withPort

      Set the port to connect to.
      Parameters:
      port - the port value to set
      Returns:
      the ConnectionMonitorHttpConfiguration object itself.
    • method

      public HTTPConfigurationMethod method()
      Get the HTTP method to use. Possible values include: 'Get', 'Post'.
      Returns:
      the method value
    • withMethod

      Set the HTTP method to use. Possible values include: 'Get', 'Post'.
      Parameters:
      method - the method value to set
      Returns:
      the ConnectionMonitorHttpConfiguration object itself.
    • path

      public String path()
      Get the path component of the URI. For instance, "/dir1/dir2".
      Returns:
      the path value
    • withPath

      Set the path component of the URI. For instance, "/dir1/dir2".
      Parameters:
      path - the path value to set
      Returns:
      the ConnectionMonitorHttpConfiguration object itself.
    • requestHeaders

      public List<HTTPHeader> requestHeaders()
      Get the HTTP headers to transmit with the request.
      Returns:
      the requestHeaders value
    • withRequestHeaders

      public ConnectionMonitorHttpConfiguration withRequestHeaders(List<HTTPHeader> requestHeaders)
      Set the HTTP headers to transmit with the request.
      Parameters:
      requestHeaders - the requestHeaders value to set
      Returns:
      the ConnectionMonitorHttpConfiguration object itself.
    • validStatusCodeRanges

      public List<String> validStatusCodeRanges()
      Get hTTP status codes to consider successful. For instance, "2xx,301-304,418".
      Returns:
      the validStatusCodeRanges value
    • withValidStatusCodeRanges

      public ConnectionMonitorHttpConfiguration withValidStatusCodeRanges(List<String> validStatusCodeRanges)
      Set hTTP status codes to consider successful. For instance, "2xx,301-304,418".
      Parameters:
      validStatusCodeRanges - the validStatusCodeRanges value to set
      Returns:
      the ConnectionMonitorHttpConfiguration object itself.
    • preferHTTPS

      public Boolean preferHTTPS()
      Get value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.
      Returns:
      the preferHTTPS value
    • withPreferHTTPS

      public ConnectionMonitorHttpConfiguration withPreferHTTPS(Boolean preferHTTPS)
      Set value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.
      Parameters:
      preferHTTPS - the preferHTTPS value to set
      Returns:
      the ConnectionMonitorHttpConfiguration object itself.