@Generated(value="software.amazon.awssdk:codegen") public final class AwsEc2SecurityGroupIpPermission extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEc2SecurityGroupIpPermission.Builder,AwsEc2SecurityGroupIpPermission>
An IP permission for an EC2 security group.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEc2SecurityGroupIpPermission.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AwsEc2SecurityGroupIpPermission.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Integer |
fromPort()
The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasIpRanges()
Returns true if the IpRanges property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasIpv6Ranges()
Returns true if the Ipv6Ranges property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasPrefixListIds()
Returns true if the PrefixListIds property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasUserIdGroupPairs()
Returns true if the UserIdGroupPairs property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
String |
ipProtocol()
The IP protocol name (
tcp, udp, icmp, icmpv6) or number. |
List<AwsEc2SecurityGroupIpRange> |
ipRanges()
The IPv4 ranges.
|
List<AwsEc2SecurityGroupIpv6Range> |
ipv6Ranges()
The IPv6 ranges.
|
List<AwsEc2SecurityGroupPrefixListId> |
prefixListIds()
[VPC only] The prefix list IDs for an AWS service.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsEc2SecurityGroupIpPermission.Builder> |
serializableBuilderClass() |
AwsEc2SecurityGroupIpPermission.Builder |
toBuilder() |
Integer |
toPort()
The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
|
String |
toString()
Returns a string representation of this object.
|
List<AwsEc2SecurityGroupUserIdGroupPair> |
userIdGroupPairs()
The security group and AWS account ID pairs.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String ipProtocol()
The IP protocol name (tcp, udp, icmp, icmpv6) or number.
[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.
tcp, udp, icmp, icmpv6) or
number.
[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.
public final Integer fromPort()
The start of the 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.
A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.
public final Integer toPort()
The end of the 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.
A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.
public final boolean hasUserIdGroupPairs()
public final List<AwsEc2SecurityGroupUserIdGroupPair> userIdGroupPairs()
The security group and AWS account ID pairs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasUserIdGroupPairs() to see if a value was sent in this field.
public final boolean hasIpRanges()
public final List<AwsEc2SecurityGroupIpRange> ipRanges()
The IPv4 ranges.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasIpRanges() to see if a value was sent in this field.
public final boolean hasIpv6Ranges()
public final List<AwsEc2SecurityGroupIpv6Range> ipv6Ranges()
The IPv6 ranges.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasIpv6Ranges() to see if a value was sent in this field.
public final boolean hasPrefixListIds()
public final List<AwsEc2SecurityGroupPrefixListId> prefixListIds()
[VPC only] The prefix list IDs for an AWS service. With outbound rules, this is the AWS service to access through a VPC endpoint from instances associated with the security group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPrefixListIds() to see if a value was sent in this field.
public AwsEc2SecurityGroupIpPermission.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsEc2SecurityGroupIpPermission.Builder,AwsEc2SecurityGroupIpPermission>public static AwsEc2SecurityGroupIpPermission.Builder builder()
public static Class<? extends AwsEc2SecurityGroupIpPermission.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.