com.kpelykh.docker.client.model.Port Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java Show documentation
Show all versions of docker-java Show documentation
Java API Client for Docker
package com.kpelykh.docker.client.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author Nicolas De Loof
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Port {
@JsonProperty("PrivatePort")
private long privatePort;
@JsonProperty("PublicPort")
private long publicPort;
@JsonProperty("Type")
private String type;
public long getPrivatePort() {
return privatePort;
}
public void setPrivatePort(long privatePort) {
this.privatePort = privatePort;
}
public long getPublicPort() {
return publicPort;
}
public void setPublicPort(long publicPort) {
this.publicPort = publicPort;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public String toString() {
return "Port{" +
"privatePort=" + privatePort +
", publicPort=" + publicPort +
", type='" + type + '\'' +
'}';
}
}