|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.PortRange
public class PortRange
Describes a range of ports.
Constructor Summary | |
---|---|
PortRange()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Integer |
getFrom()
The first port in the range. |
java.lang.Integer |
getTo()
The last port in the range. |
int |
hashCode()
|
void |
setFrom(java.lang.Integer from)
The first port in the range. |
void |
setTo(java.lang.Integer to)
The last port in the range. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
PortRange |
withFrom(java.lang.Integer from)
The first port in the range. |
PortRange |
withTo(java.lang.Integer to)
The last port in the range. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PortRange()
Method Detail |
---|
public java.lang.Integer getFrom()
public void setFrom(java.lang.Integer from)
from
- The first port in the range.public PortRange withFrom(java.lang.Integer from)
Returns a reference to this object so that method calls can be chained together.
from
- The first port in the range.
public java.lang.Integer getTo()
public void setTo(java.lang.Integer to)
to
- The last port in the range.public PortRange withTo(java.lang.Integer to)
Returns a reference to this object so that method calls can be chained together.
to
- The last port in the range.
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 |