public class NetworkBinding extends Object implements Serializable
Constructor and Description |
---|
NetworkBinding() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getBindIP()
The IP address that the container is bound to on the container
instance.
|
Integer |
getContainerPort()
The port number on the container that should be used with the network
binding.
|
Integer |
getHostPort()
The port number on the host that should be used with the network
binding.
|
int |
hashCode() |
void |
setBindIP(String bindIP)
The IP address that the container is bound to on the container
instance.
|
void |
setContainerPort(Integer containerPort)
The port number on the container that should be used with the network
binding.
|
void |
setHostPort(Integer hostPort)
The port number on the host that should be used with the network
binding.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
NetworkBinding |
withBindIP(String bindIP)
The IP address that the container is bound to on the container
instance.
|
NetworkBinding |
withContainerPort(Integer containerPort)
The port number on the container that should be used with the network
binding.
|
NetworkBinding |
withHostPort(Integer hostPort)
The port number on the host that should be used with the network
binding.
|
public String getBindIP()
public void setBindIP(String bindIP)
bindIP
- The IP address that the container is bound to on the container
instance.public NetworkBinding withBindIP(String bindIP)
Returns a reference to this object so that method calls can be chained together.
bindIP
- The IP address that the container is bound to on the container
instance.public Integer getContainerPort()
public void setContainerPort(Integer containerPort)
containerPort
- The port number on the container that should be used with the network
binding.public NetworkBinding withContainerPort(Integer containerPort)
Returns a reference to this object so that method calls can be chained together.
containerPort
- The port number on the container that should be used with the network
binding.public Integer getHostPort()
public void setHostPort(Integer hostPort)
hostPort
- The port number on the host that should be used with the network
binding.public NetworkBinding withHostPort(Integer hostPort)
Returns a reference to this object so that method calls can be chained together.
hostPort
- The port number on the host that should be used with the network
binding.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.