@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.PortProtocol
public String getProtocol()
The protocol used for the port mapping. Specify one protocol.
PortProtocol
public 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.PortProtocol
public 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.PortProtocol
public String toString()
toString
in class Object
Object.toString()
public PortMapping clone()
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.