Class ConnectionMonitorHttpConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ConnectionMonitorHttpConfiguration
-
public final class ConnectionMonitorHttpConfiguration extends Object
Describes the HTTP configuration.
-
-
Constructor Summary
Constructors Constructor Description ConnectionMonitorHttpConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpConfigurationMethodmethod()Get the method property: The HTTP method to use.Stringpath()Get the path property: The path component of the URI.Integerport()Get the port property: The port to connect to.BooleanpreferHttps()Get the preferHttps property: Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.List<HttpHeader>requestHeaders()Get the requestHeaders property: The HTTP headers to transmit with the request.voidvalidate()Validates the instance.List<String>validStatusCodeRanges()Get the validStatusCodeRanges property: HTTP status codes to consider successful.ConnectionMonitorHttpConfigurationwithMethod(HttpConfigurationMethod method)Set the method property: The HTTP method to use.ConnectionMonitorHttpConfigurationwithPath(String path)Set the path property: The path component of the URI.ConnectionMonitorHttpConfigurationwithPort(Integer port)Set the port property: The port to connect to.ConnectionMonitorHttpConfigurationwithPreferHttps(Boolean preferHttps)Set the preferHttps property: Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.ConnectionMonitorHttpConfigurationwithRequestHeaders(List<HttpHeader> requestHeaders)Set the requestHeaders property: The HTTP headers to transmit with the request.ConnectionMonitorHttpConfigurationwithValidStatusCodeRanges(List<String> validStatusCodeRanges)Set the validStatusCodeRanges property: HTTP status codes to consider successful.
-
-
-
Method Detail
-
port
public Integer port()
Get the port property: The port to connect to.- Returns:
- the port value.
-
withPort
public ConnectionMonitorHttpConfiguration withPort(Integer port)
Set the port property: The port to connect to.- Parameters:
port- the port value to set.- Returns:
- the ConnectionMonitorHttpConfiguration object itself.
-
method
public HttpConfigurationMethod method()
Get the method property: The HTTP method to use.- Returns:
- the method value.
-
withMethod
public ConnectionMonitorHttpConfiguration withMethod(HttpConfigurationMethod method)
Set the method property: The HTTP method to use.- Parameters:
method- the method value to set.- Returns:
- the ConnectionMonitorHttpConfiguration object itself.
-
path
public String path()
Get the path property: The path component of the URI. For instance, "/dir1/dir2".- Returns:
- the path value.
-
withPath
public ConnectionMonitorHttpConfiguration withPath(String path)
Set the path property: 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 requestHeaders property: The HTTP headers to transmit with the request.- Returns:
- the requestHeaders value.
-
withRequestHeaders
public ConnectionMonitorHttpConfiguration withRequestHeaders(List<HttpHeader> requestHeaders)
Set the requestHeaders property: 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 the validStatusCodeRanges property: HTTP status codes to consider successful. For instance, "2xx,301-304,418".- Returns:
- the validStatusCodeRanges value.
-
withValidStatusCodeRanges
public ConnectionMonitorHttpConfiguration withValidStatusCodeRanges(List<String> validStatusCodeRanges)
Set the validStatusCodeRanges property: 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 the preferHttps property: 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 the preferHttps property: 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-