|
|||||||
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
Describes a security group rule.
Constructor Summary | |
---|---|
IpPermission()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Integer |
getFromPort()
The start of port range for the TCP and UDP protocols, or an ICMP type number. |
java.lang.String |
getIpProtocol()
The protocol. |
java.util.List<java.lang.String> |
getIpRanges()
One or more IP ranges. |
java.lang.Integer |
getToPort()
The end of port range for the TCP and UDP protocols, or an ICMP code. |
java.util.List<UserIdGroupPair> |
getUserIdGroupPairs()
One or more security group and AWS account ID pairs. |
int |
hashCode()
|
void |
setFromPort(java.lang.Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type number. |
void |
setIpProtocol(java.lang.String ipProtocol)
The protocol. |
void |
setIpRanges(java.util.Collection<java.lang.String> ipRanges)
One or more IP ranges. |
void |
setToPort(java.lang.Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP code. |
void |
setUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)
One or more security group and AWS account ID pairs. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
IpPermission |
withFromPort(java.lang.Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type number. |
IpPermission |
withIpProtocol(java.lang.String ipProtocol)
The protocol. |
IpPermission |
withIpRanges(java.util.Collection<java.lang.String> ipRanges)
One or more IP ranges. |
IpPermission |
withIpRanges(java.lang.String... ipRanges)
One or more IP ranges. |
IpPermission |
withToPort(java.lang.Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP code. |
IpPermission |
withUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)
One or more security group and AWS account ID pairs. |
IpPermission |
withUserIdGroupPairs(UserIdGroupPair... userIdGroupPairs)
One or more security group and AWS account ID pairs. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IpPermission()
Method Detail |
---|
public java.lang.String getIpProtocol()
When you call DescribeSecurityGroups, the
protocol value returned is the number. Exception: For TCP, UDP, and
ICMP, the value returned is the name (for example, tcp
,
udp
, or icmp
). For a list of protocol
numbers, see Protocol
Numbers.
When you call DescribeSecurityGroups, the
protocol value returned is the number. Exception: For TCP, UDP, and
ICMP, the value returned is the name (for example, tcp
,
udp
, or icmp
). For a list of protocol
numbers, see Protocol
Numbers.
public void setIpProtocol(java.lang.String ipProtocol)
When you call DescribeSecurityGroups, the
protocol value returned is the number. Exception: For TCP, UDP, and
ICMP, the value returned is the name (for example, tcp
,
udp
, or icmp
). For a list of protocol
numbers, see Protocol
Numbers.
ipProtocol
- The protocol. When you call DescribeSecurityGroups, the
protocol value returned is the number. Exception: For TCP, UDP, and
ICMP, the value returned is the name (for example, tcp
,
udp
, or icmp
). For a list of protocol
numbers, see Protocol
Numbers.
public IpPermission withIpProtocol(java.lang.String ipProtocol)
When you call DescribeSecurityGroups, the
protocol value returned is the number. Exception: For TCP, UDP, and
ICMP, the value returned is the name (for example, tcp
,
udp
, or icmp
). For a list of protocol
numbers, see Protocol
Numbers.
Returns a reference to this object so that method calls can be chained together.
ipProtocol
- The protocol. When you call DescribeSecurityGroups, the
protocol value returned is the number. Exception: For TCP, UDP, and
ICMP, the value returned is the name (for example, tcp
,
udp
, or icmp
). For a list of protocol
numbers, see Protocol
Numbers.
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 port range for the TCP and UDP protocols, or an ICMP type
number. A value of -1
indicates all ICMP types.public IpPermission 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 port range for the TCP and UDP protocols, or an ICMP type
number. A value of -1
indicates all ICMP types.
public java.lang.Integer getToPort()
-1
indicates all ICMP codes for the specified
ICMP type.
-1
indicates all ICMP codes for the specified
ICMP type.public void setToPort(java.lang.Integer toPort)
-1
indicates all ICMP codes for the specified
ICMP type.
toPort
- The end of port range for the TCP and UDP protocols, or an ICMP code.
A value of -1
indicates all ICMP codes for the specified
ICMP type.public IpPermission withToPort(java.lang.Integer toPort)
-1
indicates all ICMP codes for the specified
ICMP type.
Returns a reference to this object so that method calls can be chained together.
toPort
- The end of port range for the TCP and UDP protocols, or an ICMP code.
A value of -1
indicates all ICMP codes for the specified
ICMP type.
public java.util.List<UserIdGroupPair> getUserIdGroupPairs()
public void setUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)
userIdGroupPairs
- One or more security group and AWS account ID pairs.public IpPermission withUserIdGroupPairs(UserIdGroupPair... userIdGroupPairs)
Returns a reference to this object so that method calls can be chained together.
userIdGroupPairs
- One or more security group and AWS account ID pairs.
public IpPermission 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 and AWS account ID pairs.
public java.util.List<java.lang.String> getIpRanges()
public void setIpRanges(java.util.Collection<java.lang.String> ipRanges)
ipRanges
- One or more IP ranges.public IpPermission 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.
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
- One or more IP ranges.
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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |