Package com.oracle.bmc.waas.model
Class HumanInteractionChallenge.Builder
- java.lang.Object
- 
- com.oracle.bmc.waas.model.HumanInteractionChallenge.Builder
 
- 
- Enclosing class:
- HumanInteractionChallenge
 
 public static class HumanInteractionChallenge.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description HumanInteractionChallenge.Builderaction(HumanInteractionChallenge.Action action)The action to take against requests from detected bots.HumanInteractionChallenge.BuilderactionExpirationInSeconds(Integer actionExpirationInSeconds)The number of seconds between challenges for the same IP address.HumanInteractionChallengebuild()HumanInteractionChallenge.BuilderchallengeSettings(BlockChallengeSettings challengeSettings)HumanInteractionChallenge.Buildercopy(HumanInteractionChallenge model)HumanInteractionChallenge.BuilderfailureThreshold(Integer failureThreshold)The number of failed requests before taking action.HumanInteractionChallenge.BuilderfailureThresholdExpirationInSeconds(Integer failureThresholdExpirationInSeconds)The number of seconds before the failure threshold resets.HumanInteractionChallenge.BuilderinteractionThreshold(Integer interactionThreshold)The number of interactions required to pass the challenge.HumanInteractionChallenge.BuilderisEnabled(Boolean isEnabled)Enables or disables the human interaction challenge Web Application Firewall feature.HumanInteractionChallenge.BuilderisNatEnabled(Boolean isNatEnabled)When enabled, the user is identified not only by the IP address but also by an unique additional hash, which prevents blocking visitors with shared IP addresses.HumanInteractionChallenge.BuilderrecordingPeriodInSeconds(Integer recordingPeriodInSeconds)The number of seconds to record the interactions from the user.HumanInteractionChallenge.BuildersetHttpHeader(Header setHttpHeader)Adds an additional HTTP header to requests that fail the challenge before being passed to the origin.
 
- 
- 
- 
Method Detail- 
isEnabledpublic HumanInteractionChallenge.Builder isEnabled(Boolean isEnabled) Enables or disables the human interaction challenge Web Application Firewall feature.- Parameters:
- isEnabled- the value to set
- Returns:
- this builder
 
 - 
actionpublic HumanInteractionChallenge.Builder action(HumanInteractionChallenge.Action action) The action to take against requests from detected bots.If unspecified, defaults to DETECT. - Parameters:
- action- the value to set
- Returns:
- this builder
 
 - 
failureThresholdpublic HumanInteractionChallenge.Builder failureThreshold(Integer failureThreshold) The number of failed requests before taking action.If unspecified, defaults to 10. - Parameters:
- failureThreshold- the value to set
- Returns:
- this builder
 
 - 
actionExpirationInSecondspublic HumanInteractionChallenge.Builder actionExpirationInSeconds(Integer actionExpirationInSeconds) The number of seconds between challenges for the same IP address.If unspecified, defaults to 60. - Parameters:
- actionExpirationInSeconds- the value to set
- Returns:
- this builder
 
 - 
failureThresholdExpirationInSecondspublic HumanInteractionChallenge.Builder failureThresholdExpirationInSeconds(Integer failureThresholdExpirationInSeconds) The number of seconds before the failure threshold resets.If unspecified, defaults to 60. - Parameters:
- failureThresholdExpirationInSeconds- the value to set
- Returns:
- this builder
 
 - 
interactionThresholdpublic HumanInteractionChallenge.Builder interactionThreshold(Integer interactionThreshold) The number of interactions required to pass the challenge.If unspecified, defaults to 3. - Parameters:
- interactionThreshold- the value to set
- Returns:
- this builder
 
 - 
recordingPeriodInSecondspublic HumanInteractionChallenge.Builder recordingPeriodInSeconds(Integer recordingPeriodInSeconds) The number of seconds to record the interactions from the user.If unspecified, defaults to 15. - Parameters:
- recordingPeriodInSeconds- the value to set
- Returns:
- this builder
 
 - 
setHttpHeaderpublic HumanInteractionChallenge.Builder setHttpHeader(Header setHttpHeader) Adds an additional HTTP header to requests that fail the challenge before being passed to the origin.Only applicable when the action is set to DETECT. - Parameters:
- setHttpHeader- the value to set
- Returns:
- this builder
 
 - 
challengeSettingspublic HumanInteractionChallenge.Builder challengeSettings(BlockChallengeSettings challengeSettings) 
 - 
isNatEnabledpublic HumanInteractionChallenge.Builder isNatEnabled(Boolean isNatEnabled) When enabled, the user is identified not only by the IP address but also by an unique additional hash, which prevents blocking visitors with shared IP addresses.- Parameters:
- isNatEnabled- the value to set
- Returns:
- this builder
 
 - 
buildpublic HumanInteractionChallenge build() 
 - 
copypublic HumanInteractionChallenge.Builder copy(HumanInteractionChallenge model) 
 
- 
 
-