Class HttpConfiguration
java.lang.Object
com.azure.resourcemanager.network.models.HttpConfiguration
HTTP configuration of the connectivity check.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionheaders()Get the headers property: List of HTTP headers.method()Get the method property: HTTP method.voidvalidate()Validates the instance.Get the validStatusCodes property: Valid status codes.withHeaders(List<HttpHeader> headers) Set the headers property: List of HTTP headers.withMethod(HttpMethod method) Set the method property: HTTP method.withValidStatusCodes(List<Integer> validStatusCodes) Set the validStatusCodes property: Valid status codes.
-
Constructor Details
-
HttpConfiguration
public HttpConfiguration()Creates an instance of HttpConfiguration class.
-
-
Method Details
-
method
Get the method property: HTTP method.- Returns:
- the method value.
-
withMethod
Set the method property: HTTP method.- Parameters:
method- the method value to set.- Returns:
- the HttpConfiguration object itself.
-
headers
Get the headers property: List of HTTP headers.- Returns:
- the headers value.
-
withHeaders
Set the headers property: List of HTTP headers.- Parameters:
headers- the headers value to set.- Returns:
- the HttpConfiguration object itself.
-
validStatusCodes
Get the validStatusCodes property: Valid status codes.- Returns:
- the validStatusCodes value.
-
withValidStatusCodes
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.
-