public static interface IpPermission.Builder extends SdkPojo, CopyableBuilder<IpPermission.Builder,IpPermission>
| Modifier and Type | Method and Description |
|---|---|
IpPermission.Builder |
fromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range.
|
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)
The IPv6 ranges.
|
IpPermission.Builder |
ipv6Ranges(Consumer<Ipv6Range.Builder>... ipv6Ranges)
The IPv6 ranges.
|
IpPermission.Builder |
ipv6Ranges(Ipv6Range... ipv6Ranges)
The IPv6 ranges.
|
IpPermission.Builder |
prefixListIds(Collection<PrefixListId> prefixListIds)
The prefix list IDs.
|
IpPermission.Builder |
prefixListIds(Consumer<PrefixListId.Builder>... prefixListIds)
The prefix list IDs.
|
IpPermission.Builder |
prefixListIds(PrefixListId... prefixListIds)
The prefix list IDs.
|
IpPermission.Builder |
toPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range.
|
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)
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 type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.
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 type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6
types, you must specify all ICMP/ICMPv6 codes.IpPermission.Builder ipProtocol(String ipProtocol)
The IP protocol name (tcp, udp, icmp, icmpv6) or number
(see Protocol Numbers).
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).
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)
The IPv6 ranges.
ipv6Ranges - The IPv6 ranges.IpPermission.Builder ipv6Ranges(Ipv6Range... ipv6Ranges)
The IPv6 ranges.
ipv6Ranges - The IPv6 ranges.IpPermission.Builder ipv6Ranges(Consumer<Ipv6Range.Builder>... ipv6Ranges)
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)
The prefix list IDs.
prefixListIds - The prefix list IDs.IpPermission.Builder prefixListIds(PrefixListId... prefixListIds)
The prefix list IDs.
prefixListIds - The prefix list IDs.IpPermission.Builder prefixListIds(Consumer<PrefixListId.Builder>... prefixListIds)
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)
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 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.
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 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types,
you must specify all ICMP/ICMPv6 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 © 2023. All rights reserved.