@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 RestMonitorConfiguration.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
RestMonitorConfiguration.Builder |
MonitorConfiguration.ConfigType
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
RestMonitorConfiguration(Boolean isFailureRetried,
DnsConfiguration dnsConfiguration,
Boolean isRedirectionEnabled,
Boolean isCertificateValidationEnabled,
RequestMethods requestMethod,
RequestAuthenticationSchemes reqAuthenticationScheme,
RequestAuthenticationDetails reqAuthenticationDetails,
ClientCertificateDetails clientCertificateDetails,
List<Header> requestHeaders,
List<RequestQueryParam> requestQueryParams,
String requestPostBody,
String verifyResponseContent,
List<String> verifyResponseCodes,
NetworkConfiguration networkConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RestMonitorConfiguration.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
ClientCertificateDetails |
getClientCertificateDetails() |
Boolean |
getIsCertificateValidationEnabled()
If certificate validation is enabled, then call will fail for certificate errors.
|
Boolean |
getIsRedirectionEnabled()
If redirection is enabled, then redirects will be allowed while accessing target URL.
|
NetworkConfiguration |
getNetworkConfiguration() |
RequestAuthenticationDetails |
getReqAuthenticationDetails() |
RequestAuthenticationSchemes |
getReqAuthenticationScheme()
Request HTTP authentication scheme.
|
List<Header> |
getRequestHeaders()
List of request headers.
|
RequestMethods |
getRequestMethod()
Request HTTP method.
|
String |
getRequestPostBody()
Request post body content.
|
List<RequestQueryParam> |
getRequestQueryParams()
List of request query params.
|
List<String> |
getVerifyResponseCodes()
Expected HTTP response codes.
|
String |
getVerifyResponseContent()
Verify response content against regular expression based string.
|
int |
hashCode() |
RestMonitorConfiguration.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getDnsConfiguration, getIsFailureRetried
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public RestMonitorConfiguration(Boolean isFailureRetried, DnsConfiguration dnsConfiguration, Boolean isRedirectionEnabled, Boolean isCertificateValidationEnabled, RequestMethods requestMethod, RequestAuthenticationSchemes reqAuthenticationScheme, RequestAuthenticationDetails reqAuthenticationDetails, ClientCertificateDetails clientCertificateDetails, 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 is enabled, then redirects will be allowed while accessing target URL.
public Boolean getIsCertificateValidationEnabled()
If certificate validation is 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 ClientCertificateDetails getClientCertificateDetails()
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 String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class MonitorConfiguration
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class MonitorConfiguration
public int hashCode()
hashCode
in class MonitorConfiguration
Copyright © 2016–2024. All rights reserved.