@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StaleIpPermission extends Object implements Serializable, Cloneable
Describes a stale rule in a security group.
Constructor and Description |
---|
StaleIpPermission() |
Modifier and Type | Method and Description |
---|---|
StaleIpPermission |
clone() |
boolean |
equals(Object obj) |
Integer |
getFromPort()
If the protocol is TCP or UDP, this is the start of the port range.
|
String |
getIpProtocol()
|
List<String> |
getIpRanges()
The IP ranges.
|
List<String> |
getPrefixListIds()
The prefix list IDs.
|
Integer |
getToPort()
If the protocol is TCP or UDP, this is the end of the port range.
|
List<UserIdGroupPair> |
getUserIdGroupPairs()
The security group pairs.
|
int |
hashCode() |
void |
setFromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range.
|
void |
setIpProtocol(String ipProtocol)
|
void |
setIpRanges(Collection<String> ipRanges)
The IP ranges.
|
void |
setPrefixListIds(Collection<String> prefixListIds)
The prefix list IDs.
|
void |
setToPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range.
|
void |
setUserIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs)
The security group pairs.
|
String |
toString()
Returns a string representation of this object.
|
StaleIpPermission |
withFromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range.
|
StaleIpPermission |
withIpProtocol(String ipProtocol)
|
StaleIpPermission |
withIpRanges(Collection<String> ipRanges)
The IP ranges.
|
StaleIpPermission |
withIpRanges(String... ipRanges)
The IP ranges.
|
StaleIpPermission |
withPrefixListIds(Collection<String> prefixListIds)
The prefix list IDs.
|
StaleIpPermission |
withPrefixListIds(String... prefixListIds)
The prefix list IDs.
|
StaleIpPermission |
withToPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range.
|
StaleIpPermission |
withUserIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs)
The security group pairs.
|
StaleIpPermission |
withUserIdGroupPairs(UserIdGroupPair... userIdGroupPairs)
The security group pairs.
|
public void setFromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP types).
fromPort
- If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6,
this is the ICMP type or -1 (all ICMP types).public Integer getFromPort()
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP types).
public StaleIpPermission withFromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP types).
fromPort
- If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6,
this is the ICMP type or -1 (all ICMP types).public void setIpProtocol(String ipProtocol)
The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or number (see
Protocol Numbers).
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or
number (see Protocol
Numbers).public String getIpProtocol()
The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or number (see
Protocol Numbers).
tcp
, udp
, icmp
, icmpv6
) or
number (see Protocol
Numbers).public StaleIpPermission withIpProtocol(String ipProtocol)
The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or number (see
Protocol Numbers).
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or
number (see Protocol
Numbers).public List<String> getIpRanges()
The IP ranges. Not applicable for stale security group rules.
public void setIpRanges(Collection<String> ipRanges)
The IP ranges. Not applicable for stale security group rules.
ipRanges
- The IP ranges. Not applicable for stale security group rules.public StaleIpPermission withIpRanges(String... ipRanges)
The IP ranges. Not applicable for stale security group rules.
NOTE: This method appends the values to the existing list (if any). Use
setIpRanges(java.util.Collection)
or withIpRanges(java.util.Collection)
if you want to override
the existing values.
ipRanges
- The IP ranges. Not applicable for stale security group rules.public StaleIpPermission withIpRanges(Collection<String> ipRanges)
The IP ranges. Not applicable for stale security group rules.
ipRanges
- The IP ranges. Not applicable for stale security group rules.public List<String> getPrefixListIds()
The prefix list IDs. Not applicable for stale security group rules.
public void setPrefixListIds(Collection<String> prefixListIds)
The prefix list IDs. Not applicable for stale security group rules.
prefixListIds
- The prefix list IDs. Not applicable for stale security group rules.public StaleIpPermission withPrefixListIds(String... prefixListIds)
The prefix list IDs. Not applicable for stale security group rules.
NOTE: This method appends the values to the existing list (if any). Use
setPrefixListIds(java.util.Collection)
or withPrefixListIds(java.util.Collection)
if you want
to override the existing values.
prefixListIds
- The prefix list IDs. Not applicable for stale security group rules.public StaleIpPermission withPrefixListIds(Collection<String> prefixListIds)
The prefix list IDs. Not applicable for stale security group rules.
prefixListIds
- The prefix list IDs. Not applicable for stale security group rules.public void setToPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes).
toPort
- If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this
is the ICMP code or -1 (all ICMP codes).public Integer getToPort()
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes).
public StaleIpPermission withToPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes).
toPort
- If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this
is the ICMP code or -1 (all ICMP codes).public List<UserIdGroupPair> getUserIdGroupPairs()
The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
public void setUserIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs)
The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
userIdGroupPairs
- The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status
of the VPC peering connection.public StaleIpPermission withUserIdGroupPairs(UserIdGroupPair... userIdGroupPairs)
The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
NOTE: This method appends the values to the existing list (if any). Use
setUserIdGroupPairs(java.util.Collection)
or withUserIdGroupPairs(java.util.Collection)
if you
want to override the existing values.
userIdGroupPairs
- The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status
of the VPC peering connection.public StaleIpPermission withUserIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs)
The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
userIdGroupPairs
- The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status
of the VPC peering connection.public String toString()
toString
in class Object
Object.toString()
public StaleIpPermission clone()