Class SecurityGroupRuleDescription
- java.lang.Object
-
- software.amazon.awssdk.services.fms.model.SecurityGroupRuleDescription
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SecurityGroupRuleDescription.Builder,SecurityGroupRuleDescription>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSecurityGroupRuleDescription.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecurityGroupRuleDescription.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)LongfromPort()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)inthashCode()Stringipv4Range()The IPv4 ranges for the security group rule.Stringipv6Range()The IPv6 ranges for the security group rule.StringprefixListId()The ID of the prefix list for the security group rule.Stringprotocol()The IP protocol name (tcp,udp,icmp,icmpv6) or number.List<SdkField<?>>sdkFields()static Class<? extends SecurityGroupRuleDescription.Builder>serializableBuilderClass()SecurityGroupRuleDescription.BuildertoBuilder()LongtoPort()The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
ipv4Range
public final String ipv4Range()
The IPv4 ranges for the security group rule.
- Returns:
- The IPv4 ranges for the security group rule.
-
ipv6Range
public final String ipv6Range()
The IPv6 ranges for the security group rule.
- Returns:
- The IPv6 ranges for the security group rule.
-
prefixListId
public final String prefixListId()
The ID of the prefix list for the security group rule.
- Returns:
- The ID of the prefix list for the security group rule.
-
protocol
public final String protocol()
The IP protocol name (
tcp,udp,icmp,icmpv6) or number.- Returns:
- The IP protocol name (
tcp,udp,icmp,icmpv6) or number.
-
fromPort
public final Long fromPort()
The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of
-1indicates all ICMP/ICMPv6 types.- Returns:
- The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of
-1indicates all ICMP/ICMPv6 types.
-
toPort
public final Long toPort()
The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of
-1indicates all ICMP/ICMPv6 codes.- Returns:
- The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of
-1indicates all ICMP/ICMPv6 codes.
-
toBuilder
public SecurityGroupRuleDescription.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SecurityGroupRuleDescription.Builder,SecurityGroupRuleDescription>
-
builder
public static SecurityGroupRuleDescription.Builder builder()
-
serializableBuilderClass
public static Class<? extends SecurityGroupRuleDescription.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-