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
-
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)
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP types).
- Parameters:
fromPort
- If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (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 (
tcp
,udp
,icmp
,icmpv6
) or number (see Protocol Numbers).- Parameters:
ipProtocol
- The IP protocol name (tcp
,udp
,icmp
,icmpv6
) 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)
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes).
- Parameters:
toPort
- If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes).- 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
)
-
-