@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails extends Object implements Serializable, Cloneable, StructuredPojo
A port mapping for the container.
Constructor and Description |
---|
AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails |
clone() |
boolean |
equals(Object obj) |
Integer |
getContainerPort()
The port number on the container that is bound to the user-specified or automatically assigned host port.
|
Integer |
getHostPort()
The port number on the container instance to reserve for the container.
|
String |
getProtocol()
The protocol used for the port mapping.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerPort(Integer containerPort)
The port number on the container that is bound to the user-specified or automatically assigned host port.
|
void |
setHostPort(Integer hostPort)
The port number on the container instance to reserve for the container.
|
void |
setProtocol(String protocol)
The protocol used for the port mapping.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails |
withContainerPort(Integer containerPort)
The port number on the container that is bound to the user-specified or automatically assigned host port.
|
AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails |
withHostPort(Integer hostPort)
The port number on the container instance to reserve for the container.
|
AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails |
withProtocol(String protocol)
The protocol used for the port mapping.
|
public AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails()
public void setContainerPort(Integer containerPort)
The port number on the container that is bound to the user-specified or automatically assigned host port.
containerPort
- The port number on the container that is bound to the user-specified or automatically assigned host port.public Integer getContainerPort()
The port number on the container that is bound to the user-specified or automatically assigned host port.
public AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails withContainerPort(Integer containerPort)
The port number on the container that is bound to the user-specified or automatically assigned host port.
containerPort
- The port number on the container that is bound to the user-specified or automatically assigned host port.public void setHostPort(Integer hostPort)
The port number on the container instance to reserve for the container.
hostPort
- The port number on the container instance to reserve for the container.public Integer getHostPort()
The port number on the container instance to reserve for the container.
public AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails withHostPort(Integer hostPort)
The port number on the container instance to reserve for the container.
hostPort
- The port number on the container instance to reserve for the container.public void setProtocol(String protocol)
The protocol used for the port mapping. The default is tcp
.
protocol
- The protocol used for the port mapping. The default is tcp
.public String getProtocol()
The protocol used for the port mapping. The default is tcp
.
tcp
.public AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails withProtocol(String protocol)
The protocol used for the port mapping. The default is tcp
.
protocol
- The protocol used for the port mapping. The default is tcp
.public String toString()
toString
in class Object
Object.toString()
public AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.