@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PortRange extends Object implements Serializable, Cloneable, StructuredPojo
A range of ports.
Constructor and Description |
---|
PortRange() |
Modifier and Type | Method and Description |
---|---|
PortRange |
clone() |
boolean |
equals(Object obj) |
Integer |
getBegin()
The first port in the port range.
|
Integer |
getEnd()
The last port in the port range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBegin(Integer begin)
The first port in the port range.
|
void |
setEnd(Integer end)
The last port in the port range.
|
String |
toString()
Returns a string representation of this object.
|
PortRange |
withBegin(Integer begin)
The first port in the port range.
|
PortRange |
withEnd(Integer end)
The last port in the port range.
|
public void setBegin(Integer begin)
The first port in the port range.
begin
- The first port in the port range.public Integer getBegin()
The first port in the port range.
public PortRange withBegin(Integer begin)
The first port in the port range.
begin
- The first port in the port range.public void setEnd(Integer end)
The last port in the port range.
end
- The last port in the port range.public Integer getEnd()
The last port in the port range.
public PortRange withEnd(Integer end)
The last port in the port range.
end
- The last port in the port range.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.