Interface RuleMetadata.Builder

  • Method Details

    • ruleEnabled

      RuleMetadata.Builder ruleEnabled(Boolean ruleEnabled)

      Specifies whether the rule is active. The default is TRUE. When you set this to FALSE, Network Firewall keeps the rule in the rule group but doesn't evaluate it against traffic and doesn't count it toward the rule group's consumed capacity.

      Parameters:
      ruleEnabled - Specifies whether the rule is active. The default is TRUE. When you set this to FALSE, Network Firewall keeps the rule in the rule group but doesn't evaluate it against traffic and doesn't count it toward the rule group's consumed capacity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleDescription

      RuleMetadata.Builder ruleDescription(String ruleDescription)

      A description of the rule, up to 512 characters. The description can span multiple lines. A description line can't itself look like a firewall rule; to disable a rule, set RuleEnabled to FALSE instead.

      Parameters:
      ruleDescription - A description of the rule, up to 512 characters. The description can span multiple lines. A description line can't itself look like a firewall rule; to disable a rule, set RuleEnabled to FALSE instead.
      Returns:
      Returns a reference to this object so that method calls can be chained together.