ConnectionMonitorHttpConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ConnectionMonitorHttpConfiguration
- com.
Implements
public final class ConnectionMonitorHttpConfiguration
implements JsonSerializable<ConnectionMonitorHttpConfiguration>
Describes the HTTP configuration.
Constructor Summary
| Constructor | Description |
|---|---|
| ConnectionMonitorHttpConfiguration() |
Creates an instance of Connection |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Connection |
fromJson(JsonReader jsonReader)
Reads an instance of Connection |
|
Http |
method()
Get the method property: The HTTP method to use. |
| String |
path()
Get the path property: The path component of the URI. |
| Integer |
port()
Get the port property: The port to connect to. |
| Boolean |
preferHttps()
Get the prefer |
|
List<Http |
requestHeaders()
Get the request |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| List<String> |
validStatusCodeRanges()
Get the valid |
|
Connection |
withMethod(HttpConfigurationMethod method)
Set the method property: The HTTP method to use. |
|
Connection |
withPath(String path)
Set the path property: The path component of the URI. |
|
Connection |
withPort(Integer port)
Set the port property: The port to connect to. |
|
Connection |
withPreferHttps(Boolean preferHttps)
Set the prefer |
|
Connection |
withRequestHeaders(List<HttpHeader> requestHeaders)
Set the request |
|
Connection |
withValidStatusCodeRanges(List<String> validStatusCodeRanges)
Set the valid |
Methods inherited from java.lang.Object
Constructor Details
ConnectionMonitorHttpConfiguration
public ConnectionMonitorHttpConfiguration()
Creates an instance of ConnectionMonitorHttpConfiguration class.
Method Details
fromJson
public static ConnectionMonitorHttpConfiguration fromJson(JsonReader jsonReader)
Reads an instance of ConnectionMonitorHttpConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
method
public HttpConfigurationMethod method()
Get the method property: The HTTP method to use.
Returns:
path
public String path()
Get the path property: The path component of the URI. For instance, "/dir1/dir2".
Returns:
port
public Integer port()
Get the port property: The port to connect to.
Returns:
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:
requestHeaders
public List<HttpHeader> requestHeaders()
Get the requestHeaders property: The HTTP headers to transmit with the request.
Returns:
toJson
validate
public void validate()
Validates the instance.
validStatusCodeRanges
public List<String> validStatusCodeRanges()
Get the validStatusCodeRanges property: HTTP status codes to consider successful. For instance, "2xx,301-304,418".
Returns:
withMethod
public ConnectionMonitorHttpConfiguration withMethod(HttpConfigurationMethod method)
Set the method property: The HTTP method to use.
Parameters:
Returns:
withPath
public ConnectionMonitorHttpConfiguration withPath(String path)
Set the path property: The path component of the URI. For instance, "/dir1/dir2".
Parameters:
Returns:
withPort
public ConnectionMonitorHttpConfiguration withPort(Integer port)
Set the port property: The port to connect to.
Parameters:
Returns:
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:
Returns:
withRequestHeaders
public ConnectionMonitorHttpConfiguration withRequestHeaders(List<HttpHeader> requestHeaders)
Set the requestHeaders property: The HTTP headers to transmit with the request.
Parameters:
Returns:
withValidStatusCodeRanges
public ConnectionMonitorHttpConfiguration withValidStatusCodeRanges(List<String> validStatusCodeRanges)
Set the validStatusCodeRanges property: HTTP status codes to consider successful. For instance, "2xx,301-304,418".
Parameters:
Returns: