Interface AnalysisAclRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AnalysisAclRule.Builder,
,AnalysisAclRule> SdkBuilder<AnalysisAclRule.Builder,
,AnalysisAclRule> SdkPojo
- Enclosing class:
AnalysisAclRule
public static interface AnalysisAclRule.Builder
extends SdkPojo, CopyableBuilder<AnalysisAclRule.Builder,AnalysisAclRule>
-
Method Summary
Modifier and TypeMethodDescriptionThe IPv4 address range, in CIDR notation.Indicates whether the rule is an outbound rule.default AnalysisAclRule.Builder
portRange
(Consumer<PortRange.Builder> portRange) The range of ports.The range of ports.The protocol.ruleAction
(String ruleAction) Indicates whether to allow or deny traffic that matches the rule.ruleNumber
(Integer ruleNumber) The rule number.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 Details
-
cidr
The IPv4 address range, in CIDR notation.
- Parameters:
cidr
- The IPv4 address range, in CIDR notation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
egress
Indicates whether the rule is an outbound rule.
- Parameters:
egress
- Indicates whether the rule is an outbound rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
The range of ports.
- Parameters:
portRange
- The range of ports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
The range of 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 toportRange(PortRange)
.- Parameters:
portRange
- 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
Indicates whether to allow or deny traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny traffic that matches the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleNumber
The rule number.
- Parameters:
ruleNumber
- The rule number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-