@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PortRangeFromTo extends Object implements Serializable, Cloneable, StructuredPojo
A range of ports.
| Constructor and Description |
|---|
PortRangeFromTo() |
| Modifier and Type | Method and Description |
|---|---|
PortRangeFromTo |
clone() |
boolean |
equals(Object obj) |
Integer |
getFrom()
The first port in the port range.
|
Integer |
getTo()
The last port in the port range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setFrom(Integer from)
The first port in the port range.
|
void |
setTo(Integer to)
The last port in the port range.
|
String |
toString()
Returns a string representation of this object.
|
PortRangeFromTo |
withFrom(Integer from)
The first port in the port range.
|
PortRangeFromTo |
withTo(Integer to)
The last port in the port range.
|
public void setFrom(Integer from)
The first port in the port range.
from - The first port in the port range.public Integer getFrom()
The first port in the port range.
public PortRangeFromTo withFrom(Integer from)
The first port in the port range.
from - The first port in the port range.public void setTo(Integer to)
The last port in the port range.
to - The last port in the port range.public Integer getTo()
The last port in the port range.
public PortRangeFromTo withTo(Integer to)
The last port in the port range.
to - The last port in the port range.public String toString()
toString in class ObjectObject.toString()public PortRangeFromTo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.