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

annotations.io.fabric8.openshift.api.model.DockerConfigFluent Maven / Gradle / Ivy

package io.fabric8.openshift.api.model;

import java.util.HashMap;
import java.util.Map;
import java.util.List;
import java.util.ArrayList;
import io.fabric8.common.Fluent;

public class DockerConfigFluent> implements Fluent{

    private Boolean AttachStderr ;
    private Boolean AttachStdin ;
    private Boolean AttachStdout ;
    private List Cmd  = new ArrayList();
    private Integer CpuShares ;
    private String Cpuset ;
    private List Dns  = new ArrayList();
    private String Domainname ;
    private List Entrypoint  = new ArrayList();
    private List Env  = new ArrayList();
    private Map ExposedPorts  = new HashMap();
    private String Hostname ;
    private String Image ;
    private Integer Memory ;
    private Integer MemorySwap ;
    private Boolean NetworkDisabled ;
    private List OnBuild  = new ArrayList();
    private Boolean OpenStdin ;
    private List PortSpecs  = new ArrayList();
    private List SecurityOpts  = new ArrayList();
    private Boolean StdinOnce ;
    private Boolean Tty ;
    private String User ;
    private Map Volumes  = new HashMap();
    private String VolumesFrom ;
    private String WorkingDir ;
    private Map additionalProperties  = new HashMap();

