Interface FirewallStatefulRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FirewallStatefulRule.Builder,
,FirewallStatefulRule> SdkBuilder<FirewallStatefulRule.Builder,
,FirewallStatefulRule> SdkPojo
- Enclosing class:
FirewallStatefulRule
-
Method Summary
Modifier and TypeMethodDescriptiondestinationPorts
(Collection<PortRange> destinationPorts) The destination ports.destinationPorts
(Consumer<PortRange.Builder>... destinationPorts) The destination ports.destinationPorts
(PortRange... destinationPorts) The destination ports.destinations
(String... destinations) The destination IP addresses, in CIDR notation.destinations
(Collection<String> destinations) The destination IP addresses, in CIDR notation.The direction.The protocol.ruleAction
(String ruleAction) The rule action.ruleGroupArn
(String ruleGroupArn) The ARN of the stateful rule group.sourcePorts
(Collection<PortRange> sourcePorts) The source ports.sourcePorts
(Consumer<PortRange.Builder>... sourcePorts) The source ports.sourcePorts
(PortRange... sourcePorts) The source ports.The source IP addresses, in CIDR notation.sources
(Collection<String> sources) The source IP addresses, in CIDR notation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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
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 thePortRange.Builder
avoiding the need to create one manually viaPortRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourcePorts(List<PortRange>)
.- Parameters:
sourcePorts
- a consumer that will call methods onPortRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
The destination ports.
- Parameters:
destinationPorts
- The destination ports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationPorts
The destination ports.
This is a convenience method that creates an instance of thePortRange.Builder
avoiding the need to create one manually viaPortRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todestinationPorts(List<PortRange>)
.- Parameters:
destinationPorts
- a consumer that will call methods onPortRange.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
The rule action. The possible values are
pass
,drop
, andalert
.- Parameters:
ruleAction
- The rule action. The possible values arepass
,drop
, andalert
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
direction
The direction. The possible values are
FORWARD
andANY
.- Parameters:
direction
- The direction. The possible values areFORWARD
andANY
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-