public final class HttpConfiguration extends Object
| Constructor and Description |
|---|
HttpConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
List<HttpHeader> |
headers()
Get the headers property: List of HTTP headers.
|
HttpMethod |
method()
Get the method property: HTTP method.
|
void |
validate()
Validates the instance.
|
List<Integer> |
validStatusCodes()
Get the validStatusCodes property: Valid status codes.
|
HttpConfiguration |
withHeaders(List<HttpHeader> headers)
Set the headers property: List of HTTP headers.
|
HttpConfiguration |
withMethod(HttpMethod method)
Set the method property: HTTP method.
|
HttpConfiguration |
withValidStatusCodes(List<Integer> validStatusCodes)
Set the validStatusCodes property: Valid status codes.
|
public HttpMethod method()
public HttpConfiguration withMethod(HttpMethod method)
method - the method value to set.public List<HttpHeader> headers()
public HttpConfiguration withHeaders(List<HttpHeader> headers)
headers - the headers value to set.public List<Integer> validStatusCodes()
public HttpConfiguration withValidStatusCodes(List<Integer> validStatusCodes)
validStatusCodes - the validStatusCodes value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.