ConnectionMonitorHttpConfiguration Class

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

public class ConnectionMonitorHttpConfiguration

Describes the HTTP configuration.

Constructor Summary

Constructor Description
ConnectionMonitorHttpConfiguration()

Method Summary

Modifier and Type Method and Description
HTTPConfigurationMethod method()

Get the HTTP method to use.

java.lang.String path()

Get the path component of the URI.

java.lang.Integer port()

Get the port to connect to.

java.lang.Boolean preferHTTPS()

Get value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.

java.util.List<HTTPHeader> requestHeaders()

Get the HTTP headers to transmit with the request.

java.util.List<java.lang.String> validStatusCodeRanges()

Get hTTP status codes to consider successful.

ConnectionMonitorHttpConfiguration withMethod(HTTPConfigurationMethod method)

Set the HTTP method to use.

ConnectionMonitorHttpConfiguration withPath(String path)

Set the path component of the URI.

ConnectionMonitorHttpConfiguration withPort(Integer port)

Set the port to connect to.

ConnectionMonitorHttpConfiguration withPreferHTTPS(Boolean preferHTTPS)

Set value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.

ConnectionMonitorHttpConfiguration withRequestHeaders(List<HTTPHeader> requestHeaders)

Set the HTTP headers to transmit with the request.

ConnectionMonitorHttpConfiguration withValidStatusCodeRanges(List<String> validStatusCodeRanges)

Set hTTP status codes to consider successful.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ConnectionMonitorHttpConfiguration

public ConnectionMonitorHttpConfiguration()

Method Details

method

public HTTPConfigurationMethod method()

Get the HTTP method to use. Possible values include: 'Get', 'Post'.

Returns:

the method value

path

public String path()

Get the path component of the URI. For instance, "/dir1/dir2".

Returns:

the path value

port

public Integer port()

Get the port to connect to.

Returns:

the port value

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

requestHeaders

public List requestHeaders()

Get the HTTP headers to transmit with the request.

Returns:

the requestHeaders value

validStatusCodeRanges

public List validStatusCodeRanges()

Get hTTP status codes to consider successful. For instance, "2xx,301-304,418".

Returns:

the validStatusCodeRanges value

withMethod

public ConnectionMonitorHttpConfiguration withMethod(HTTPConfigurationMethod method)

Set the HTTP method to use. Possible values include: 'Get', 'Post'.

Parameters:

method - the method value to set

Returns:

the ConnectionMonitorHttpConfiguration object itself.

withPath

public ConnectionMonitorHttpConfiguration withPath(String path)

Set the path component of the URI. For instance, "/dir1/dir2".

Parameters:

path - the path value to set

Returns:

the ConnectionMonitorHttpConfiguration object itself.

withPort

public ConnectionMonitorHttpConfiguration withPort(Integer port)

Set the port to connect to.

Parameters:

port - the port value to set

Returns:

the ConnectionMonitorHttpConfiguration object itself.

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.

withRequestHeaders

public ConnectionMonitorHttpConfiguration withRequestHeaders(List requestHeaders)

Set the HTTP headers to transmit with the request.

Parameters:

requestHeaders - the requestHeaders value to set

Returns:

the ConnectionMonitorHttpConfiguration object itself.

withValidStatusCodeRanges

public ConnectionMonitorHttpConfiguration withValidStatusCodeRanges(List 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.

Applies to