public class IpPermission
extends java.lang.Object
implements java.io.Serializable
An IP permission describing allowed incoming IP traffic to an Amazon EC2 security group.
| コンストラクタと説明 |
|---|
IpPermission() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getFromPort()
Start of port range for the TCP and UDP protocols, or an ICMP type
number.
|
java.lang.String |
getIpProtocol()
The IP protocol of this permission.
|
java.util.List<java.lang.String> |
getIpRanges()
The list of CIDR IP ranges included in this permission.
|
java.lang.Integer |
getToPort()
End of port range for the TCP and UDP protocols, or an ICMP code.
|
java.util.List<UserIdGroupPair> |
getUserIdGroupPairs()
The list of AWS user IDs and groups included in this permission.
|
int |
hashCode() |
void |
setFromPort(java.lang.Integer fromPort)
Start of port range for the TCP and UDP protocols, or an ICMP type
number.
|
void |
setIpProtocol(java.lang.String ipProtocol)
The IP protocol of this permission.
|
void |
setIpRanges(java.util.Collection<java.lang.String> ipRanges)
The list of CIDR IP ranges included in this permission.
|
void |
setToPort(java.lang.Integer toPort)
End of port range for the TCP and UDP protocols, or an ICMP code.
|
void |
setUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)
The list of AWS user IDs and groups included in this permission.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IpPermission |
withFromPort(java.lang.Integer fromPort)
Start of port range for the TCP and UDP protocols, or an ICMP type
number.
|
IpPermission |
withIpProtocol(java.lang.String ipProtocol)
The IP protocol of this permission.
|
IpPermission |
withIpRanges(java.util.Collection<java.lang.String> ipRanges)
The list of CIDR IP ranges included in this permission.
|
IpPermission |
withIpRanges(java.lang.String... ipRanges)
The list of CIDR IP ranges included in this permission.
|
IpPermission |
withToPort(java.lang.Integer toPort)
End of port range for the TCP and UDP protocols, or an ICMP code.
|
IpPermission |
withUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)
The list of AWS user IDs and groups included in this permission.
|
IpPermission |
withUserIdGroupPairs(UserIdGroupPair... userIdGroupPairs)
The list of AWS user IDs and groups included in this permission.
|
public java.lang.String getIpProtocol()
Valid protocol values:
tcp, udp, icmp
Valid protocol values:
tcp, udp, icmp
public void setIpProtocol(java.lang.String ipProtocol)
Valid protocol values:
tcp, udp, icmp
ipProtocol - The IP protocol of this permission. Valid protocol values:
tcp, udp, icmp
public IpPermission withIpProtocol(java.lang.String ipProtocol)
Valid protocol values:
tcp, udp, icmp
Returns a reference to this object so that method calls can be chained together.
ipProtocol - The IP protocol of this permission. Valid protocol values:
tcp, udp, icmp
public java.lang.Integer getFromPort()
-1 indicates a wildcard
(i.e., any ICMP type number).-1 indicates a wildcard
(i.e., any ICMP type number).public void setFromPort(java.lang.Integer fromPort)
-1 indicates a wildcard
(i.e., any ICMP type number).fromPort - Start of port range for the TCP and UDP protocols, or an ICMP type
number. An ICMP type number of -1 indicates a wildcard
(i.e., any ICMP type number).public IpPermission withFromPort(java.lang.Integer fromPort)
-1 indicates a wildcard
(i.e., any ICMP type number).
Returns a reference to this object so that method calls can be chained together.
fromPort - Start of port range for the TCP and UDP protocols, or an ICMP type
number. An ICMP type number of -1 indicates a wildcard
(i.e., any ICMP type number).public java.lang.Integer getToPort()
-1 indicates a wildcard (i.e., any ICMP
code).-1 indicates a wildcard (i.e., any ICMP
code).public void setToPort(java.lang.Integer toPort)
-1 indicates a wildcard (i.e., any ICMP
code).toPort - End of port range for the TCP and UDP protocols, or an ICMP code. An
ICMP code of -1 indicates a wildcard (i.e., any ICMP
code).public IpPermission withToPort(java.lang.Integer toPort)
-1 indicates a wildcard (i.e., any ICMP
code).
Returns a reference to this object so that method calls can be chained together.
toPort - End of port range for the TCP and UDP protocols, or an ICMP code. An
ICMP code of -1 indicates a wildcard (i.e., any ICMP
code).public java.util.List<UserIdGroupPair> getUserIdGroupPairs()
public void setUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)
userIdGroupPairs - The list of AWS user IDs and groups included in this permission.public IpPermission withUserIdGroupPairs(UserIdGroupPair... userIdGroupPairs)
Returns a reference to this object so that method calls can be chained together.
userIdGroupPairs - The list of AWS user IDs and groups included in this permission.public IpPermission withUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)
Returns a reference to this object so that method calls can be chained together.
userIdGroupPairs - The list of AWS user IDs and groups included in this permission.public java.util.List<java.lang.String> getIpRanges()
public void setIpRanges(java.util.Collection<java.lang.String> ipRanges)
ipRanges - The list of CIDR IP ranges included in this permission.public IpPermission withIpRanges(java.lang.String... ipRanges)
Returns a reference to this object so that method calls can be chained together.
ipRanges - The list of CIDR IP ranges included in this permission.public IpPermission withIpRanges(java.util.Collection<java.lang.String> ipRanges)
Returns a reference to this object so that method calls can be chained together.
ipRanges - The list of CIDR IP ranges included in this permission.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object