Class WafConfigDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.waas.model.WafConfigDetails.Builder
-
- Enclosing class:
- WafConfigDetails
public static class WafConfigDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WafConfigDetails.Builder
accessRules(List<AccessRule> accessRules)
The access rules applied to the Web Application Firewall.WafConfigDetails.Builder
addressRateLimiting(AddressRateLimiting addressRateLimiting)
The settings used to limit the number of requests from an IP address.WafConfigDetails
build()
WafConfigDetails.Builder
cachingRules(List<CachingRule> cachingRules)
A list of caching rules applied to the web application.WafConfigDetails.Builder
captchas(List<Captcha> captchas)
A list of CAPTCHA challenge settings.WafConfigDetails.Builder
copy(WafConfigDetails model)
WafConfigDetails.Builder
customProtectionRules(List<CustomProtectionRuleSetting> customProtectionRules)
A list of the custom protection rule OCIDs and their actions.WafConfigDetails.Builder
deviceFingerprintChallenge(DeviceFingerprintChallenge deviceFingerprintChallenge)
The device fingerprint challenge settings.WafConfigDetails.Builder
humanInteractionChallenge(HumanInteractionChallenge humanInteractionChallenge)
The human interaction challenge settings.WafConfigDetails.Builder
jsChallenge(JsChallenge jsChallenge)
The JavaScript challenge settings.WafConfigDetails.Builder
origin(String origin)
The key in the map of origins referencing the origin used for the Web Application Firewall.WafConfigDetails.Builder
originGroups(List<String> originGroups)
The map of origin groups and their keys used to associate origins to the wafConfig.WafConfigDetails.Builder
protectionSettings(ProtectionSettings protectionSettings)
The settings applied to protection rules.WafConfigDetails.Builder
whitelists(List<Whitelist> whitelists)
A list of IP addresses that bypass the Web Application Firewall.
-
-
-
Method Detail
-
accessRules
public WafConfigDetails.Builder accessRules(List<AccessRule> accessRules)
The access rules applied to the Web Application Firewall.Access rules allow custom content access policies to be defined and ALLOW, DETECT, or BLOCK actions to be taken on a request when specified criteria are met.
- Parameters:
accessRules
- the value to set- Returns:
- this builder
-
addressRateLimiting
public WafConfigDetails.Builder addressRateLimiting(AddressRateLimiting addressRateLimiting)
The settings used to limit the number of requests from an IP address.- Parameters:
addressRateLimiting
- the value to set- Returns:
- this builder
-
captchas
public WafConfigDetails.Builder captchas(List<Captcha> captchas)
A list of CAPTCHA challenge settings.CAPTCHAs challenge requests to ensure a human is attempting to reach the specified URL and not a bot.
- Parameters:
captchas
- the value to set- Returns:
- this builder
-
deviceFingerprintChallenge
public WafConfigDetails.Builder deviceFingerprintChallenge(DeviceFingerprintChallenge deviceFingerprintChallenge)
The device fingerprint challenge settings.Blocks bots based on unique device fingerprint information.
- Parameters:
deviceFingerprintChallenge
- the value to set- Returns:
- this builder
-
humanInteractionChallenge
public WafConfigDetails.Builder humanInteractionChallenge(HumanInteractionChallenge humanInteractionChallenge)
The human interaction challenge settings.Detects natural human interactions such as mouse movements, time on site, and page scrolling to identify bots.
- Parameters:
humanInteractionChallenge
- the value to set- Returns:
- this builder
-
jsChallenge
public WafConfigDetails.Builder jsChallenge(JsChallenge jsChallenge)
The JavaScript challenge settings.Blocks bots by challenging requests from browsers that have no JavaScript support.
- Parameters:
jsChallenge
- the value to set- Returns:
- this builder
-
origin
public WafConfigDetails.Builder origin(String origin)
The key in the map of origins referencing the origin used for the Web Application Firewall.The origin must already be included in Origins. Required when creating the WafConfig resource, but is not required upon updating the configuration.
- Parameters:
origin
- the value to set- Returns:
- this builder
-
cachingRules
public WafConfigDetails.Builder cachingRules(List<CachingRule> cachingRules)
A list of caching rules applied to the web application.- Parameters:
cachingRules
- the value to set- Returns:
- this builder
-
customProtectionRules
public WafConfigDetails.Builder customProtectionRules(List<CustomProtectionRuleSetting> customProtectionRules)
A list of the custom protection rule OCIDs and their actions.- Parameters:
customProtectionRules
- the value to set- Returns:
- this builder
-
originGroups
public WafConfigDetails.Builder originGroups(List<String> originGroups)
The map of origin groups and their keys used to associate origins to the wafConfig.Origin groups allow you to apply weights to groups of origins for load balancing purposes. Origins with higher weights will receive larger proportions of client requests. To add additional origins to your WAAS policy, update the origins field of a UpdateWaasPolicy request.
- Parameters:
originGroups
- the value to set- Returns:
- this builder
-
protectionSettings
public WafConfigDetails.Builder protectionSettings(ProtectionSettings protectionSettings)
The settings applied to protection rules.- Parameters:
protectionSettings
- the value to set- Returns:
- this builder
-
whitelists
public WafConfigDetails.Builder whitelists(List<Whitelist> whitelists)
A list of IP addresses that bypass the Web Application Firewall.- Parameters:
whitelists
- the value to set- Returns:
- this builder
-
build
public WafConfigDetails build()
-
copy
public WafConfigDetails.Builder copy(WafConfigDetails model)
-
-