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 that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #ipRanges(List) .ipRanges - a consumer that will call methods on List.Builder #ipRanges(List) 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 that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #ipv6Ranges(List) .ipv6Ranges - a consumer that will call methods on List.Builder #ipv6Ranges(List) 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 that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #prefixListIds(List) .prefixListIds - a consumer that will call methods on List.Builder #prefixListIds(List) 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 that creates an instance of theList.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #userIdGroupPairs(List) .userIdGroupPairs - a consumer that will call methods on List.Builder #userIdGroupPairs(List) Copyright © 2021. All rights reserved.