Interface FirewallStatefulRule.Builder

  • Method Details

    • ruleGroupArn

      FirewallStatefulRule.Builder ruleGroupArn(String ruleGroupArn)

      The ARN of the stateful rule group.

      Parameters:
      ruleGroupArn - The ARN of the stateful rule group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sources

      The source IP addresses, in CIDR notation.

      Parameters:
      sources - The source IP addresses, in CIDR notation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sources

      FirewallStatefulRule.Builder sources(String... sources)

      The source IP addresses, in CIDR notation.

      Parameters:
      sources - The source IP addresses, in CIDR notation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinations

      FirewallStatefulRule.Builder destinations(Collection<String> destinations)

      The destination IP addresses, in CIDR notation.

      Parameters:
      destinations - The destination IP addresses, in CIDR notation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinations

      FirewallStatefulRule.Builder destinations(String... destinations)

      The destination IP addresses, in CIDR notation.

      Parameters:
      destinations - The destination IP addresses, in CIDR notation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcePorts

      The source ports.

      Parameters:
      sourcePorts - The source ports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcePorts

      FirewallStatefulRule.Builder sourcePorts(PortRange... sourcePorts)

      The source ports.

      Parameters:
      sourcePorts - The source ports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcePorts

      The source ports.

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

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

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

      FirewallStatefulRule.Builder destinationPorts(Collection<PortRange> destinationPorts)

      The destination ports.

      Parameters:
      destinationPorts - The destination ports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationPorts

      FirewallStatefulRule.Builder destinationPorts(PortRange... destinationPorts)

      The destination ports.

      Parameters:
      destinationPorts - The destination ports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationPorts

      FirewallStatefulRule.Builder destinationPorts(Consumer<PortRange.Builder>... destinationPorts)

      The destination ports.

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

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

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

      The protocol.

      Parameters:
      protocol - The protocol.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleAction

      FirewallStatefulRule.Builder ruleAction(String ruleAction)

      The rule action. The possible values are pass, drop, and alert.

      Parameters:
      ruleAction - The rule action. The possible values are pass, drop, and alert.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • direction

      FirewallStatefulRule.Builder direction(String direction)

      The direction. The possible values are FORWARD and ANY.

      Parameters:
      direction - The direction. The possible values are FORWARD and ANY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.