public class StaleIpPermission
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a stale rule in a security group.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
fromPort
The start of the port range for the TCP and UDP protocols, or an ICMP
type number.
|
private java.lang.String |
ipProtocol
|
private SdkInternalList<java.lang.String> |
ipRanges
One or more IP ranges.
|
private SdkInternalList<java.lang.String> |
prefixListIds
One or more prefix list IDs for an AWS service.
|
private java.lang.Integer |
toPort
The end of the port range for the TCP and UDP protocols, or an ICMP type
number.
|
private SdkInternalList<UserIdGroupPair> |
userIdGroupPairs
One or more security group pairs.
|
Constructor and Description |
---|
StaleIpPermission() |
Modifier and Type | Method and Description |
---|---|
StaleIpPermission |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getFromPort()
The start of the port range for the TCP and UDP protocols, or an ICMP
type number.
|
java.lang.String |
getIpProtocol()
|
java.util.List<java.lang.String> |
getIpRanges()
One or more IP ranges.
|
java.util.List<java.lang.String> |
getPrefixListIds()
One or more prefix list IDs for an AWS service.
|
java.lang.Integer |
getToPort()
The end of the port range for the TCP and UDP protocols, or an ICMP type
number.
|
java.util.List<UserIdGroupPair> |
getUserIdGroupPairs()
One or more security group pairs.
|
int |
hashCode() |
void |
setFromPort(java.lang.Integer fromPort)
The start of the port range for the TCP and UDP protocols, or an ICMP
type number.
|
void |
setIpProtocol(java.lang.String ipProtocol)
|
void |
setIpRanges(java.util.Collection<java.lang.String> ipRanges)
One or more IP ranges.
|
void |
setPrefixListIds(java.util.Collection<java.lang.String> prefixListIds)
One or more prefix list IDs for an AWS service.
|
void |
setToPort(java.lang.Integer toPort)
The end of the port range for the TCP and UDP protocols, or an ICMP type
number.
|
void |
setUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)
One or more security group pairs.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StaleIpPermission |
withFromPort(java.lang.Integer fromPort)
The start of the port range for the TCP and UDP protocols, or an ICMP
type number.
|
StaleIpPermission |
withIpProtocol(java.lang.String ipProtocol)
|
StaleIpPermission |
withIpRanges(java.util.Collection<java.lang.String> ipRanges)
One or more IP ranges.
|
StaleIpPermission |
withIpRanges(java.lang.String... ipRanges)
One or more IP ranges.
|
StaleIpPermission |
withPrefixListIds(java.util.Collection<java.lang.String> prefixListIds)
One or more prefix list IDs for an AWS service.
|
StaleIpPermission |
withPrefixListIds(java.lang.String... prefixListIds)
One or more prefix list IDs for an AWS service.
|
StaleIpPermission |
withToPort(java.lang.Integer toPort)
The end of the port range for the TCP and UDP protocols, or an ICMP type
number.
|
StaleIpPermission |
withUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)
One or more security group pairs.
|
StaleIpPermission |
withUserIdGroupPairs(UserIdGroupPair... userIdGroupPairs)
One or more security group pairs.
|
private java.lang.Integer fromPort
The start of the port range for the TCP and UDP protocols, or an ICMP
type number. A value of -1
indicates all ICMP types.
private java.lang.String ipProtocol
The IP protocol name (for tcp
, udp
, and
icmp
) or number (see Protocol Numbers).
private SdkInternalList<java.lang.String> ipRanges
One or more IP ranges. Not applicable for stale security group rules.
private SdkInternalList<java.lang.String> prefixListIds
One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.
private java.lang.Integer toPort
The end of the port range for the TCP and UDP protocols, or an ICMP type
number. A value of -1
indicates all ICMP types.
private SdkInternalList<UserIdGroupPair> userIdGroupPairs
One or more 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 setFromPort(java.lang.Integer fromPort)
The start of the port range for the TCP and UDP protocols, or an ICMP
type number. A value of -1
indicates all ICMP types.
fromPort
- The start of the port range for the TCP and UDP protocols, or an
ICMP type number. A value of -1
indicates all ICMP
types.public java.lang.Integer getFromPort()
The start of the port range for the TCP and UDP protocols, or an ICMP
type number. A value of -1
indicates all ICMP types.
-1
indicates all ICMP
types.public StaleIpPermission withFromPort(java.lang.Integer fromPort)
The start of the port range for the TCP and UDP protocols, or an ICMP
type number. A value of -1
indicates all ICMP types.
fromPort
- The start of the port range for the TCP and UDP protocols, or an
ICMP type number. A value of -1
indicates all ICMP
types.public void setIpProtocol(java.lang.String ipProtocol)
The IP protocol name (for tcp
, udp
, and
icmp
) or number (see Protocol Numbers).
ipProtocol
- The IP protocol name (for tcp
, udp
, and
icmp
) or number (see Protocol Numbers).public java.lang.String getIpProtocol()
The IP protocol name (for tcp
, udp
, and
icmp
) or number (see Protocol Numbers).
tcp
, udp
, and
icmp
) or number (see Protocol Numbers).public StaleIpPermission withIpProtocol(java.lang.String ipProtocol)
The IP protocol name (for tcp
, udp
, and
icmp
) or number (see Protocol Numbers).
ipProtocol
- The IP protocol name (for tcp
, udp
, and
icmp
) or number (see Protocol Numbers).public java.util.List<java.lang.String> getIpRanges()
One or more IP ranges. Not applicable for stale security group rules.
public void setIpRanges(java.util.Collection<java.lang.String> ipRanges)
One or more IP ranges. Not applicable for stale security group rules.
ipRanges
- One or more IP ranges. Not applicable for stale security group
rules.public StaleIpPermission withIpRanges(java.lang.String... ipRanges)
One or more 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
- One or more IP ranges. Not applicable for stale security group
rules.public StaleIpPermission withIpRanges(java.util.Collection<java.lang.String> ipRanges)
One or more IP ranges. Not applicable for stale security group rules.
ipRanges
- One or more IP ranges. Not applicable for stale security group
rules.public java.util.List<java.lang.String> getPrefixListIds()
One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.
public void setPrefixListIds(java.util.Collection<java.lang.String> prefixListIds)
One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.
prefixListIds
- One or more prefix list IDs for an AWS service. Not applicable for
stale security group rules.public StaleIpPermission withPrefixListIds(java.lang.String... prefixListIds)
One or more prefix list IDs for an AWS service. 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
- One or more prefix list IDs for an AWS service. Not applicable for
stale security group rules.public StaleIpPermission withPrefixListIds(java.util.Collection<java.lang.String> prefixListIds)
One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.
prefixListIds
- One or more prefix list IDs for an AWS service. Not applicable for
stale security group rules.public void setToPort(java.lang.Integer toPort)
The end of the port range for the TCP and UDP protocols, or an ICMP type
number. A value of -1
indicates all ICMP types.
toPort
- The end of the port range for the TCP and UDP protocols, or an
ICMP type number. A value of -1
indicates all ICMP
types.public java.lang.Integer getToPort()
The end of the port range for the TCP and UDP protocols, or an ICMP type
number. A value of -1
indicates all ICMP types.
-1
indicates all ICMP
types.public StaleIpPermission withToPort(java.lang.Integer toPort)
The end of the port range for the TCP and UDP protocols, or an ICMP type
number. A value of -1
indicates all ICMP types.
toPort
- The end of the port range for the TCP and UDP protocols, or an
ICMP type number. A value of -1
indicates all ICMP
types.public java.util.List<UserIdGroupPair> getUserIdGroupPairs()
One or more 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(java.util.Collection<UserIdGroupPair> userIdGroupPairs)
One or more security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
userIdGroupPairs
- One or more 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)
One or more 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
- One or more 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(java.util.Collection<UserIdGroupPair> userIdGroupPairs)
One or more security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
userIdGroupPairs
- One or more security group pairs. Returns the ID of the referenced
security group and VPC, and the ID and status of the VPC peering
connection.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public StaleIpPermission clone()
clone
in class java.lang.Object