Interface AnalysisSecurityGroupRule.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<AnalysisSecurityGroupRule.Builder,AnalysisSecurityGroupRule>
,SdkBuilder<AnalysisSecurityGroupRule.Builder,AnalysisSecurityGroupRule>
,SdkPojo
- Enclosing class:
- AnalysisSecurityGroupRule
public static interface AnalysisSecurityGroupRule.Builder extends SdkPojo, CopyableBuilder<AnalysisSecurityGroupRule.Builder,AnalysisSecurityGroupRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AnalysisSecurityGroupRule.Builder
cidr(String cidr)
The IPv4 address range, in CIDR notation.AnalysisSecurityGroupRule.Builder
direction(String direction)
The direction.default AnalysisSecurityGroupRule.Builder
portRange(Consumer<PortRange.Builder> portRange)
The port range.AnalysisSecurityGroupRule.Builder
portRange(PortRange portRange)
The port range.AnalysisSecurityGroupRule.Builder
prefixListId(String prefixListId)
The prefix list ID.AnalysisSecurityGroupRule.Builder
protocol(String protocol)
The protocol name.AnalysisSecurityGroupRule.Builder
securityGroupId(String securityGroupId)
The security group ID.-
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
-
cidr
AnalysisSecurityGroupRule.Builder cidr(String 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.
-
direction
AnalysisSecurityGroupRule.Builder direction(String direction)
The direction. The following are the possible values:
-
egress
-
ingress
- Parameters:
direction
- The direction. The following are the possible values:-
egress
-
ingress
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
securityGroupId
AnalysisSecurityGroupRule.Builder securityGroupId(String securityGroupId)
The security group ID.
- Parameters:
securityGroupId
- The security group ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
AnalysisSecurityGroupRule.Builder portRange(PortRange portRange)
The port range.
- Parameters:
portRange
- The port range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
default AnalysisSecurityGroupRule.Builder portRange(Consumer<PortRange.Builder> portRange)
The port range.
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:
portRange(PortRange)
-
prefixListId
AnalysisSecurityGroupRule.Builder prefixListId(String prefixListId)
The prefix list ID.
- Parameters:
prefixListId
- The prefix list ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocol
AnalysisSecurityGroupRule.Builder protocol(String protocol)
The protocol name.
- Parameters:
protocol
- The protocol name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-