![JAR search and dependency download from the Maven repository](/logo.png)
mesosphere.marathon.client.model.v2.PortMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marathon-client Show documentation
Show all versions of marathon-client Show documentation
A Java API client for Mesosphere's Marathon.
package mesosphere.marathon.client.model.v2;
import java.util.HashMap;
import java.util.Map;
import mesosphere.client.common.ModelUtils;
public class PortMapping {
private Integer containerPort;
private Integer hostPort;
private Integer servicePort;
private String protocol;
private String name;
private Map labels = new HashMap<>();
public Integer getContainerPort() {
return containerPort;
}
public void setContainerPort(Integer containerPort) {
this.containerPort = containerPort;
}
public Integer getHostPort() {
return hostPort;
}
public void setHostPort(Integer hostPort) {
this.hostPort = hostPort;
}
public Integer getServicePort() {
return servicePort;
}
public void setServicePort(Integer servicePort) {
this.servicePort = servicePort;
}
public String getProtocol() {
return protocol;
}
public void setProtocol(String protocol) {
this.protocol = protocol;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Map getLabels() {
return labels;
}
public void setLabels(Map labels) {
this.labels = labels;
}
@Override
public String toString() {
return ModelUtils.toString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy