Class ConnectionMonitorHttpConfiguration
java.lang.Object
com.microsoft.azure.management.network.ConnectionMonitorHttpConfiguration
Describes the HTTP configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmethod()
Get the HTTP method to use.path()
Get the path component of the URI.port()
Get the port to connect to.Get value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.Get the HTTP headers to transmit with the request.Get hTTP status codes to consider successful.withMethod
(HTTPConfigurationMethod method) Set the HTTP method to use.Set the path component of the URI.Set the port to connect to.withPreferHTTPS
(Boolean preferHTTPS) Set value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.withRequestHeaders
(List<HTTPHeader> requestHeaders) Set the HTTP headers to transmit with the request.withValidStatusCodeRanges
(List<String> validStatusCodeRanges) Set hTTP status codes to consider successful.
-
Constructor Details
-
ConnectionMonitorHttpConfiguration
public ConnectionMonitorHttpConfiguration()
-
-
Method Details
-
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
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
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
Get the HTTP headers to transmit with the request.- Returns:
- the requestHeaders value
-
withRequestHeaders
Set the HTTP headers to transmit with the request.- Parameters:
requestHeaders
- the requestHeaders value to set- Returns:
- the ConnectionMonitorHttpConfiguration object itself.
-
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
Get value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.- Returns:
- the preferHTTPS value
-
withPreferHTTPS
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.
-