Interface FirewallStatelessRule.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<FirewallStatelessRule.Builder,FirewallStatelessRule>
,SdkBuilder<FirewallStatelessRule.Builder,FirewallStatelessRule>
,SdkPojo
- Enclosing class:
- FirewallStatelessRule
public static interface FirewallStatelessRule.Builder extends SdkPojo, CopyableBuilder<FirewallStatelessRule.Builder,FirewallStatelessRule>
-
-
Method Summary
-
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, sdkFields
-
-
-
-
Method Detail
-
ruleGroupArn
FirewallStatelessRule.Builder ruleGroupArn(String ruleGroupArn)
The ARN of the stateless rule group.
- Parameters:
ruleGroupArn
- The ARN of the stateless rule group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
FirewallStatelessRule.Builder sources(Collection<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.
-
sources
FirewallStatelessRule.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
FirewallStatelessRule.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
FirewallStatelessRule.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
FirewallStatelessRule.Builder sourcePorts(Collection<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
FirewallStatelessRule.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
FirewallStatelessRule.Builder sourcePorts(Consumer<PortRange.Builder>... 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 to#sourcePorts(List
.) - 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:
#sourcePorts(java.util.Collection
)
-
destinationPorts
FirewallStatelessRule.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
FirewallStatelessRule.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
FirewallStatelessRule.Builder destinationPorts(Consumer<PortRange.Builder>... 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 to#destinationPorts(List
.) - 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:
#destinationPorts(java.util.Collection
)
-
protocols
FirewallStatelessRule.Builder protocols(Collection<Integer> protocols)
The protocols.
- Parameters:
protocols
- The protocols.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocols
FirewallStatelessRule.Builder protocols(Integer... protocols)
The protocols.
- Parameters:
protocols
- The protocols.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleAction
FirewallStatelessRule.Builder ruleAction(String ruleAction)
The rule action. The possible values are
pass
,drop
, andforward_to_site
.- Parameters:
ruleAction
- The rule action. The possible values arepass
,drop
, andforward_to_site
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priority
FirewallStatelessRule.Builder priority(Integer priority)
The rule priority.
- Parameters:
priority
- The rule priority.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-