@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContainerPortMapping extends Object implements Serializable, Cloneable, StructuredPojo
This data type is used with the Amazon GameLift containers feature, which is currently in public preview.
Defines how an internal-facing container port is mapped to an external-facing connection port on a fleet instance of
compute type CONTAINER
. Incoming traffic, such as a game client, uses a connection port to connect to a
process in the container fleet. Amazon GameLift directs the inbound traffic to the container port that is assigned to
the process, such as a game session, running on a container.
Part of: ContainerAttributes
Constructor and Description |
---|
ContainerPortMapping() |
Modifier and Type | Method and Description |
---|---|
ContainerPortMapping |
clone() |
boolean |
equals(Object obj) |
Integer |
getConnectionPort()
The port opened on the fleet instance.
|
Integer |
getContainerPort()
The port opened on the container.
|
String |
getProtocol()
The network protocol that this mapping supports.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConnectionPort(Integer connectionPort)
The port opened on the fleet instance.
|
void |
setContainerPort(Integer containerPort)
The port opened on the container.
|
void |
setProtocol(String protocol)
The network protocol that this mapping supports.
|
String |
toString()
Returns a string representation of this object.
|
ContainerPortMapping |
withConnectionPort(Integer connectionPort)
The port opened on the fleet instance.
|
ContainerPortMapping |
withContainerPort(Integer containerPort)
The port opened on the container.
|
ContainerPortMapping |
withProtocol(IpProtocol protocol)
The network protocol that this mapping supports.
|
ContainerPortMapping |
withProtocol(String protocol)
The network protocol that this mapping supports.
|
public void setContainerPort(Integer containerPort)
The port opened on the container.
containerPort
- The port opened on the container.public Integer getContainerPort()
The port opened on the container.
public ContainerPortMapping withContainerPort(Integer containerPort)
The port opened on the container.
containerPort
- The port opened on the container.public void setConnectionPort(Integer connectionPort)
The port opened on the fleet instance. This is also called the "host port".
connectionPort
- The port opened on the fleet instance. This is also called the "host port".public Integer getConnectionPort()
The port opened on the fleet instance. This is also called the "host port".
public ContainerPortMapping withConnectionPort(Integer connectionPort)
The port opened on the fleet instance. This is also called the "host port".
connectionPort
- The port opened on the fleet instance. This is also called the "host port".public void setProtocol(String protocol)
The network protocol that this mapping supports.
protocol
- The network protocol that this mapping supports.IpProtocol
public String getProtocol()
The network protocol that this mapping supports.
IpProtocol
public ContainerPortMapping withProtocol(String protocol)
The network protocol that this mapping supports.
protocol
- The network protocol that this mapping supports.IpProtocol
public ContainerPortMapping withProtocol(IpProtocol protocol)
The network protocol that this mapping supports.
protocol
- The network protocol that this mapping supports.IpProtocol
public String toString()
toString
in class Object
Object.toString()
public ContainerPortMapping clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.