@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RequestFilterPortRange extends Object implements Serializable, Cloneable
Describes a port range.
Constructor and Description |
---|
RequestFilterPortRange() |
Modifier and Type | Method and Description |
---|---|
RequestFilterPortRange |
clone() |
boolean |
equals(Object obj) |
Integer |
getFromPort()
The first port in the range.
|
Integer |
getToPort()
The last port in the range.
|
int |
hashCode() |
void |
setFromPort(Integer fromPort)
The first port in the range.
|
void |
setToPort(Integer toPort)
The last port in the range.
|
String |
toString()
Returns a string representation of this object.
|
RequestFilterPortRange |
withFromPort(Integer fromPort)
The first port in the range.
|
RequestFilterPortRange |
withToPort(Integer toPort)
The last port in the range.
|
public void setFromPort(Integer fromPort)
The first port in the range.
fromPort
- The first port in the range.public Integer getFromPort()
The first port in the range.
public RequestFilterPortRange withFromPort(Integer fromPort)
The first port in the range.
fromPort
- The first port in the range.public void setToPort(Integer toPort)
The last port in the range.
toPort
- The last port in the range.public Integer getToPort()
The last port in the range.
public RequestFilterPortRange withToPort(Integer toPort)
The last port in the range.
toPort
- The last port in the range.public String toString()
toString
in class Object
Object.toString()
public RequestFilterPortRange clone()