@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PortRange extends Object implements Serializable, Cloneable, StructuredPojo
A complex type for a range of ports for a listener.
| Constructor and Description |
|---|
PortRange() |
| Modifier and Type | Method and Description |
|---|---|
PortRange |
clone() |
boolean |
equals(Object obj) |
Integer |
getFromPort()
The first port in the range of ports, inclusive.
|
Integer |
getToPort()
The last port in the range of ports, inclusive.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setFromPort(Integer fromPort)
The first port in the range of ports, inclusive.
|
void |
setToPort(Integer toPort)
The last port in the range of ports, inclusive.
|
String |
toString()
Returns a string representation of this object.
|
PortRange |
withFromPort(Integer fromPort)
The first port in the range of ports, inclusive.
|
PortRange |
withToPort(Integer toPort)
The last port in the range of ports, inclusive.
|
public void setFromPort(Integer fromPort)
The first port in the range of ports, inclusive.
fromPort - The first port in the range of ports, inclusive.public Integer getFromPort()
The first port in the range of ports, inclusive.
public PortRange withFromPort(Integer fromPort)
The first port in the range of ports, inclusive.
fromPort - The first port in the range of ports, inclusive.public void setToPort(Integer toPort)
The last port in the range of ports, inclusive.
toPort - The last port in the range of ports, inclusive.public Integer getToPort()
The last port in the range of ports, inclusive.
public PortRange withToPort(Integer toPort)
The last port in the range of ports, inclusive.
toPort - The last port in the range of ports, inclusive.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.