@Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public final class RestMonitorConfiguration extends MonitorConfiguration
Request configuration details for the REST monitor type.
Note: Objects should always be created or deserialized using the RestMonitorConfiguration.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the RestMonitorConfiguration.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
RestMonitorConfiguration.Builder |
MonitorConfiguration.ConfigType
Constructor and Description |
---|
RestMonitorConfiguration(Boolean isFailureRetried,
Boolean isRedirectionEnabled,
Boolean isCertificateValidationEnabled,
RequestMethods requestMethod,
RequestAuthenticationSchemes reqAuthenticationScheme,
RequestAuthenticationDetails reqAuthenticationDetails,
List<Header> requestHeaders,
List<RequestQueryParam> requestQueryParams,
String requestPostBody,
String verifyResponseContent,
List<String> verifyResponseCodes,
NetworkConfiguration networkConfiguration)
Deprecated.
|
getIsFailureRetried
@Deprecated public RestMonitorConfiguration(Boolean isFailureRetried, Boolean isRedirectionEnabled, Boolean isCertificateValidationEnabled, RequestMethods requestMethod, RequestAuthenticationSchemes reqAuthenticationScheme, RequestAuthenticationDetails reqAuthenticationDetails, List<Header> requestHeaders, List<RequestQueryParam> requestQueryParams, String requestPostBody, String verifyResponseContent, List<String> verifyResponseCodes, NetworkConfiguration networkConfiguration)
public static RestMonitorConfiguration.Builder builder()
Create a new builder.
public RestMonitorConfiguration.Builder toBuilder()
public Boolean getIsRedirectionEnabled()
If redirection enabled, then redirects will be allowed while accessing target URL.
public Boolean getIsCertificateValidationEnabled()
If certificate validation enabled, then call will fail for certificate errors.
public RequestMethods getRequestMethod()
Request HTTP method.
public RequestAuthenticationSchemes getReqAuthenticationScheme()
Request http authentication scheme.
public RequestAuthenticationDetails getReqAuthenticationDetails()
public List<Header> getRequestHeaders()
List of request headers. Example: [{"headerName": "content-type", "headerValue":"json"}]
public List<RequestQueryParam> getRequestQueryParams()
List of request query params. Example: [{"paramName": "sortOrder", "paramValue": "asc"}]
public String getRequestPostBody()
Request post body content.
public String getVerifyResponseContent()
Verify response content against regular expression based string. If response content does not match the verifyResponseContent value, then it will be considered a failure.
public List<String> getVerifyResponseCodes()
Expected HTTP response codes. For status code range, set values such as 2xx, 3xx.
public NetworkConfiguration getNetworkConfiguration()
public String toString()
toString
in class MonitorConfiguration
public boolean equals(Object o)
equals
in class MonitorConfiguration
protected boolean canEqual(Object other)
canEqual
in class MonitorConfiguration
public int hashCode()
hashCode
in class MonitorConfiguration
Copyright © 2016–2022. All rights reserved.