Package com.oracle.bmc.waas.model
Class DeviceFingerprintChallenge.Builder
- java.lang.Object
-
- com.oracle.bmc.waas.model.DeviceFingerprintChallenge.Builder
-
- Enclosing class:
- DeviceFingerprintChallenge
public static class DeviceFingerprintChallenge.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceFingerprintChallenge.Builder
action(DeviceFingerprintChallenge.Action action)
The action to take on requests from detected bots.DeviceFingerprintChallenge.Builder
actionExpirationInSeconds(Integer actionExpirationInSeconds)
The number of seconds between challenges for the same IP address.DeviceFingerprintChallenge
build()
DeviceFingerprintChallenge.Builder
challengeSettings(BlockChallengeSettings challengeSettings)
DeviceFingerprintChallenge.Builder
copy(DeviceFingerprintChallenge model)
DeviceFingerprintChallenge.Builder
failureThreshold(Integer failureThreshold)
The number of failed requests allowed before taking action.DeviceFingerprintChallenge.Builder
failureThresholdExpirationInSeconds(Integer failureThresholdExpirationInSeconds)
The number of seconds before the failure threshold resets.DeviceFingerprintChallenge.Builder
isEnabled(Boolean isEnabled)
Enables or disables the device fingerprint challenge Web Application Firewall feature.DeviceFingerprintChallenge.Builder
maxAddressCount(Integer maxAddressCount)
The maximum number of IP addresses permitted with the same device fingerprint.DeviceFingerprintChallenge.Builder
maxAddressCountExpirationInSeconds(Integer maxAddressCountExpirationInSeconds)
The number of seconds before the maximum addresses count resets.
-
-
-
Method Detail
-
isEnabled
public DeviceFingerprintChallenge.Builder isEnabled(Boolean isEnabled)
Enables or disables the device fingerprint challenge Web Application Firewall feature.- Parameters:
isEnabled
- the value to set- Returns:
- this builder
-
action
public DeviceFingerprintChallenge.Builder action(DeviceFingerprintChallenge.Action action)
The action to take on requests from detected bots.If unspecified, defaults to DETECT.
- Parameters:
action
- the value to set- Returns:
- this builder
-
failureThreshold
public DeviceFingerprintChallenge.Builder failureThreshold(Integer failureThreshold)
The number of failed requests allowed before taking action.If unspecified, defaults to 10.
- Parameters:
failureThreshold
- the value to set- Returns:
- this builder
-
actionExpirationInSeconds
public DeviceFingerprintChallenge.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
-
failureThresholdExpirationInSeconds
public DeviceFingerprintChallenge.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
-
maxAddressCount
public DeviceFingerprintChallenge.Builder maxAddressCount(Integer maxAddressCount)
The maximum number of IP addresses permitted with the same device fingerprint.If unspecified, defaults to 20.
- Parameters:
maxAddressCount
- the value to set- Returns:
- this builder
-
maxAddressCountExpirationInSeconds
public DeviceFingerprintChallenge.Builder maxAddressCountExpirationInSeconds(Integer maxAddressCountExpirationInSeconds)
The number of seconds before the maximum addresses count resets.If unspecified, defaults to 60.
- Parameters:
maxAddressCountExpirationInSeconds
- the value to set- Returns:
- this builder
-
challengeSettings
public DeviceFingerprintChallenge.Builder challengeSettings(BlockChallengeSettings challengeSettings)
-
build
public DeviceFingerprintChallenge build()
-
copy
public DeviceFingerprintChallenge.Builder copy(DeviceFingerprintChallenge model)
-
-