public static interface IpPermission.Builder extends SdkPojo, CopyableBuilder<IpPermission.Builder,IpPermission>
| Modifier and Type | Method and Description |
|---|---|
IpPermission.Builder |
fromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number.
|
IpPermission.Builder |
ipProtocol(String ipProtocol)
|
IpPermission.Builder |
ipRanges(Collection<IpRange> ipRanges)
The IPv4 ranges.
|
IpPermission.Builder |
ipRanges(Consumer<IpRange.Builder>... ipRanges)
The IPv4 ranges.
|
IpPermission.Builder |
ipRanges(IpRange... ipRanges)
The IPv4 ranges.
|
IpPermission.Builder |
ipv6Ranges(Collection<Ipv6Range> ipv6Ranges)
[VPC only] The IPv6 ranges.
|
IpPermission.Builder |
ipv6Ranges(Consumer<Ipv6Range.Builder>... ipv6Ranges)
[VPC only] The IPv6 ranges.
|
IpPermission.Builder |
ipv6Ranges(Ipv6Range... ipv6Ranges)
[VPC only] The IPv6 ranges.
|
IpPermission.Builder |
prefixListIds(Collection<PrefixListId> prefixListIds)
[VPC only] The prefix list IDs.
|
IpPermission.Builder |
prefixListIds(Consumer<PrefixListId.Builder>... prefixListIds)
[VPC only] The prefix list IDs.
|
IpPermission.Builder |
prefixListIds(PrefixListId... prefixListIds)
[VPC only] The prefix list IDs.
|
IpPermission.Builder |
toPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
|
IpPermission.Builder |
userIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs)
The security group and Amazon Web Services account ID pairs.
|
IpPermission.Builder |
userIdGroupPairs(Consumer<UserIdGroupPair.Builder>... userIdGroupPairs)
The security group and Amazon Web Services account ID pairs.
|
IpPermission.Builder |
userIdGroupPairs(UserIdGroupPair... userIdGroupPairs)
The security group and Amazon Web Services account ID pairs.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildIpPermission.Builder fromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of
-1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all
codes.
fromPort - The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of
-1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must
specify all codes.IpPermission.Builder ipProtocol(String ipProtocol)
The IP protocol name (tcp, udp, icmp, icmpv6) or number
(see Protocol Numbers).
[VPC only] Use -1 to specify all protocols. When authorizing security group rules, specifying
-1 or a protocol number other than tcp, udp, icmp, or
icmpv6 allows traffic on all ports, regardless of any port range you specify. For
tcp, udp, and icmp, you must specify a port range. For
icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes
is allowed.
ipProtocol - The IP protocol name (tcp, udp, icmp, icmpv6) or
number (see Protocol
Numbers).
[VPC only] Use -1 to specify all protocols. When authorizing security group rules,
specifying -1 or a protocol number other than tcp, udp,
icmp, or icmpv6 allows traffic on all ports, regardless of any port range
you specify. For tcp, udp, and icmp, you must specify a port
range. For icmpv6, the port range is optional; if you omit the port range, traffic for
all types and codes is allowed.
IpPermission.Builder ipRanges(Collection<IpRange> ipRanges)
The IPv4 ranges.
ipRanges - The IPv4 ranges.IpPermission.Builder ipRanges(IpRange... ipRanges)
The IPv4 ranges.
ipRanges - The IPv4 ranges.IpPermission.Builder ipRanges(Consumer<IpRange.Builder>... ipRanges)
The IPv4 ranges.
This is a convenience method that creates an instance of theIpRange.Builder avoiding the need to create one manually
via IpRange.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #ipRanges(List.
ipRanges - a consumer that will call methods on IpRange.Builder#ipRanges(java.util.Collection) IpPermission.Builder ipv6Ranges(Collection<Ipv6Range> ipv6Ranges)
[VPC only] The IPv6 ranges.
ipv6Ranges - [VPC only] The IPv6 ranges.IpPermission.Builder ipv6Ranges(Ipv6Range... ipv6Ranges)
[VPC only] The IPv6 ranges.
ipv6Ranges - [VPC only] The IPv6 ranges.IpPermission.Builder ipv6Ranges(Consumer<Ipv6Range.Builder>... ipv6Ranges)
[VPC only] The IPv6 ranges.
This is a convenience method that creates an instance of theIpv6Range.Builder avoiding the need to create one manually
via Ipv6Range.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #ipv6Ranges(List.
ipv6Ranges - a consumer that will call methods on
Ipv6Range.Builder#ipv6Ranges(java.util.Collection) IpPermission.Builder prefixListIds(Collection<PrefixListId> prefixListIds)
[VPC only] The prefix list IDs.
prefixListIds - [VPC only] The prefix list IDs.IpPermission.Builder prefixListIds(PrefixListId... prefixListIds)
[VPC only] The prefix list IDs.
prefixListIds - [VPC only] The prefix list IDs.IpPermission.Builder prefixListIds(Consumer<PrefixListId.Builder>... prefixListIds)
[VPC only] The prefix list IDs.
This is a convenience method that creates an instance of thePrefixListId.Builder avoiding the need to create one
manually via PrefixListId.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #prefixListIds(List.
prefixListIds - a consumer that will call methods on
PrefixListId.Builder#prefixListIds(java.util.Collection) IpPermission.Builder toPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of -1
indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.
toPort - The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of
-1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must
specify all codes.IpPermission.Builder userIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs)
The security group and Amazon Web Services account ID pairs.
userIdGroupPairs - The security group and Amazon Web Services account ID pairs.IpPermission.Builder userIdGroupPairs(UserIdGroupPair... userIdGroupPairs)
The security group and Amazon Web Services account ID pairs.
userIdGroupPairs - The security group and Amazon Web Services account ID pairs.IpPermission.Builder userIdGroupPairs(Consumer<UserIdGroupPair.Builder>... userIdGroupPairs)
The security group and Amazon Web Services account ID pairs.
This is a convenience method that creates an instance of theUserIdGroupPair.Builder avoiding the need to create one
manually via UserIdGroupPair.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #userIdGroupPairs(List.
userIdGroupPairs - a consumer that will call methods on
UserIdGroupPair.Builder#userIdGroupPairs(java.util.Collection) Copyright © 2022. All rights reserved.