Class ConnectivityCheckRequestProtocolConfigurationHttpConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.ConnectivityCheckRequestProtocolConfigurationHttpConfiguration
-
public final class ConnectivityCheckRequestProtocolConfigurationHttpConfiguration extends Object
Configuration for HTTP or HTTPS requests.
-
-
Constructor Summary
Constructors Constructor Description ConnectivityCheckRequestProtocolConfigurationHttpConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<HttpHeader>
headers()
Get the headers property: List of headers to be included in the request.Method
method()
Get the method property: The HTTP method to be used.void
validate()
Validates the instance.List<Long>
validStatusCodes()
Get the validStatusCodes property: List of HTTP status codes considered valid for the request response.ConnectivityCheckRequestProtocolConfigurationHttpConfiguration
withHeaders(List<HttpHeader> headers)
Set the headers property: List of headers to be included in the request.ConnectivityCheckRequestProtocolConfigurationHttpConfiguration
withMethod(Method method)
Set the method property: The HTTP method to be used.ConnectivityCheckRequestProtocolConfigurationHttpConfiguration
withValidStatusCodes(List<Long> validStatusCodes)
Set the validStatusCodes property: List of HTTP status codes considered valid for the request response.
-
-
-
Method Detail
-
method
public Method method()
Get the method property: The HTTP method to be used.- Returns:
- the method value.
-
withMethod
public ConnectivityCheckRequestProtocolConfigurationHttpConfiguration withMethod(Method method)
Set the method property: The HTTP method to be used.- Parameters:
method
- the method value to set.- Returns:
- the ConnectivityCheckRequestProtocolConfigurationHttpConfiguration object itself.
-
validStatusCodes
public List<Long> validStatusCodes()
Get the validStatusCodes property: List of HTTP status codes considered valid for the request response.- Returns:
- the validStatusCodes value.
-
withValidStatusCodes
public ConnectivityCheckRequestProtocolConfigurationHttpConfiguration withValidStatusCodes(List<Long> validStatusCodes)
Set the validStatusCodes property: List of HTTP status codes considered valid for the request response.- Parameters:
validStatusCodes
- the validStatusCodes value to set.- Returns:
- the ConnectivityCheckRequestProtocolConfigurationHttpConfiguration object itself.
-
headers
public List<HttpHeader> headers()
Get the headers property: List of headers to be included in the request.- Returns:
- the headers value.
-
withHeaders
public ConnectivityCheckRequestProtocolConfigurationHttpConfiguration withHeaders(List<HttpHeader> headers)
Set the headers property: List of headers to be included in the request.- Parameters:
headers
- the headers value to set.- Returns:
- the ConnectivityCheckRequestProtocolConfigurationHttpConfiguration object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-