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