@Generated(value="software.amazon.awssdk:codegen") public final class SecurityGroupRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SecurityGroupRule.Builder,SecurityGroupRule>
Describes a security group rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SecurityGroupRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SecurityGroupRule.Builder |
builder() |
String |
cidrIpv4()
The IPv4 CIDR range.
|
String |
cidrIpv6()
The IPv6 CIDR range.
|
String |
description()
The security group rule description.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Integer |
fromPort()
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
groupId()
The ID of the security group.
|
String |
groupOwnerId()
The ID of the account that owns the security group.
|
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags 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()
|
Boolean |
isEgress()
Indicates whether the security group rule is an outbound rule.
|
String |
prefixListId()
The ID of the prefix list.
|
ReferencedSecurityGroup |
referencedGroupInfo()
Describes the security group that is referenced in the rule.
|
List<SdkField<?>> |
sdkFields() |
String |
securityGroupRuleId()
The ID of the security group rule.
|
static Class<? extends SecurityGroupRule.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
The tags applied to the security group rule.
|
SecurityGroupRule.Builder |
toBuilder() |
Integer |
toPort()
The end of 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 final String securityGroupRuleId()
The ID of the security group rule.
public final String groupId()
The ID of the security group.
public final String groupOwnerId()
The ID of the account that owns the security group.
public final Boolean isEgress()
Indicates whether the security group rule is an outbound rule.
public final String ipProtocol()
The IP protocol name (tcp, udp, icmp, icmpv6) or number (see
Protocol Numbers).
Use -1 to specify all protocols.
tcp, udp, icmp, icmpv6) or
number (see Protocol
Numbers).
Use -1 to specify all protocols.
public final Integer fromPort()
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type. 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 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.
-1
indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.public final String cidrIpv4()
The IPv4 CIDR range.
public final String cidrIpv6()
The IPv6 CIDR range.
public final String prefixListId()
The ID of the prefix list.
public final ReferencedSecurityGroup referencedGroupInfo()
Describes the security group that is referenced in the rule.
public final String description()
The security group rule description.
public final boolean hasTags()
public final List<Tag> tags()
The tags applied to the security group rule.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public SecurityGroupRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SecurityGroupRule.Builder,SecurityGroupRule>public static SecurityGroupRule.Builder builder()
public static Class<? extends SecurityGroupRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.