public class NetworkBinding
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Details on the network bindings between a container and its host container
instance. After a task reaches the RUNNING
status, manual and
automatic host and container port assignments are visible in the
networkBindings
section of DescribeTasks API responses.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bindIP
The IP address that the container is bound to on the container instance.
|
private java.lang.Integer |
containerPort
The port number on the container that is be used with the network
binding.
|
private java.lang.Integer |
hostPort
The port number on the host that is used with the network binding.
|
private java.lang.String |
protocol
The protocol used for the network binding.
|
Constructor and Description |
---|
NetworkBinding() |
Modifier and Type | Method and Description |
---|---|
NetworkBinding |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBindIP()
The IP address that the container is bound to on the container instance.
|
java.lang.Integer |
getContainerPort()
The port number on the container that is be used with the network
binding.
|
java.lang.Integer |
getHostPort()
The port number on the host that is used with the network binding.
|
java.lang.String |
getProtocol()
The protocol used for the network binding.
|
int |
hashCode() |
void |
setBindIP(java.lang.String bindIP)
The IP address that the container is bound to on the container instance.
|
void |
setContainerPort(java.lang.Integer containerPort)
The port number on the container that is be used with the network
binding.
|
void |
setHostPort(java.lang.Integer hostPort)
The port number on the host that is used with the network binding.
|
void |
setProtocol(java.lang.String protocol)
The protocol used for the network binding.
|
void |
setProtocol(TransportProtocol protocol)
The protocol used for the network binding.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
NetworkBinding |
withBindIP(java.lang.String bindIP)
The IP address that the container is bound to on the container instance.
|
NetworkBinding |
withContainerPort(java.lang.Integer containerPort)
The port number on the container that is be used with the network
binding.
|
NetworkBinding |
withHostPort(java.lang.Integer hostPort)
The port number on the host that is used with the network binding.
|
NetworkBinding |
withProtocol(java.lang.String protocol)
The protocol used for the network binding.
|
NetworkBinding |
withProtocol(TransportProtocol protocol)
The protocol used for the network binding.
|
private java.lang.String bindIP
The IP address that the container is bound to on the container instance.
private java.lang.Integer containerPort
The port number on the container that is be used with the network binding.
private java.lang.Integer hostPort
The port number on the host that is used with the network binding.
private java.lang.String protocol
The protocol used for the network binding.
public void setBindIP(java.lang.String bindIP)
The IP address that the container is bound to on the container instance.
bindIP
- The IP address that the container is bound to on the container
instance.public java.lang.String getBindIP()
The IP address that the container is bound to on the container instance.
public NetworkBinding withBindIP(java.lang.String bindIP)
The IP address that the container is bound to on the container instance.
bindIP
- The IP address that the container is bound to on the container
instance.public void setContainerPort(java.lang.Integer containerPort)
The port number on the container that is be used with the network binding.
containerPort
- The port number on the container that is be used with the network
binding.public java.lang.Integer getContainerPort()
The port number on the container that is be used with the network binding.
public NetworkBinding withContainerPort(java.lang.Integer containerPort)
The port number on the container that is be used with the network binding.
containerPort
- The port number on the container that is be used with the network
binding.public void setHostPort(java.lang.Integer hostPort)
The port number on the host that is used with the network binding.
hostPort
- The port number on the host that is used with the network binding.public java.lang.Integer getHostPort()
The port number on the host that is used with the network binding.
public NetworkBinding withHostPort(java.lang.Integer hostPort)
The port number on the host that is used with the network binding.
hostPort
- The port number on the host that is used with the network binding.public void setProtocol(java.lang.String protocol)
The protocol used for the network binding.
protocol
- The protocol used for the network binding.TransportProtocol
public java.lang.String getProtocol()
The protocol used for the network binding.
TransportProtocol
public NetworkBinding withProtocol(java.lang.String protocol)
The protocol used for the network binding.
protocol
- The protocol used for the network binding.TransportProtocol
public void setProtocol(TransportProtocol protocol)
The protocol used for the network binding.
protocol
- The protocol used for the network binding.TransportProtocol
public NetworkBinding withProtocol(TransportProtocol protocol)
The protocol used for the network binding.
protocol
- The protocol used for the network binding.TransportProtocol
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public NetworkBinding clone()
clone
in class java.lang.Object