@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FilterPortRange extends Object implements Serializable, Cloneable
Describes a port range.
| Constructor and Description |
|---|
FilterPortRange() |
| Modifier and Type | Method and Description |
|---|---|
FilterPortRange |
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.
|
FilterPortRange |
withFromPort(Integer fromPort)
The first port in the range.
|
FilterPortRange |
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 FilterPortRange 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 FilterPortRange withToPort(Integer toPort)
The last port in the range.
toPort - The last port in the range.public String toString()
toString in class ObjectObject.toString()public FilterPortRange clone()
Copyright © 2024. All rights reserved.