Interface FirewallRulesSource.Builder

  • Method Details

    • rulesString

      FirewallRulesSource.Builder rulesString(String rulesString)

      Firewall engine rules, provided as a single Suricata-compatible rule string in firewall mode. Use this to provide rules that you've already written in the Suricata firewall-mode format. For the rule format, see Rule groups for a firewall using a Next Generation policy in the Network Firewall Developer Guide.

      Parameters:
      rulesString - Firewall engine rules, provided as a single Suricata-compatible rule string in firewall mode. Use this to provide rules that you've already written in the Suricata firewall-mode format. For the rule format, see Rule groups for a firewall using a Next Generation policy in the Network Firewall Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • firewallRules

      FirewallRulesSource.Builder firewallRules(Collection<FirewallRule> firewallRules)

      An array of individual firewall engine rules, provided as structured rules rather than as a rule string.

      Parameters:
      firewallRules - An array of individual firewall engine rules, provided as structured rules rather than as a rule string.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • firewallRules

      FirewallRulesSource.Builder firewallRules(FirewallRule... firewallRules)

      An array of individual firewall engine rules, provided as structured rules rather than as a rule string.

      Parameters:
      firewallRules - An array of individual firewall engine rules, provided as structured rules rather than as a rule string.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • firewallRules

      FirewallRulesSource.Builder firewallRules(Consumer<FirewallRule.Builder>... firewallRules)

      An array of individual firewall engine rules, provided as structured rules rather than as a rule string.

      This is a convenience method that creates an instance of the FirewallRule.Builder avoiding the need to create one manually via FirewallRule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to firewallRules(List<FirewallRule>).

      Parameters:
      firewallRules - a consumer that will call methods on FirewallRule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • rulesSourceList

      FirewallRulesSource.Builder rulesSourceList(RulesSourceList rulesSourceList)

      Stateful inspection criteria for a domain list, specified as the list of domain names that Network Firewall generates firewall engine rules from.

      Parameters:
      rulesSourceList - Stateful inspection criteria for a domain list, specified as the list of domain names that Network Firewall generates firewall engine rules from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rulesSourceList

      default FirewallRulesSource.Builder rulesSourceList(Consumer<RulesSourceList.Builder> rulesSourceList)

      Stateful inspection criteria for a domain list, specified as the list of domain names that Network Firewall generates firewall engine rules from.

      This is a convenience method that creates an instance of the RulesSourceList.Builder avoiding the need to create one manually via RulesSourceList.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rulesSourceList(RulesSourceList).

      Parameters:
      rulesSourceList - a consumer that will call methods on RulesSourceList.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: