|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.IpPermission
public class IpPermission
An IP permission describing allowed incoming IP traffic to an Amazon EC2 security group.
Constructor Summary | |
---|---|
IpPermission()
|
Method Summary | |
---|---|
Integer |
getFromPort()
Start of port range for the TCP and UDP protocols, or an ICMP type number. |
String |
getIpProtocol()
The IP protocol of this permission. |
List<String> |
getIpRanges()
The list of CIDR IP ranges included in this permission. |
Integer |
getToPort()
End of port range for the TCP and UDP protocols, or an ICMP code. |
List<UserIdGroupPair> |
getUserIdGroupPairs()
The list of AWS user IDs and groups included in this permission. |
void |
setFromPort(Integer fromPort)
Start of port range for the TCP and UDP protocols, or an ICMP type number. |
void |
setIpProtocol(String ipProtocol)
The IP protocol of this permission. |
void |
setIpRanges(Collection<String> ipRanges)
The list of CIDR IP ranges included in this permission. |
void |
setToPort(Integer toPort)
End of port range for the TCP and UDP protocols, or an ICMP code. |
void |
setUserIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs)
The list of AWS user IDs and groups included in this permission. |
String |
toString()
|
IpPermission |
withFromPort(Integer fromPort)
Start of port range for the TCP and UDP protocols, or an ICMP type number. |
IpPermission |
withIpProtocol(String ipProtocol)
The IP protocol of this permission. |
IpPermission |
withIpRanges(Collection<String> ipRanges)
The list of CIDR IP ranges included in this permission. |
IpPermission |
withIpRanges(String... ipRanges)
The list of CIDR IP ranges included in this permission. |
IpPermission |
withToPort(Integer toPort)
End of port range for the TCP and UDP protocols, or an ICMP code. |
IpPermission |
withUserIdGroupPairs(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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IpPermission()
Method Detail |
---|
public String getIpProtocol()
Valid protocol values: tpc, upd, icmp
Valid protocol values: tpc, upd, icmp
public void setIpProtocol(String ipProtocol)
Valid protocol values: tpc, upd, icmp
ipProtocol
- The IP protocol of this permission. Valid protocol values: tpc, upd, icmp
public IpPermission withIpProtocol(String ipProtocol)
Valid protocol values: tpc, upd, 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: tpc, upd, icmp
public Integer getFromPort()
public void setFromPort(Integer fromPort)
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(Integer fromPort)
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 Integer getToPort()
public void setToPort(Integer toPort)
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(Integer toPort)
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 List<UserIdGroupPair> getUserIdGroupPairs()
public void setUserIdGroupPairs(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(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 List<String> getIpRanges()
public void setIpRanges(Collection<String> ipRanges)
ipRanges
- The list of CIDR IP ranges included in this permission.public IpPermission withIpRanges(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(Collection<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 String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |