@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SecurityGroupRuleDescription extends Object implements Serializable, Cloneable, StructuredPojo
Describes a set of permissions for a security group rule.
Constructor and Description |
---|
SecurityGroupRuleDescription() |
Modifier and Type | Method and Description |
---|---|
SecurityGroupRuleDescription |
clone() |
boolean |
equals(Object obj) |
Long |
getFromPort()
The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number.
|
String |
getIPV4Range()
The IPv4 ranges for the security group rule.
|
String |
getIPV6Range()
The IPv6 ranges for the security group rule.
|
String |
getPrefixListId()
The ID of the prefix list for the security group rule.
|
String |
getProtocol()
The IP protocol name (
tcp , udp , icmp , icmpv6 ) or number. |
Long |
getToPort()
The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFromPort(Long fromPort)
The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number.
|
void |
setIPV4Range(String iPV4Range)
The IPv4 ranges for the security group rule.
|
void |
setIPV6Range(String iPV6Range)
The IPv6 ranges for the security group rule.
|
void |
setPrefixListId(String prefixListId)
The ID of the prefix list for the security group rule.
|
void |
setProtocol(String protocol)
The IP protocol name (
tcp , udp , icmp , icmpv6 ) or number. |
void |
setToPort(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.
|
SecurityGroupRuleDescription |
withFromPort(Long fromPort)
The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number.
|
SecurityGroupRuleDescription |
withIPV4Range(String iPV4Range)
The IPv4 ranges for the security group rule.
|
SecurityGroupRuleDescription |
withIPV6Range(String iPV6Range)
The IPv6 ranges for the security group rule.
|
SecurityGroupRuleDescription |
withPrefixListId(String prefixListId)
The ID of the prefix list for the security group rule.
|
SecurityGroupRuleDescription |
withProtocol(String protocol)
The IP protocol name (
tcp , udp , icmp , icmpv6 ) or number. |
SecurityGroupRuleDescription |
withToPort(Long toPort)
The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
|
public void setIPV4Range(String iPV4Range)
The IPv4 ranges for the security group rule.
iPV4Range
- The IPv4 ranges for the security group rule.public String getIPV4Range()
The IPv4 ranges for the security group rule.
public SecurityGroupRuleDescription withIPV4Range(String iPV4Range)
The IPv4 ranges for the security group rule.
iPV4Range
- The IPv4 ranges for the security group rule.public void setIPV6Range(String iPV6Range)
The IPv6 ranges for the security group rule.
iPV6Range
- The IPv6 ranges for the security group rule.public String getIPV6Range()
The IPv6 ranges for the security group rule.
public SecurityGroupRuleDescription withIPV6Range(String iPV6Range)
The IPv6 ranges for the security group rule.
iPV6Range
- The IPv6 ranges for the security group rule.public void setPrefixListId(String prefixListId)
The ID of the prefix list for the security group rule.
prefixListId
- The ID of the prefix list for the security group rule.public String getPrefixListId()
The ID of the prefix list for the security group rule.
public SecurityGroupRuleDescription withPrefixListId(String prefixListId)
The ID of the prefix list for the security group rule.
prefixListId
- The ID of the prefix list for the security group rule.public void setProtocol(String protocol)
The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or number.
protocol
- The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or
number.public String getProtocol()
The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or number.
tcp
, udp
, icmp
, icmpv6
) or
number.public SecurityGroupRuleDescription withProtocol(String protocol)
The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or number.
protocol
- The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or
number.public void setFromPort(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.
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.public Long getFromPort()
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 SecurityGroupRuleDescription withFromPort(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.
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.public void setToPort(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.
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.public Long getToPort()
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 withToPort(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.
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.public String toString()
toString
in class Object
Object.toString()
public SecurityGroupRuleDescription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.