public static class RestMonitorConfiguration.Builder extends Object
Constructor and Description |
---|
Builder() |
public RestMonitorConfiguration.Builder isFailureRetried(Boolean isFailureRetried)
public RestMonitorConfiguration.Builder dnsConfiguration(DnsConfiguration dnsConfiguration)
public RestMonitorConfiguration.Builder isRedirectionEnabled(Boolean isRedirectionEnabled)
If redirection is enabled, then redirects will be allowed while accessing target URL.
isRedirectionEnabled
- the value to setpublic RestMonitorConfiguration.Builder isCertificateValidationEnabled(Boolean isCertificateValidationEnabled)
If certificate validation is enabled, then call will fail for certificate errors.
isCertificateValidationEnabled
- the value to setpublic RestMonitorConfiguration.Builder requestMethod(RequestMethods requestMethod)
Request HTTP method.
requestMethod
- the value to setpublic RestMonitorConfiguration.Builder reqAuthenticationScheme(RequestAuthenticationSchemes reqAuthenticationScheme)
Request HTTP authentication scheme.
reqAuthenticationScheme
- the value to setpublic RestMonitorConfiguration.Builder reqAuthenticationDetails(RequestAuthenticationDetails reqAuthenticationDetails)
public RestMonitorConfiguration.Builder clientCertificateDetails(ClientCertificateDetails clientCertificateDetails)
public RestMonitorConfiguration.Builder requestHeaders(List<Header> requestHeaders)
List of request headers. Example: [{"headerName": "content-type",
"headerValue":"json"}]
requestHeaders
- the value to setpublic RestMonitorConfiguration.Builder requestQueryParams(List<RequestQueryParam> requestQueryParams)
List of request query params. Example: [{"paramName": "sortOrder", "paramValue":
"asc"}]
requestQueryParams
- the value to setpublic RestMonitorConfiguration.Builder requestPostBody(String requestPostBody)
Request post body content.
requestPostBody
- the value to setpublic RestMonitorConfiguration.Builder verifyResponseContent(String verifyResponseContent)
Verify response content against regular expression based string. If response content does not match the verifyResponseContent value, then it will be considered a failure.
verifyResponseContent
- the value to setpublic RestMonitorConfiguration.Builder verifyResponseCodes(List<String> verifyResponseCodes)
Expected HTTP response codes. For status code range, set values such as 2xx, 3xx.
verifyResponseCodes
- the value to setpublic RestMonitorConfiguration.Builder networkConfiguration(NetworkConfiguration networkConfiguration)
public RestMonitorConfiguration build()
public RestMonitorConfiguration.Builder copy(RestMonitorConfiguration model)
Copyright © 2016–2024. All rights reserved.