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

annotations.io.fabric8.kubernetes.api.model.VolumeSourceFluent Maven / Gradle / Ivy

package io.fabric8.kubernetes.api.model;

import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Nested;
import io.fabric8.common.Fluent;

public class VolumeSourceFluent> implements Fluent{

    private EmptyDirVolumeSource emptyDir ;
    private GitRepoVolumeSource gitRepo ;
    private GlusterfsVolumeSource glusterfs ;
    private HostPathVolumeSource hostDir ;
    private ISCSIVolumeSource iscsi ;
    private NFSVolumeSource nfs ;
    private GCEPersistentDiskVolumeSource persistentDisk ;
    private SecretVolumeSource secret ;
    private Map additionalProperties  = new HashMap();

    public EmptyDirVolumeSource getEmptyDir(){
    return this.emptyDir;
    }
    public T withEmptyDir(EmptyDirVolumeSource emptyDir){
    this.emptyDir=emptyDir; return (T) this;
    }
    public GitRepoVolumeSource getGitRepo(){
    return this.gitRepo;
    }
    public T withGitRepo(GitRepoVolumeSource gitRepo){
    this.gitRepo=gitRepo; return (T) this;
    }
    public GlusterfsVolumeSource getGlusterfs(){
    return this.glusterfs;
    }
    public T withGlusterfs(GlusterfsVolumeSource glusterfs){
    this.glusterfs=glusterfs; return (T) this;
    }
    public HostPathVolumeSource getHostDir(){
    return this.hostDir;
    }
    public T withHostDir(HostPathVolumeSource hostDir){
    this.hostDir=hostDir; return (T) this;
    }
    public ISCSIVolumeSource getIscsi(){
    return this.iscsi;
    }
    public T withIscsi(ISCSIVolumeSource iscsi){
    this.iscsi=iscsi; return (T) this;
    }
    public NFSVolumeSource getNfs(){
    return this.nfs;
    }
    public T withNfs(NFSVolumeSource nfs){
    this.nfs=nfs; return (T) this;
    }
    public GCEPersistentDiskVolumeSource getPersistentDisk(){
    return this.persistentDisk;
    }
    public T withPersistentDisk(GCEPersistentDiskVolumeSource persistentDisk){
    this.persistentDisk=persistentDisk; return (T) this;
    }
    public SecretVolumeSource getSecret(){
    return this.secret;
    }
    public T withSecret(SecretVolumeSource secret){
    this.secret=secret; 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 EmptyDirNested withNewEmptyDir(){
    return new EmptyDirNested();
    }
    public GitRepoNested withNewGitRepo(){
    return new GitRepoNested();
    }
    public GlusterfsNested withNewGlusterf(){
    return new GlusterfsNested();
    }
    public HostDirNested withNewHostDir(){
    return new HostDirNested();
    }
    public IscsiNested withNewIscsi(){
    return new IscsiNested();
    }
    public NfsNested withNewNf(){
    return new NfsNested();
    }
    public PersistentDiskNested withNewPersistentDisk(){
    return new PersistentDiskNested();
    }
    public SecretNested withNewSecret(){
    return new SecretNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class EmptyDirNested extends EmptyDirVolumeSourceFluent> implements Nested{

        private final EmptyDirVolumeSourceBuilder builder = new EmptyDirVolumeSourceBuilder(this);
    
            public N and(){
            return (N) VolumeSourceFluent.this.withEmptyDir(builder.build());
        }
            public N endEmptyDir(){
            return and();
        }
    
}
    public class GitRepoNested extends GitRepoVolumeSourceFluent> implements Nested{

        private final GitRepoVolumeSourceBuilder builder = new GitRepoVolumeSourceBuilder(this);
    
            public N endGitRepo(){
            return and();
        }
            public N and(){
            return (N) VolumeSourceFluent.this.withGitRepo(builder.build());
        }
    
}
    public class GlusterfsNested extends GlusterfsVolumeSourceFluent> implements Nested{

        private final GlusterfsVolumeSourceBuilder builder = new GlusterfsVolumeSourceBuilder(this);
    
            public N endGlusterf(){
            return and();
        }
            public N and(){
            return (N) VolumeSourceFluent.this.withGlusterfs(builder.build());
        }
    
}
    public class HostDirNested extends HostPathVolumeSourceFluent> implements Nested{

        private final HostPathVolumeSourceBuilder builder = new HostPathVolumeSourceBuilder(this);
    
            public N endHostDir(){
            return and();
        }
            public N and(){
            return (N) VolumeSourceFluent.this.withHostDir(builder.build());
        }
    
}
    public class IscsiNested extends ISCSIVolumeSourceFluent> implements Nested{

        private final ISCSIVolumeSourceBuilder builder = new ISCSIVolumeSourceBuilder(this);
    
            public N endIscsi(){
            return and();
        }
            public N and(){
            return (N) VolumeSourceFluent.this.withIscsi(builder.build());
        }
    
}
    public class NfsNested extends NFSVolumeSourceFluent> implements Nested{

        private final NFSVolumeSourceBuilder builder = new NFSVolumeSourceBuilder(this);
    
            public N and(){
            return (N) VolumeSourceFluent.this.withNfs(builder.build());
        }
            public N endNf(){
            return and();
        }
    
}
    public class PersistentDiskNested extends GCEPersistentDiskVolumeSourceFluent> implements Nested{

        private final GCEPersistentDiskVolumeSourceBuilder builder = new GCEPersistentDiskVolumeSourceBuilder(this);
    
            public N endPersistentDisk(){
            return and();
        }
            public N and(){
            return (N) VolumeSourceFluent.this.withPersistentDisk(builder.build());
        }
    
}
    public class SecretNested extends SecretVolumeSourceFluent> implements Nested{

        private final SecretVolumeSourceBuilder builder = new SecretVolumeSourceBuilder(this);
    
            public N and(){
            return (N) VolumeSourceFluent.this.withSecret(builder.build());
        }
            public N endSecret(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy