Interface StaleIpPermission.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<StaleIpPermission.Builder,StaleIpPermission>
,SdkBuilder<StaleIpPermission.Builder,StaleIpPermission>
,SdkPojo
- Enclosing class:
- StaleIpPermission
public static interface StaleIpPermission.Builder extends SdkPojo, CopyableBuilder<StaleIpPermission.Builder,StaleIpPermission>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StaleIpPermission.Builder
fromPort(Integer fromPort)
The start of the port range for the TCP and UDP protocols, or an ICMP type number.StaleIpPermission.Builder
ipProtocol(String ipProtocol)
StaleIpPermission.Builder
ipRanges(String... ipRanges)
The IP ranges.StaleIpPermission.Builder
ipRanges(Collection<String> ipRanges)
The IP ranges.StaleIpPermission.Builder
prefixListIds(String... prefixListIds)
The prefix list IDs.StaleIpPermission.Builder
prefixListIds(Collection<String> prefixListIds)
The prefix list IDs.StaleIpPermission.Builder
toPort(Integer toPort)
The end of the port range for the TCP and UDP protocols, or an ICMP type number.StaleIpPermission.Builder
userIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs)
The security group pairs.StaleIpPermission.Builder
userIdGroupPairs(Consumer<UserIdGroupPair.Builder>... userIdGroupPairs)
The security group pairs.StaleIpPermission.Builder
userIdGroupPairs(UserIdGroupPair... userIdGroupPairs)
The security group pairs.-
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
-
fromPort
StaleIpPermission.Builder fromPort(Integer fromPort)
The start of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.
- Parameters:
fromPort
- The start of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipProtocol
StaleIpPermission.Builder ipProtocol(String ipProtocol)
The IP protocol name (for
tcp
,udp
, andicmp
) or number (see Protocol Numbers).- Parameters:
ipProtocol
- The IP protocol name (fortcp
,udp
, andicmp
) or number (see Protocol Numbers).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipRanges
StaleIpPermission.Builder ipRanges(Collection<String> ipRanges)
The IP ranges. Not applicable for stale security group rules.
- Parameters:
ipRanges
- The IP ranges. Not applicable for stale security group rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipRanges
StaleIpPermission.Builder ipRanges(String... ipRanges)
The IP ranges. Not applicable for stale security group rules.
- Parameters:
ipRanges
- The IP ranges. Not applicable for stale security group rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prefixListIds
StaleIpPermission.Builder prefixListIds(Collection<String> prefixListIds)
The prefix list IDs. Not applicable for stale security group rules.
- Parameters:
prefixListIds
- The prefix list IDs. Not applicable for stale security group rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prefixListIds
StaleIpPermission.Builder prefixListIds(String... prefixListIds)
The prefix list IDs. Not applicable for stale security group rules.
- Parameters:
prefixListIds
- The prefix list IDs. Not applicable for stale security group rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toPort
StaleIpPermission.Builder toPort(Integer toPort)
The end of the port range for the TCP and UDP protocols, or an ICMP type number. A value of
-1
indicates all ICMP types.- Parameters:
toPort
- The end of the port range for the TCP and UDP protocols, or an ICMP type number. A value of-1
indicates all ICMP types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userIdGroupPairs
StaleIpPermission.Builder userIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs)
The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
- Parameters:
userIdGroupPairs
- The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userIdGroupPairs
StaleIpPermission.Builder userIdGroupPairs(UserIdGroupPair... userIdGroupPairs)
The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
- Parameters:
userIdGroupPairs
- The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userIdGroupPairs
StaleIpPermission.Builder userIdGroupPairs(Consumer<UserIdGroupPair.Builder>... userIdGroupPairs)
The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
This is a convenience method that creates an instance of theUserIdGroupPair.Builder
avoiding the need to create one manually viaUserIdGroupPair.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#userIdGroupPairs(List
.) - Parameters:
userIdGroupPairs
- a consumer that will call methods onUserIdGroupPair.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#userIdGroupPairs(java.util.Collection
)
-
-