Class WafConfig.Builder

  • Enclosing class:
    WafConfig

    public static class WafConfig.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • accessRules

        public WafConfig.Builder accessRules​(List<AccessRule> accessRules)
        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.

        Parameters:
        accessRules - the value to set
        Returns:
        this builder
      • addressRateLimiting

        public WafConfig.Builder addressRateLimiting​(AddressRateLimiting addressRateLimiting)
        The IP address rate limiting settings used to limit the number of requests from an address.
        Parameters:
        addressRateLimiting - the value to set
        Returns:
        this builder
      • captchas

        public WafConfig.Builder captchas​(List<Captcha> captchas)
        A list of CAPTCHA challenge settings.

        These are used to challenge requests with a CAPTCHA to block bots.

        Parameters:
        captchas - the value to set
        Returns:
        this builder
      • deviceFingerprintChallenge

        public WafConfig.Builder deviceFingerprintChallenge​(DeviceFingerprintChallenge deviceFingerprintChallenge)
        The device fingerprint challenge settings.

        Used to detect unique devices based on the device fingerprint information collected in order to block bots.

        Parameters:
        deviceFingerprintChallenge - the value to set
        Returns:
        this builder
      • goodBots

        public WafConfig.Builder goodBots​(List<GoodBot> goodBots)
        A list of bots allowed to access the web application.
        Parameters:
        goodBots - the value to set
        Returns:
        this builder
      • humanInteractionChallenge

        public WafConfig.Builder humanInteractionChallenge​(HumanInteractionChallenge humanInteractionChallenge)
        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.

        Parameters:
        humanInteractionChallenge - the value to set
        Returns:
        this builder
      • jsChallenge

        public WafConfig.Builder jsChallenge​(JsChallenge jsChallenge)
        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.

        Parameters:
        jsChallenge - the value to set
        Returns:
        this builder
      • origin

        public WafConfig.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 not on update.

        Parameters:
        origin - the value to set
        Returns:
        this builder
      • cachingRules

        public WafConfig.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 WafConfig.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 WafConfig.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
      • protectionRules

        public WafConfig.Builder protectionRules​(List<ProtectionRule> protectionRules)
        A list of the protection rules and their details.
        Parameters:
        protectionRules - the value to set
        Returns:
        this builder
      • protectionSettings

        public WafConfig.Builder protectionSettings​(ProtectionSettings protectionSettings)
        The settings to apply to protection rules.
        Parameters:
        protectionSettings - the value to set
        Returns:
        this builder
      • threatFeeds

        public WafConfig.Builder threatFeeds​(List<ThreatFeed> threatFeeds)
        A list of threat intelligence feeds and the actions to apply to known malicious traffic based on internet intelligence.
        Parameters:
        threatFeeds - the value to set
        Returns:
        this builder
      • whitelists

        public WafConfig.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