Class HttpConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.network.models.HttpConfiguration
-
public final class HttpConfiguration extends Object
HTTP configuration of the connectivity check.
-
-
Constructor Summary
Constructors Constructor Description HttpConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<HttpHeader>headers()Get the headers property: List of HTTP headers.HttpMethodmethod()Get the method property: HTTP method.voidvalidate()Validates the instance.List<Integer>validStatusCodes()Get the validStatusCodes property: Valid status codes.HttpConfigurationwithHeaders(List<HttpHeader> headers)Set the headers property: List of HTTP headers.HttpConfigurationwithMethod(HttpMethod method)Set the method property: HTTP method.HttpConfigurationwithValidStatusCodes(List<Integer> validStatusCodes)Set the validStatusCodes property: Valid status codes.
-
-
-
Method Detail
-
method
public HttpMethod method()
Get the method property: HTTP method.- Returns:
- the method value.
-
withMethod
public HttpConfiguration withMethod(HttpMethod method)
Set the method property: HTTP method.- Parameters:
method- the method value to set.- Returns:
- the HttpConfiguration object itself.
-
headers
public List<HttpHeader> headers()
Get the headers property: List of HTTP headers.- Returns:
- the headers value.
-
withHeaders
public HttpConfiguration withHeaders(List<HttpHeader> headers)
Set the headers property: List of HTTP headers.- Parameters:
headers- the headers value to set.- Returns:
- the HttpConfiguration object itself.
-
validStatusCodes
public List<Integer> validStatusCodes()
Get the validStatusCodes property: Valid status codes.- Returns:
- the validStatusCodes value.
-
withValidStatusCodes
public HttpConfiguration withValidStatusCodes(List<Integer> validStatusCodes)
Set the validStatusCodes property: Valid status codes.- Parameters:
validStatusCodes- the validStatusCodes value to set.- Returns:
- the HttpConfiguration object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-