    public Boolean isAttachStderr(){
    return this.AttachStderr;
    }
    public T withAttachStderr(Boolean AttachStderr){
    this.AttachStderr=AttachStderr; return (T) this;
    }
    public Boolean isAttachStdin(){
    return this.AttachStdin;
    }
    public T withAttachStdin(Boolean AttachStdin){
    this.AttachStdin=AttachStdin; return (T) this;
    }
    public Boolean isAttachStdout(){
    return this.AttachStdout;
    }
    public T withAttachStdout(Boolean AttachStdout){
    this.AttachStdout=AttachStdout; return (T) this;
    }
    public List getCmd(){
    return this.Cmd;
    }
    public T withCmd(List Cmd){
    this.Cmd.clear();if (Cmd != null) {this.Cmd.addAll(Cmd);} return (T) this;
    }
    public Integer getCpuShares(){
    return this.CpuShares;
    }
    public T withCpuShares(Integer CpuShares){
    this.CpuShares=CpuShares; return (T) this;
    }
    public String getCpuset(){
    return this.Cpuset;
    }
    public T withCpuset(String Cpuset){
    this.Cpuset=Cpuset; return (T) this;
    }
    public List getDns(){
    return this.Dns;
    }
    public T withDns(List Dns){
    this.Dns.clear();if (Dns != null) {this.Dns.addAll(Dns);} return (T) this;
    }
    public String getDomainname(){
    return this.Domainname;
    }
    public T withDomainname(String Domainname){
    this.Domainname=Domainname; return (T) this;
    }
    public List getEntrypoint(){
    return this.Entrypoint;
    }
    public T withEntrypoint(List Entrypoint){
    this.Entrypoint.clear();if (Entrypoint != null) {this.Entrypoint.addAll(Entrypoint);} return (T) this;
    }
    public List getEnv(){
    return this.Env;
    }
    public T withEnv(List Env){
    this.Env.clear();if (Env != null) {this.Env.addAll(Env);} return (T) this;
    }
    public Map getExposedPorts(){
    return this.ExposedPorts;
    }
    public T withExposedPorts(Map ExposedPorts){
    this.ExposedPorts.clear();if (ExposedPorts != null) {this.ExposedPorts.putAll(ExposedPorts);} return (T) this;
    }
    public String getHostname(){
    return this.Hostname;
    }
    public T withHostname(String Hostname){
    this.Hostname=Hostname; return (T) this;
    }
    public String getImage(){
    return this.Image;
    }
    public T withImage(String Image){
    this.Image=Image; return (T) this;
    }
    public Integer getMemory(){
    return this.Memory;
    }
    public T withMemory(Integer Memory){
    this.Memory=Memory; return (T) this;
    }
    public Integer getMemorySwap(){
    return this.MemorySwap;
    }
    public T withMemorySwap(Integer MemorySwap){
    this.MemorySwap=MemorySwap; return (T) this;
    }
    public Boolean isNetworkDisabled(){
    return this.NetworkDisabled;
    }
    public T withNetworkDisabled(Boolean NetworkDisabled){
    this.NetworkDisabled=NetworkDisabled; return (T) this;
    }
    public List getOnBuild(){
    return this.OnBuild;
    }
    public T withOnBuild(List OnBuild){
    this.OnBuild.clear();if (OnBuild != null) {this.OnBuild.addAll(OnBuild);} return (T) this;
    }
    public Boolean isOpenStdin(){
    return this.OpenStdin;
    }
    public T withOpenStdin(Boolean OpenStdin){
    this.OpenStdin=OpenStdin; return (T) this;
    }
    public List getPortSpecs(){
    return this.PortSpecs;
    }
    public T withPortSpecs(List PortSpecs){
    this.PortSpecs.clear();if (PortSpecs != null) {this.PortSpecs.addAll(PortSpecs);} return (T) this;
    }
    public List getSecurityOpts(){
    return this.SecurityOpts;
    }
    public T withSecurityOpts(List SecurityOpts){
    this.SecurityOpts.clear();if (SecurityOpts != null) {this.SecurityOpts.addAll(SecurityOpts);} return (T) this;
    }
    public Boolean isStdinOnce(){
    return this.StdinOnce;
    }
    public T withStdinOnce(Boolean StdinOnce){
    this.StdinOnce=StdinOnce; return (T) this;
    }
    public Boolean isTty(){
    return this.Tty;
    }
    public T withTty(Boolean Tty){
    this.Tty=Tty; return (T) this;
    }
    public String getUser(){
    return this.User;
    }
    public T withUser(String User){
    this.User=User; return (T) this;
    }
    public Map getVolumes(){
    return this.Volumes;
    }
    public T withVolumes(Map Volumes){
    this.Volumes.clear();if (Volumes != null) {this.Volumes.putAll(Volumes);} return (T) this;
    }
    public String getVolumesFrom(){
    return this.VolumesFrom;
    }
    public T withVolumesFrom(String VolumesFrom){
    this.VolumesFrom=VolumesFrom; return (T) this;
    }
    public String getWorkingDir(){
    return this.WorkingDir;
    }
    public T withWorkingDir(String WorkingDir){
    this.WorkingDir=WorkingDir; return (T) this;
    }
    public Map getAdditionalProperties(){
    return this.additionalProperties;
    }
    public T withAdditionalProperties(Map additionalProperties){
    this.additionalProperties.clear();if (additionalProperties != null) {this.additionalProperties.putAll(additionalProperties);} return (T) this;
    }
    public T addToCmd(String item){
    if (item != null) {this.Cmd.add(item);} return (T)this;
    }
    public T addToDns(String item){
    if (item != null) {this.Dns.add(item);} return (T)this;
    }
    public T addToEntrypoint(String item){
    if (item != null) {this.Entrypoint.add(item);} return (T)this;
    }
    public T addToEnv(String item){
    if (item != null) {this.Env.add(item);} return (T)this;
    }
    public T addToExposedPorts(String key, Object value){
    if(key != null && value != null) {this.ExposedPorts.put(key, value);} return (T)this;
    }
    public T addToOnBuild(String item){
    if (item != null) {this.OnBuild.add(item);} return (T)this;
    }
    public T addToPortSpecs(String item){
    if (item != null) {this.PortSpecs.add(item);} return (T)this;
    }
    public T addToSecurityOpts(String item){
    if (item != null) {this.SecurityOpts.add(item);} return (T)this;
    }
    public T addToVolumes(String key, Object value){
    if(key != null && value != null) {this.Volumes.put(key, value);} return (T)this;
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }



}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy