com.kpelykh.docker.client.model.HostConfig 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;
import java.util.Arrays;
/**
*
* @author Konstantin Pelykh ([email protected])
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class HostConfig {
@JsonProperty("Binds")
private String[] binds;
@JsonProperty("ContainerIDFile")
private String containerIDFile;
@JsonProperty("LxcConf")
private LxcConf[] lxcConf;
@JsonProperty("Links")
private String[] links;
@JsonProperty("PortBindings")
private Ports portBindings;
@JsonProperty("Privileged")
private boolean privileged;
@JsonProperty("PublishAllPorts")
private boolean publishAllPorts;
@JsonProperty("Dns")
private String dns;
@JsonProperty("DnsSearch")
private String dnsSearch;
@JsonProperty("VolumesFrom")
private String volumesFrom;
public HostConfig() {
this.binds = null;
}
public String[] getBinds() {
return binds;
}
public void setBinds(String[] binds) {
this.binds = binds;
}
public String getContainerIDFile() {
return containerIDFile;
}
public void setContainerIDFile(String containerIDFile) {
this.containerIDFile = containerIDFile;
}
public LxcConf[] getLxcConf() {
return lxcConf;
}
public void setLxcConf(LxcConf[] lxcConf) {
this.lxcConf = lxcConf;
}
public String[] getLinks() {
return links;
}
public void setLinks(String[] links) {
this.links = links;
}
public Ports getPortBindings() {
return portBindings;
}
public void setPortBindings(Ports portBindings) {
this.portBindings = portBindings;
}
public boolean isPrivileged() {
return privileged;
}
public void setPrivileged(boolean privileged) {
this.privileged = privileged;
}
public boolean isPublishAllPorts() {
return publishAllPorts;
}
public void setPublishAllPorts(boolean publishAllPorts) {
this.publishAllPorts = publishAllPorts;
}
public String getDns() {
return dns;
}
public void setDns(String dns) {
this.dns = dns;
}
public void setDnsSearch(String dnsSearch) {
this.dnsSearch = dnsSearch;
}
public String getDnsSearch() {
return dnsSearch;
}
public void setVolumesFrom(String volumesFrom) {
this.volumesFrom = volumesFrom;
}
public String getVolumesFrom() {
return volumesFrom;
}
@Override
public String toString() {
return "HostConfig{" +
"binds=" + Arrays.toString(binds) +
", containerIDFile='" + containerIDFile + '\'' +
", lxcConf=" + Arrays.toString(lxcConf) +
", links=" + Arrays.toString(links) +
", portBindings=" + portBindings +
", privileged=" + privileged +
", publishAllPorts=" + publishAllPorts +
", dns='" + dns + '\'' +
'}';
}
public class LxcConf {
@JsonProperty("Key")
public String key;
@JsonProperty("Value")
public String value;
public LxcConf(String key, String value) {
this.key = key;
this.value = value;
}
public LxcConf() {
}
public String getKey() {
return key;
}
public LxcConf setKey(String key) {
this.key = key;
return this;
}
public String getValue() {
return value;
}
public LxcConf setValue(String value) {
this.value = value;
return this;
}
}
}