mesosphere.marathon.client.model.v2.PortDefinition 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 PortDefinition {
private Integer port;
private String protocol;
private String name;
private Map labels = new HashMap<>();
public Integer getPort() {
return port;
}
public void setPort(Integer port) {
this.port = port;
}
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);
}
}