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

com.alexecollins.docker.orchestration.model.Conf Maven / Gradle / Ivy

There is a newer version: 2.11.29
Show newest version
package com.alexecollins.docker.orchestration.model;


import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang.StringUtils;

import java.util.List;
import java.util.Map;

import static java.util.Collections.emptyList;
import static java.util.Collections.emptyMap;

@SuppressWarnings("CanBeFinal")
public class Conf {
    @JsonProperty(required = false)
    private String tag = null;
    @JsonProperty(required = false)
    private List links = emptyList();
    @JsonProperty(required = false)
    private Packaging packaging = new Packaging();
    @JsonProperty(required = false)
    private List ports = emptyList();
    @JsonProperty(required = false)
    private List volumesFrom = emptyList();
	@JsonProperty(required = false)
	private HealthChecks healthChecks = new HealthChecks();
    @JsonProperty(required = false)
    private Map env = emptyMap();

    @JsonProperty(required = false)
    private Map volumes = emptyMap();


    public boolean hasTag() {
        return !StringUtils.isBlank(tag);
    }

    public String getTag() {
        return tag;
    }

    public List getLinks() {
        return links;
    }

    public List getPorts() {
        return ports;
    }

	public HealthChecks getHealthChecks() {
		return healthChecks;
	}

	public List getVolumesFrom() {
		return volumesFrom;
	}

	public Packaging getPackaging() {
		return packaging;
	}

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Map getEnv() { return this.env;  }

    public Map getVolumes() {
        return volumes;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy