@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()
The start of the port range for the TCP and UDP protocols, or an ICMP type number.
|
String |
getIpProtocol()
|
List<String> |
getIpRanges()
The IP ranges.
|
List<String> |
getPrefixListIds()
The prefix list IDs for an AWS service.
|
Integer |
getToPort()
The end of the port range for the TCP and UDP protocols, or an ICMP type number.
|
List<UserIdGroupPair> |
getUserIdGroupPairs()
The security group pairs.
|
int |
hashCode() |
void |
setFromPort(Integer fromPort)
The start of the port range for the TCP and UDP protocols, or an ICMP type number.
|
void |
setIpProtocol(String ipProtocol)
|
void |
setIpRanges(Collection<String> ipRanges)
The IP ranges.
|
void |
setPrefixListIds(Collection<String> prefixListIds)
The prefix list IDs for an AWS service.
|
void |
setToPort(Integer toPort)
The end of the port range for the TCP and UDP protocols, or an ICMP type number.
|
void |
setUserIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs)
The security group pairs.
|
String |
toString()
Returns a string representation of this object.
|
StaleIpPermission |
withFromPort(Integer fromPort)
The start of the port range for the TCP and UDP protocols, or an ICMP type number.
|
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 for an AWS service.
|
StaleIpPermission |
withPrefixListIds(String... prefixListIds)
The prefix list IDs for an AWS service.
|
StaleIpPermission |
withToPort(Integer toPort)
The end of the port range for the TCP and UDP protocols, or an ICMP type number.
|
StaleIpPermission |
withUserIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs)
The security group pairs.
|
StaleIpPermission |
withUserIdGroupPairs(UserIdGroupPair... userIdGroupPairs)
The security group pairs.
|
public void setFromPort(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 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(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(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 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(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 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 for an AWS service. Not applicable for stale security group rules.
public void setPrefixListIds(Collection<String> prefixListIds)
The prefix list IDs for an AWS service. Not applicable for stale security group rules.
prefixListIds
- The prefix list IDs for an AWS service. Not applicable for stale security group rules.public StaleIpPermission withPrefixListIds(String... prefixListIds)
The 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
- The prefix list IDs for an AWS service. Not applicable for stale security group rules.public StaleIpPermission withPrefixListIds(Collection<String> prefixListIds)
The prefix list IDs for an AWS service. Not applicable for stale security group rules.
prefixListIds
- The prefix list IDs for an AWS service. Not applicable for stale security group rules.public void setToPort(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 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(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 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.