@Generated(value="OracleSDKGenerator", comments="API Version: 20181116") public final class WafConfig extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The Web Application Firewall configuration for the WAAS policy.
Note: Objects should always be created or deserialized using the WafConfig.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 WafConfig.Builder
, which maintain a
set of all explicitly set fields called WafConfig.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 |
WafConfig.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
WafConfig(List<AccessRule> accessRules,
AddressRateLimiting addressRateLimiting,
List<Captcha> captchas,
DeviceFingerprintChallenge deviceFingerprintChallenge,
List<GoodBot> goodBots,
HumanInteractionChallenge humanInteractionChallenge,
JsChallenge jsChallenge,
String origin,
List<CachingRule> cachingRules,
List<CustomProtectionRuleSetting> customProtectionRules,
List<String> originGroups,
List<ProtectionRule> protectionRules,
ProtectionSettings protectionSettings,
List<ThreatFeed> threatFeeds,
List<Whitelist> whitelists)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static WafConfig.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<AccessRule> |
getAccessRules()
The access rules applied to the Web Application Firewall.
|
AddressRateLimiting |
getAddressRateLimiting()
The IP address rate limiting settings used to limit the number of requests from an address.
|
List<CachingRule> |
getCachingRules()
A list of caching rules applied to the web application.
|
List<Captcha> |
getCaptchas()
A list of CAPTCHA challenge settings.
|
List<CustomProtectionRuleSetting> |
getCustomProtectionRules()
A list of the custom protection rule OCIDs and their actions.
|
DeviceFingerprintChallenge |
getDeviceFingerprintChallenge()
The device fingerprint challenge settings.
|
List<GoodBot> |
getGoodBots()
A list of bots allowed to access the web application.
|
HumanInteractionChallenge |
getHumanInteractionChallenge()
The human interaction challenge settings.
|
JsChallenge |
getJsChallenge()
The JavaScript challenge settings.
|
String |
getOrigin()
The key in the map of origins referencing the origin used for the Web Application Firewall.
|
List<String> |
getOriginGroups()
The map of origin groups and their keys used to associate origins to the
wafConfig . |
List<ProtectionRule> |
getProtectionRules()
A list of the protection rules and their details.
|
ProtectionSettings |
getProtectionSettings()
The settings to apply to protection rules.
|
List<ThreatFeed> |
getThreatFeeds()
A list of threat intelligence feeds and the actions to apply to known malicious traffic based
on internet intelligence.
|
List<Whitelist> |
getWhitelists()
A list of IP addresses that bypass the Web Application Firewall.
|
int |
hashCode() |
WafConfig.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"accessRules","addressRateLimiting","captchas","deviceFingerprintChallenge","goodBots","humanInteractionChallenge","jsChallenge","origin","cachingRules","customProtectionRules","originGroups","protectionRules","protectionSettings","threatFeeds","whitelists"}) public WafConfig(List<AccessRule> accessRules, AddressRateLimiting addressRateLimiting, List<Captcha> captchas, DeviceFingerprintChallenge deviceFingerprintChallenge, List<GoodBot> goodBots, HumanInteractionChallenge humanInteractionChallenge, JsChallenge jsChallenge, String origin, List<CachingRule> cachingRules, List<CustomProtectionRuleSetting> customProtectionRules, List<String> originGroups, List<ProtectionRule> protectionRules, ProtectionSettings protectionSettings, List<ThreatFeed> threatFeeds, List<Whitelist> whitelists)
public static WafConfig.Builder builder()
Create a new builder.
public WafConfig.Builder toBuilder()
public List<AccessRule> getAccessRules()
The access rules applied to the Web Application Firewall. Used for defining custom access
policies with the combination of ALLOW
, DETECT
, and BLOCK
rules,
based on different criteria.
public AddressRateLimiting getAddressRateLimiting()
The IP address rate limiting settings used to limit the number of requests from an address.
public List<Captcha> getCaptchas()
A list of CAPTCHA challenge settings. These are used to challenge requests with a CAPTCHA to block bots.
public DeviceFingerprintChallenge getDeviceFingerprintChallenge()
The device fingerprint challenge settings. Used to detect unique devices based on the device fingerprint information collected in order to block bots.
public List<GoodBot> getGoodBots()
A list of bots allowed to access the web application.
public HumanInteractionChallenge getHumanInteractionChallenge()
The human interaction challenge settings. Used to look for natural human interactions such as mouse movements, time on site, and page scrolling to identify bots.
public JsChallenge getJsChallenge()
The JavaScript challenge settings. Used to challenge requests with a JavaScript challenge and take the action if a browser has no JavaScript support in order to block bots.
public String getOrigin()
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 not on update.
public List<CachingRule> getCachingRules()
A list of caching rules applied to the web application.
public List<CustomProtectionRuleSetting> getCustomProtectionRules()
A list of the custom protection rule OCIDs and their actions.
public List<String> getOriginGroups()
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.
public List<ProtectionRule> getProtectionRules()
A list of the protection rules and their details.
public ProtectionSettings getProtectionSettings()
The settings to apply to protection rules.
public List<ThreatFeed> getThreatFeeds()
A list of threat intelligence feeds and the actions to apply to known malicious traffic based on internet intelligence.
public List<Whitelist> getWhitelists()
A list of IP addresses that bypass the Web Application Firewall.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.