Interface StaleIpPermission.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<StaleIpPermission.Builder,,StaleIpPermission> SdkBuilder<StaleIpPermission.Builder,,StaleIpPermission> SdkPojo
- Enclosing class:
StaleIpPermission
-
Method Summary
Modifier and TypeMethodDescriptionIf the protocol is TCP or UDP, this is the start of the port range.ipProtocol(String ipProtocol) The IP ranges.ipRanges(Collection<String> ipRanges) The IP ranges.prefixListIds(String... prefixListIds) The prefix list IDs.prefixListIds(Collection<String> prefixListIds) The prefix list IDs.If the protocol is TCP or UDP, this is the end of the port range.userIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs) The security group pairs.userIdGroupPairs(Consumer<UserIdGroupPair.Builder>... userIdGroupPairs) The security group pairs.userIdGroupPairs(UserIdGroupPair... userIdGroupPairs) The security group pairs.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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
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
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
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
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
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
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.Builderavoiding the need to create one manually viaUserIdGroupPair.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserIdGroupPairs(List<UserIdGroupPair>).- 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:
-