Class StaleIpPermission
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a stale rule in a security group.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The start of the port range for the TCP and UDP protocols, or an ICMP type number.One or more IP ranges.One or more prefix list IDs for an AWS service.The end of the port range for the TCP and UDP protocols, or an ICMP type number.One or more 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) One or more IP ranges.void
setPrefixListIds
(Collection<String> prefixListIds) One or more prefix list IDs for an AWS service.void
The end of the port range for the TCP and UDP protocols, or an ICMP type number.void
setUserIdGroupPairs
(Collection<UserIdGroupPair> userIdGroupPairs) One or more security group pairs.toString()
Returns a string representation of this object; useful for testing and debugging.withFromPort
(Integer fromPort) The start of the port range for the TCP and UDP protocols, or an ICMP type number.withIpProtocol
(String ipProtocol) withIpRanges
(String... ipRanges) One or more IP ranges.withIpRanges
(Collection<String> ipRanges) One or more IP ranges.withPrefixListIds
(String... prefixListIds) One or more prefix list IDs for an AWS service.withPrefixListIds
(Collection<String> prefixListIds) One or more prefix list IDs for an AWS service.withToPort
(Integer toPort) The end of the port range for the TCP and UDP protocols, or an ICMP type number.withUserIdGroupPairs
(UserIdGroupPair... userIdGroupPairs) One or more security group pairs.withUserIdGroupPairs
(Collection<UserIdGroupPair> userIdGroupPairs) One or more security group pairs.
-
Constructor Details
-
StaleIpPermission
public StaleIpPermission()
-
-
Method Details
-
setFromPort
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.- Parameters:
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.
-
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.- Returns:
- 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.
-
withFromPort
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIpProtocol
The IP protocol name (for
tcp
,udp
, andicmp
) or number (see Protocol Numbers).- Parameters:
ipProtocol
- The IP protocol name (fortcp
,udp
, andicmp
) or number (see Protocol Numbers).
-
getIpProtocol
The IP protocol name (for
tcp
,udp
, andicmp
) or number (see Protocol Numbers).- Returns:
- The IP protocol name (for
tcp
,udp
, andicmp
) or number (see Protocol Numbers).
-
withIpProtocol
The IP protocol name (for
tcp
,udp
, andicmp
) or number (see Protocol Numbers).- Parameters:
ipProtocol
- The IP protocol name (fortcp
,udp
, andicmp
) or number (see Protocol Numbers).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getIpRanges
One or more IP ranges. Not applicable for stale security group rules.
- Returns:
- One or more IP ranges. Not applicable for stale security group rules.
-
setIpRanges
One or more IP ranges. Not applicable for stale security group rules.
- Parameters:
ipRanges
- One or more IP ranges. Not applicable for stale security group rules.
-
withIpRanges
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)
orwithIpRanges(java.util.Collection)
if you want to override the existing values.- Parameters:
ipRanges
- One or more IP ranges. Not applicable for stale security group rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withIpRanges
One or more IP ranges. Not applicable for stale security group rules.
- Parameters:
ipRanges
- One or more IP ranges. Not applicable for stale security group rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPrefixListIds
One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.
- Returns:
- One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.
-
setPrefixListIds
One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.
- Parameters:
prefixListIds
- One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.
-
withPrefixListIds
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)
orwithPrefixListIds(java.util.Collection)
if you want to override the existing values.- Parameters:
prefixListIds
- One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPrefixListIds
One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.
- Parameters:
prefixListIds
- One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setToPort
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.- Parameters:
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.
-
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.- Returns:
- 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.
-
withToPort
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Returns:
- 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.
-
setUserIdGroupPairs
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.
- Parameters:
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.
-
withUserIdGroupPairs
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)
orwithUserIdGroupPairs(java.util.Collection)
if you want to override the existing values.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withUserIdGroupPairs
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-