Package com.oracle.bmc.waas.model
Class HealthCheck.Builder
- java.lang.Object
- 
- com.oracle.bmc.waas.model.HealthCheck.Builder
 
- 
- Enclosing class:
- HealthCheck
 
 public static class HealthCheck.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthCheckbuild()HealthCheck.Buildercopy(HealthCheck model)HealthCheck.BuilderexpectedResponseCodeGroup(List<HealthCheck.ExpectedResponseCodeGroup> expectedResponseCodeGroup)The HTTP response codes that signify a healthy state.HealthCheck.BuilderexpectedResponseText(String expectedResponseText)Health check will search for the given text in a case-sensitive manner within the response body and will fail if the text is not found.HealthCheck.Builderheaders(Map<String,String> headers)HTTP header fields to include in health check requests, expressed as “name”: “value” properties.HealthCheck.BuilderhealthyThreshold(Integer healthyThreshold)Number of successful health checks after which the server is marked up.HealthCheck.BuilderintervalInSeconds(Integer intervalInSeconds)Time between health checks of an individual origin server, in seconds.HealthCheck.BuilderisEnabled(Boolean isEnabled)Enables or disables the health checks.HealthCheck.BuilderisResponseTextCheckEnabled(Boolean isResponseTextCheckEnabled)Enables or disables additional check for predefined text in addition to response code.HealthCheck.Buildermethod(HealthCheck.Method method)An HTTP verb (i.e.HealthCheck.Builderpath(String path)Path to visit on your origins when performing the health check.HealthCheck.BuildertimeoutInSeconds(Integer timeoutInSeconds)Response timeout represents wait time until request is considered failed, in seconds.HealthCheck.BuilderunhealthyThreshold(Integer unhealthyThreshold)Number of failed health checks after which the server is marked down.
 
- 
- 
- 
Method Detail- 
isEnabledpublic HealthCheck.Builder isEnabled(Boolean isEnabled) Enables or disables the health checks.- Parameters:
- isEnabled- the value to set
- Returns:
- this builder
 
 - 
methodpublic HealthCheck.Builder method(HealthCheck.Method method) An HTTP verb (i.e.HEAD, GET, or POST) to use when performing the health check. - Parameters:
- method- the value to set
- Returns:
- this builder
 
 - 
pathpublic HealthCheck.Builder path(String path) Path to visit on your origins when performing the health check.- Parameters:
- path- the value to set
- Returns:
- this builder
 
 - 
headerspublic HealthCheck.Builder headers(Map<String,String> headers) HTTP header fields to include in health check requests, expressed as “name”: “value” properties.Because HTTP header field names are case-insensitive, any use of names that are case-insensitive equal to other names will be rejected. If Host is not specified, requests will include a Host header field with value matching the policy’s protected domain. If User-Agent is not specified, requests will include a User-Agent header field with value “waf health checks”. *Note:** The only currently-supported header fields are Host and User-Agent. - Parameters:
- headers- the value to set
- Returns:
- this builder
 
 - 
expectedResponseCodeGrouppublic HealthCheck.Builder expectedResponseCodeGroup(List<HealthCheck.ExpectedResponseCodeGroup> expectedResponseCodeGroup) The HTTP response codes that signify a healthy state.- 2XX: Success response code group. - 3XX: Redirection response code group. - 4XX: Client errors response code group. - 5XX: Server errors response code group.
 - Parameters:
- expectedResponseCodeGroup- the value to set
- Returns:
- this builder
 
 - 
isResponseTextCheckEnabledpublic HealthCheck.Builder isResponseTextCheckEnabled(Boolean isResponseTextCheckEnabled) Enables or disables additional check for predefined text in addition to response code.- Parameters:
- isResponseTextCheckEnabled- the value to set
- Returns:
- this builder
 
 - 
expectedResponseTextpublic HealthCheck.Builder expectedResponseText(String expectedResponseText) Health check will search for the given text in a case-sensitive manner within the response body and will fail if the text is not found.- Parameters:
- expectedResponseText- the value to set
- Returns:
- this builder
 
 - 
intervalInSecondspublic HealthCheck.Builder intervalInSeconds(Integer intervalInSeconds) Time between health checks of an individual origin server, in seconds.- Parameters:
- intervalInSeconds- the value to set
- Returns:
- this builder
 
 - 
timeoutInSecondspublic HealthCheck.Builder timeoutInSeconds(Integer timeoutInSeconds) Response timeout represents wait time until request is considered failed, in seconds.- Parameters:
- timeoutInSeconds- the value to set
- Returns:
- this builder
 
 - 
healthyThresholdpublic HealthCheck.Builder healthyThreshold(Integer healthyThreshold) Number of successful health checks after which the server is marked up.- Parameters:
- healthyThreshold- the value to set
- Returns:
- this builder
 
 - 
unhealthyThresholdpublic HealthCheck.Builder unhealthyThreshold(Integer unhealthyThreshold) Number of failed health checks after which the server is marked down.- Parameters:
- unhealthyThreshold- the value to set
- Returns:
- this builder
 
 - 
buildpublic HealthCheck build() 
 - 
copypublic HealthCheck.Builder copy(HealthCheck model) 
 
- 
 
-