@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PortMapping extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents a port mapping.
| Constructor and Description |
|---|
PortMapping() |
| Modifier and Type | Method and Description |
|---|---|
PortMapping |
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.
|
PortMapping |
withPort(Integer port)
The port used for the port mapping.
|
PortMapping |
withProtocol(PortProtocol protocol)
The protocol used for the port mapping.
|
PortMapping |
withProtocol(String protocol)
The protocol used for the port mapping.
|
public void setPort(Integer port)
The port used for the port mapping.
port - The port used for the port mapping.public Integer getPort()
The port used for the port mapping.
public PortMapping withPort(Integer port)
The port used for the port mapping.
port - The port used for the port mapping.public void setProtocol(String protocol)
The protocol used for the port mapping. Specify one protocol.
protocol - The protocol used for the port mapping. Specify one protocol.PortProtocolpublic String getProtocol()
The protocol used for the port mapping. Specify one protocol.
PortProtocolpublic PortMapping withProtocol(String protocol)
The protocol used for the port mapping. Specify one protocol.
protocol - The protocol used for the port mapping. Specify one protocol.PortProtocolpublic PortMapping withProtocol(PortProtocol protocol)
The protocol used for the port mapping. Specify one protocol.
protocol - The protocol used for the port mapping. Specify one protocol.PortProtocolpublic String toString()
toString in class ObjectObject.toString()public PortMapping clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.