Class NetworkBinding
- All Implemented Interfaces:
Serializable
,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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The IP address that the container is bound to on the container instance.The port number on the container that is be used with the network binding.The port number on the host that is used with the network binding.The protocol used for the network binding.int
hashCode()
void
The IP address that the container is bound to on the container instance.void
setContainerPort
(Integer containerPort) The port number on the container that is be used with the network binding.void
setHostPort
(Integer hostPort) The port number on the host that is used with the network binding.void
setProtocol
(TransportProtocol protocol) The protocol used for the network binding.void
setProtocol
(String protocol) The protocol used for the network binding.toString()
Returns a string representation of this object; useful for testing and debugging.withBindIP
(String bindIP) The IP address that the container is bound to on the container instance.withContainerPort
(Integer containerPort) The port number on the container that is be used with the network binding.withHostPort
(Integer hostPort) The port number on the host that is used with the network binding.withProtocol
(TransportProtocol protocol) The protocol used for the network binding.withProtocol
(String protocol) The protocol used for the network binding.
-
Constructor Details
-
NetworkBinding
public NetworkBinding()
-
-
Method Details
-
setBindIP
The IP address that the container is bound to on the container instance.
- Parameters:
bindIP
- The IP address that the container is bound to on the container instance.
-
getBindIP
The IP address that the container is bound to on the container instance.
- Returns:
- The IP address that the container is bound to on the container instance.
-
withBindIP
The IP address that the container is bound to on the container instance.
- Parameters:
bindIP
- The IP address that the container is bound to on the container instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContainerPort
The port number on the container that is be used with the network binding.
- Parameters:
containerPort
- The port number on the container that is be used with the network binding.
-
getContainerPort
The port number on the container that is be used with the network binding.
- Returns:
- The port number on the container that is be used with the network binding.
-
withContainerPort
The port number on the container that is be used with the network binding.
- Parameters:
containerPort
- The port number on the container that is be used with the network binding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHostPort
The port number on the host that is used with the network binding.
- Parameters:
hostPort
- The port number on the host that is used with the network binding.
-
getHostPort
The port number on the host that is used with the network binding.
- Returns:
- The port number on the host that is used with the network binding.
-
withHostPort
The port number on the host that is used with the network binding.
- Parameters:
hostPort
- The port number on the host that is used with the network binding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProtocol
The protocol used for the network binding.
- Parameters:
protocol
- The protocol used for the network binding.- See Also:
-
getProtocol
The protocol used for the network binding.
- Returns:
- The protocol used for the network binding.
- See Also:
-
withProtocol
The protocol used for the network binding.
- Parameters:
protocol
- The protocol used for the network binding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setProtocol
The protocol used for the network binding.
- Parameters:
protocol
- The protocol used for the network binding.- See Also:
-
withProtocol
The protocol used for the network binding.
- Parameters:
protocol
- The protocol used for the network binding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-