public class StaleIpPermission
extends java.lang.Object
implements java.io.Serializable
Describes a stale rule in a security group.
Constructor and Description |
---|
StaleIpPermission() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.Integer getFromPort()
-1
indicates all ICMP types.-1
indicates all ICMP types.public void setFromPort(java.lang.Integer fromPort)
-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 StaleIpPermission withFromPort(java.lang.Integer fromPort)
-1
indicates all ICMP types.
Returns a reference to this object so that method calls can be chained together.
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.String getIpProtocol()
tcp
, udp
, and
icmp
) or number (see Protocol
Numbers).public void setIpProtocol(java.lang.String ipProtocol)
ipProtocol
- The IP protocol name (for tcp
, udp
, and
icmp
) or number (see Protocol
Numbers).public StaleIpPermission withIpProtocol(java.lang.String ipProtocol)
tcp
, udp
, and
icmp
) or number (see Protocol
Numbers).
Returns a reference to this object so that method calls can be chained together.
ipProtocol
- The IP protocol name (for tcp
, udp
, and
icmp
) or number (see Protocol
Numbers).public java.util.List<java.lang.String> getIpRanges()
public void setIpRanges(java.util.Collection<java.lang.String> ipRanges)
ipRanges
- One or more IP ranges. Not applicable for stale security group rules.public StaleIpPermission withIpRanges(java.lang.String... ipRanges)
Returns a reference to this object so that method calls can be chained together.
ipRanges
- One or more IP ranges. Not applicable for stale security group rules.public StaleIpPermission withIpRanges(java.util.Collection<java.lang.String> ipRanges)
Returns a reference to this object so that method calls can be chained together.
ipRanges
- One or more IP ranges. Not applicable for stale security group rules.public java.util.List<java.lang.String> getPrefixListIds()
public void setPrefixListIds(java.util.Collection<java.lang.String> prefixListIds)
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)
Returns a reference to this object so that method calls can be chained together.
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)
Returns a reference to this object so that method calls can be chained together.
prefixListIds
- One or more prefix list IDs for an AWS service. Not applicable for
stale security group rules.public java.lang.Integer getToPort()
-1
indicates all ICMP types.-1
indicates all ICMP types.public void setToPort(java.lang.Integer toPort)
-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 StaleIpPermission withToPort(java.lang.Integer toPort)
-1
indicates all ICMP types.
Returns a reference to this object so that method calls can be chained together.
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()
public void setUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)
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)
Returns a reference to this object so that method calls can be chained together.
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)
Returns a reference to this object so that method calls can be chained together.
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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.