org.digitalforge.dockermanager.DockerContainerConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-manager Show documentation
Show all versions of docker-manager Show documentation
Automatically pull, create, & start Docker containers
package org.digitalforge.dockermanager;
import java.util.List;
public class DockerContainerConfig {
private String name;
private List environment;
private List portBindings;
public DockerContainerConfig(String name) {
if(name == null || name.isBlank()) {
throw new IllegalArgumentException("'name' must not be blank!");
}
this.name = name;
}
public String getName() {
return name;
}
public DockerContainerConfig setName(String name) {
if(name == null || name.isBlank()) {
throw new IllegalArgumentException("'name' must not be blank!");
}
this.name = name;
return this;
}
public List getEnvironment() {
return environment;
}
public DockerContainerConfig setEnvironment(List environment) {
this.environment = environment;
return this;
}
public List getPortBindings() {
return portBindings;
}
public DockerContainerConfig setPortBindings(List portBindings) {
this.portBindings = portBindings;
return this;
}
}