@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PortInfo extends Object implements Serializable, Cloneable, StructuredPojo
Describes information about the ports on your virtual private server (or instance).
Constructor and Description |
---|
PortInfo() |
Modifier and Type | Method and Description |
---|---|
PortInfo |
clone() |
boolean |
equals(Object obj) |
Integer |
getFromPort()
The first port in the range.
|
String |
getProtocol()
The protocol.
|
Integer |
getToPort()
The last port in the range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFromPort(Integer fromPort)
The first port in the range.
|
void |
setProtocol(NetworkProtocol protocol)
The protocol.
|
void |
setProtocol(String protocol)
The protocol.
|
void |
setToPort(Integer toPort)
The last port in the range.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PortInfo |
withFromPort(Integer fromPort)
The first port in the range.
|
PortInfo |
withProtocol(NetworkProtocol protocol)
The protocol.
|
PortInfo |
withProtocol(String protocol)
The protocol.
|
PortInfo |
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 PortInfo 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 PortInfo withToPort(Integer toPort)
The last port in the range.
toPort
- The last port in the range.public void setProtocol(String protocol)
The protocol.
protocol
- The protocol.NetworkProtocol
public String getProtocol()
The protocol.
NetworkProtocol
public PortInfo withProtocol(String protocol)
The protocol.
protocol
- The protocol.NetworkProtocol
public void setProtocol(NetworkProtocol protocol)
The protocol.
protocol
- The protocol.NetworkProtocol
public PortInfo withProtocol(NetworkProtocol protocol)
The protocol.
protocol
- The protocol.NetworkProtocol
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.