HttpConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. HttpConfiguration
- com.
Implements
public final class HttpConfiguration
implements JsonSerializable<HttpConfiguration>
HTTP configuration of the connectivity check.
Constructor Summary
| Constructor | Description |
|---|---|
| HttpConfiguration() |
Creates an instance of Http |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Http |
fromJson(JsonReader jsonReader)
Reads an instance of Http |
|
List<Http |
headers()
Get the headers property: List of HTTP headers. |
|
Http |
method()
Get the method property: HTTP method. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| List<Integer> |
validStatusCodes()
Get the valid |
|
Http |
withHeaders(List<HttpHeader> headers)
Set the headers property: List of HTTP headers. |
|
Http |
withMethod(HttpMethod method)
Set the method property: HTTP method. |
|
Http |
withValidStatusCodes(List<Integer> validStatusCodes)
Set the valid |
Methods inherited from java.lang.Object
Constructor Details
HttpConfiguration
public HttpConfiguration()
Creates an instance of HttpConfiguration class.
Method Details
fromJson
public static HttpConfiguration fromJson(JsonReader jsonReader)
Reads an instance of HttpConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
headers
public List<HttpHeader> headers()
Get the headers property: List of HTTP headers.
Returns:
method
public HttpMethod method()
Get the method property: HTTP method.
Returns:
toJson
validate
public void validate()
Validates the instance.
validStatusCodes
public List<Integer> validStatusCodes()
Get the validStatusCodes property: Valid status codes.
Returns:
withHeaders
public HttpConfiguration withHeaders(List<HttpHeader> headers)
Set the headers property: List of HTTP headers.
Parameters:
Returns:
withMethod
public HttpConfiguration withMethod(HttpMethod method)
Set the method property: HTTP method.
Parameters:
Returns:
withValidStatusCodes
public HttpConfiguration withValidStatusCodes(List<Integer> validStatusCodes)
Set the validStatusCodes property: Valid status codes.
Parameters:
Returns: