@Generated(value="software.amazon.awssdk:codegen") public final class SecurityGroupRuleDescription extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SecurityGroupRuleDescription.Builder,SecurityGroupRuleDescription>
Describes a set of permissions for a security group rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SecurityGroupRuleDescription.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SecurityGroupRuleDescription.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Long |
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() |
String |
ipv4Range()
The IPv4 ranges for the security group rule.
|
String |
ipv6Range()
The IPv6 ranges for the security group rule.
|
String |
prefixListId()
The ID of the prefix list for the security group rule.
|
String |
protocol()
The IP protocol name (
tcp, udp, icmp, icmpv6) or number. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SecurityGroupRuleDescription.Builder> |
serializableBuilderClass() |
SecurityGroupRuleDescription.Builder |
toBuilder() |
Long |
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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String ipv4Range()
The IPv4 ranges for the security group rule.
public String ipv6Range()
The IPv6 ranges for the security group rule.
public String prefixListId()
The ID of the prefix list for the security group rule.
public String protocol()
The IP protocol name (tcp, udp, icmp, icmpv6) or number.
tcp, udp, icmp, icmpv6) or
number.public Long 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.
-1 indicates all ICMP/ICMPv6 types.public Long 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.
-1 indicates all ICMP/ICMPv6 codes.public SecurityGroupRuleDescription.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SecurityGroupRuleDescription.Builder,SecurityGroupRuleDescription>public static SecurityGroupRuleDescription.Builder builder()
public static Class<? extends SecurityGroupRuleDescription.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.