Interface RulesSource.Builder

All Superinterfaces:
Buildable, CopyableBuilder<RulesSource.Builder,RulesSource>, SdkBuilder<RulesSource.Builder,RulesSource>, SdkPojo
Enclosing class:
RulesSource

public static interface RulesSource.Builder extends SdkPojo, CopyableBuilder<RulesSource.Builder,RulesSource>
  • Method Details

    • rulesString

      RulesSource.Builder rulesString(String rulesString)

      Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.

      These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.

      You can't use the priority keyword if the RuleOrder option in StatefulRuleOptions is set to STRICT_ORDER.

      Parameters:
      rulesString - Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.

      These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.

      You can't use the priority keyword if the RuleOrder option in StatefulRuleOptions is set to STRICT_ORDER.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rulesSourceList

      RulesSource.Builder rulesSourceList(RulesSourceList rulesSourceList)

      Stateful inspection criteria for a domain list rule group.

      Parameters:
      rulesSourceList - Stateful inspection criteria for a domain list rule group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rulesSourceList

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

      Stateful inspection criteria for a domain list rule group.

      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:
    • statefulRules

      RulesSource.Builder statefulRules(Collection<StatefulRule> statefulRules)

      An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format.

      Parameters:
      statefulRules - An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statefulRules

      RulesSource.Builder statefulRules(StatefulRule... statefulRules)

      An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format.

      Parameters:
      statefulRules - An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statefulRules

      RulesSource.Builder statefulRules(Consumer<StatefulRule.Builder>... statefulRules)

      An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format.

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

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

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

      RulesSource.Builder statelessRulesAndCustomActions(StatelessRulesAndCustomActions statelessRulesAndCustomActions)

      Stateless inspection criteria to be used in a stateless rule group.

      Parameters:
      statelessRulesAndCustomActions - Stateless inspection criteria to be used in a stateless rule group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statelessRulesAndCustomActions

      default RulesSource.Builder statelessRulesAndCustomActions(Consumer<StatelessRulesAndCustomActions.Builder> statelessRulesAndCustomActions)

      Stateless inspection criteria to be used in a stateless rule group.

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

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

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