Class NetworkBinding
- java.lang.Object
-
- com.amazonaws.services.ecs.model.NetworkBinding
-
- All Implemented Interfaces:
Serializable,Cloneable
public class NetworkBinding extends Object implements Serializable, Cloneable
Details on the network bindings between a container and its host container instance. After a task reaches the
RUNNINGstatus, manual and automatic host and container port assignments are visible in thenetworkBindingssection of DescribeTasks API responses.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetworkBinding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkBindingclone()booleanequals(Object obj)StringgetBindIP()The IP address that the container is bound to on the container instance.IntegergetContainerPort()The port number on the container that is be used with the network binding.IntegergetHostPort()The port number on the host that is used with the network binding.StringgetProtocol()The protocol used for the network binding.inthashCode()voidsetBindIP(String bindIP)The IP address that the container is bound to on the container instance.voidsetContainerPort(Integer containerPort)The port number on the container that is be used with the network binding.voidsetHostPort(Integer hostPort)The port number on the host that is used with the network binding.voidsetProtocol(TransportProtocol protocol)The protocol used for the network binding.voidsetProtocol(String protocol)The protocol used for the network binding.StringtoString()Returns a string representation of this object; useful for testing and debugging.NetworkBindingwithBindIP(String bindIP)The IP address that the container is bound to on the container instance.NetworkBindingwithContainerPort(Integer containerPort)The port number on the container that is be used with the network binding.NetworkBindingwithHostPort(Integer hostPort)The port number on the host that is used with the network binding.NetworkBindingwithProtocol(TransportProtocol protocol)The protocol used for the network binding.NetworkBindingwithProtocol(String protocol)The protocol used for the network binding.
-
-
-
Method Detail
-
setBindIP
public void setBindIP(String bindIP)
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
public String 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
public NetworkBinding withBindIP(String bindIP)
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
public void setContainerPort(Integer containerPort)
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
public Integer 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
public NetworkBinding withContainerPort(Integer containerPort)
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
public void setHostPort(Integer hostPort)
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
public Integer 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
public NetworkBinding withHostPort(Integer hostPort)
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
public void setProtocol(String protocol)
The protocol used for the network binding.
- Parameters:
protocol- The protocol used for the network binding.- See Also:
TransportProtocol
-
getProtocol
public String getProtocol()
The protocol used for the network binding.
- Returns:
- The protocol used for the network binding.
- See Also:
TransportProtocol
-
withProtocol
public NetworkBinding withProtocol(String protocol)
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:
TransportProtocol
-
setProtocol
public void setProtocol(TransportProtocol protocol)
The protocol used for the network binding.
- Parameters:
protocol- The protocol used for the network binding.- See Also:
TransportProtocol
-
withProtocol
public NetworkBinding withProtocol(TransportProtocol protocol)
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:
TransportProtocol
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public NetworkBinding clone()
-
-