com.fitbur.github.dockerjava.api.model.Container Maven / Gradle / Ivy
package com.fitbur.github.dockerjava.api.model;
import java.util.Map;
import com.fitbur.apache.com.fitburmons.lang.builder.ToStringBuilder;
import com.fitbur.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fitbur.fasterxml.jackson.annotation.JsonProperty;
/**
*
* @author Konstantin Pelykh ([email protected])
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Container {
@JsonProperty("Command")
private String com.fitburmand;
@JsonProperty("Created")
private long created;
@JsonProperty("Id")
private String id;
@JsonProperty("Image")
private String image;
@JsonProperty("Names")
private String[] names;
@JsonProperty("Ports")
public Port[] ports;
@JsonProperty("Labels")
public Map labels;
@JsonProperty("Status")
private String status;
public String getId() {
return id;
}
public String getCommand() {
return com.fitburmand;
}
public String getImage() {
return image;
}
public long getCreated() {
return created;
}
public String getStatus() {
return status;
}
public Port[] getPorts() {
return ports;
}
public Map getLabels() {
return labels;
}
public String[] getNames() {
return names;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonIgnoreProperties(ignoreUnknown = true)
public static class Port {
@JsonProperty("IP")
private String ip;
@JsonProperty("PrivatePort")
private Integer privatePort;
@JsonProperty("PublicPort")
private Integer publicPort;
@JsonProperty("Type")
private String type;
public String getIp() {
return ip;
}
public Integer getPrivatePort() {
return privatePort;
}
public Integer getPublicPort() {
return publicPort;
}
public String getType() {
return type;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy