@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VirtualGatewayPortMapping extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents a port mapping.
| Constructor and Description |
|---|
VirtualGatewayPortMapping() |
| Modifier and Type | Method and Description |
|---|---|
VirtualGatewayPortMapping |
clone() |
boolean |
equals(Object obj) |
Integer |
getPort()
The port used for the port mapping.
|
String |
getProtocol()
The protocol used for the port mapping.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPort(Integer port)
The port used for the port mapping.
|
void |
setProtocol(String protocol)
The protocol used for the port mapping.
|
String |
toString()
Returns a string representation of this object.
|
VirtualGatewayPortMapping |
withPort(Integer port)
The port used for the port mapping.
|
VirtualGatewayPortMapping |
withProtocol(String protocol)
The protocol used for the port mapping.
|
VirtualGatewayPortMapping |
withProtocol(VirtualGatewayPortProtocol protocol)
The protocol used for the port mapping.
|
public void setPort(Integer port)
The port used for the port mapping. Specify one protocol.
port - The port used for the port mapping. Specify one protocol.public Integer getPort()
The port used for the port mapping. Specify one protocol.
public VirtualGatewayPortMapping withPort(Integer port)
The port used for the port mapping. Specify one protocol.
port - The port used for the port mapping. Specify one protocol.public void setProtocol(String protocol)
The protocol used for the port mapping.
protocol - The protocol used for the port mapping.VirtualGatewayPortProtocolpublic String getProtocol()
The protocol used for the port mapping.
VirtualGatewayPortProtocolpublic VirtualGatewayPortMapping withProtocol(String protocol)
The protocol used for the port mapping.
protocol - The protocol used for the port mapping.VirtualGatewayPortProtocolpublic VirtualGatewayPortMapping withProtocol(VirtualGatewayPortProtocol protocol)
The protocol used for the port mapping.
protocol - The protocol used for the port mapping.VirtualGatewayPortProtocolpublic String toString()
toString in class ObjectObject.toString()public VirtualGatewayPortMapping clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.