com.kpelykh.docker.client.model.ContainerInspectResponse 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 java.util.Map;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*
* @author Konstantin Pelykh ([email protected])
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class ContainerInspectResponse {
@JsonProperty("ID")
private String id;
@JsonProperty("Created")
private String created;
@JsonProperty("Path")
private String path;
@JsonProperty("Args")
private String[] args;
@JsonProperty("Config")
public ContainerConfig config;
@JsonProperty("State")
private ContainerState state;
@JsonProperty("Image")
private String image;
@JsonProperty("NetworkSettings")
private NetworkSettings networkSettings;
@JsonProperty("SysInitPath")
private String sysInitPath;
@JsonProperty("ResolvConfPath")
private String resolvConfPath;
@JsonProperty("Volumes")
private Map volumes;
@JsonProperty("VolumesRW")
private Map volumesRW;
@JsonProperty("HostnamePath")
private String hostnamePath;
@JsonProperty("HostsPath")
private String hostsPath;
@JsonProperty("Name")
private String name;
@JsonProperty("Driver")
private String driver;
@JsonProperty("HostConfig")
private HostConfig hostConfig;
@JsonProperty("ExecDriver")
private String execDriver;
@JsonProperty("MountLabel")
private String mountLabel;
@JsonProperty("Paused")
public boolean paused;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getCreated() {
return created;
}
public void setCreated(String created) {
this.created = created;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String[] getArgs() {
return args;
}
public void setArgs(String[] args) {
this.args = args;
}
public ContainerConfig getConfig() {
return config;
}
public void setConfig(ContainerConfig config) {
this.config = config;
}
public ContainerState getState() {
return state;
}
public void setState(ContainerState state) {
this.state = state;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public NetworkSettings getNetworkSettings() {
return networkSettings;
}
public void setNetworkSettings(NetworkSettings networkSettings) {
this.networkSettings = networkSettings;
}
public String getSysInitPath() {
return sysInitPath;
}
public void setSysInitPath(String sysInitPath) {
this.sysInitPath = sysInitPath;
}
public String getResolvConfPath() {
return resolvConfPath;
}
public void setResolvConfPath(String resolvConfPath) {
this.resolvConfPath = resolvConfPath;
}
public Map getVolumes() {
return volumes;
}
public void setVolumes(Map volumes) {
this.volumes = volumes;
}
public Map getVolumesRW() {
return volumesRW;
}
public void setVolumesRW(Map volumesRW) {
this.volumesRW = volumesRW;
}
public String getHostnamePath() {
return hostnamePath;
}
public void setHostnamePath(String hostnamePath) {
this.hostnamePath = hostnamePath;
}
public String getHostsPath() {
return hostsPath;
}
public void setHostsPath(String hostsPath) {
this.hostsPath = hostsPath;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDriver() {
return driver;
}
public void setDriver(String driver) {
this.driver = driver;
}
public HostConfig getHostConfig() {
return hostConfig;
}
public void setHostConfig(HostConfig hostConfig) {
this.hostConfig = hostConfig;
}
public void setExecDriver(String execDriver) {
this.execDriver = execDriver;
}
public String getExecDriver() {
return execDriver;
}
public String getMountLabel() {
return mountLabel;
}
public void setMountLabel(String mountLabel) {
this.mountLabel = mountLabel;
}
public boolean isPaused() {
return paused;
}
public void setPaused(boolean paused) {
this.paused = paused;
}
public class NetworkSettings {
@JsonProperty("IPAddress") public String ipAddress;
@JsonProperty("IPPrefixLen") public int ipPrefixLen;
@JsonProperty("Gateway") public String gateway;
@JsonProperty("Bridge") public String bridge;
@JsonProperty("PortMapping") public Map> portMapping;
@JsonProperty("Ports") public Ports ports;
@Override
public String toString() {
return "NetworkSettings{" +
"ports=" + ports +
", portMapping=" + portMapping +
", bridge='" + bridge + '\'' +
", gateway='" + gateway + '\'' +
", ipPrefixLen=" + ipPrefixLen +
", ipAddress='" + ipAddress + '\'' +
'}';
}
}
public class ContainerState {
@JsonProperty("Running") public boolean running;
@JsonProperty("Pid") public int pid;
@JsonProperty("ExitCode") public int exitCode;
@JsonProperty("StartedAt") public String startedAt;
@JsonProperty("Ghost") public boolean ghost;
@JsonProperty("FinishedAt") private String finishedAt;
@Override
public String toString() {
return "ContainerState{" +
"running=" + running +
", pid=" + pid +
", exitCode=" + exitCode +
", startedAt='" + startedAt + '\'' +
", ghost=" + ghost +
", finishedAt='" + finishedAt + '\'' +
'}';
}
}
}