All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.digitalforge.dockermanager.DockerContainerConfig Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy