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

io.fabric8.kubernetes.api.model.PersistentVolumeSpecFluentImpl Maven / Gradle / Ivy

There is a newer version: 6.13.4
Show newest version
package io.fabric8.kubernetes.api.model;

import java.util.ArrayList;
import java.util.RandomAccess;
import java.util.Map;
import java.util.Map;
import java.util.List;
import java.util.List;
import java.util.AbstractCollection;
import java.util.AbstractList;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.util.Collection;
import java.util.AbstractMap;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.Fluent;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.Builder;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.Nested;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;

public class PersistentVolumeSpecFluentImpl> extends BaseFluent implements PersistentVolumeSpecFluent{

     List accessModes = new ArrayList();     VisitableBuilder awsElasticBlockStore;     VisitableBuilder azureFile;     Map capacity = new HashMap();     VisitableBuilder cephfs;     VisitableBuilder cinder;     VisitableBuilder claimRef;     VisitableBuilder fc;     VisitableBuilder flexVolume;     VisitableBuilder flocker;     VisitableBuilder gcePersistentDisk;     VisitableBuilder glusterfs;     VisitableBuilder hostPath;     VisitableBuilder iscsi;     VisitableBuilder nfs;     String persistentVolumeReclaimPolicy;     VisitableBuilder rbd;     Map additionalProperties = new HashMap();
public PersistentVolumeSpecFluentImpl(){
    
}
public PersistentVolumeSpecFluentImpl( PersistentVolumeSpec instance ){
    this.withAccessModes(instance.getAccessModes()); this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); this.withAzureFile(instance.getAzureFile()); this.withCapacity(instance.getCapacity()); this.withCephfs(instance.getCephfs()); this.withCinder(instance.getCinder()); this.withClaimRef(instance.getClaimRef()); this.withFc(instance.getFc()); this.withFlexVolume(instance.getFlexVolume()); this.withFlocker(instance.getFlocker()); this.withGcePersistentDisk(instance.getGcePersistentDisk()); this.withGlusterfs(instance.getGlusterfs()); this.withHostPath(instance.getHostPath()); this.withIscsi(instance.getIscsi()); this.withNfs(instance.getNfs()); this.withPersistentVolumeReclaimPolicy(instance.getPersistentVolumeReclaimPolicy()); this.withRbd(instance.getRbd()); 
}

    public T addToAccessModes( String ...items){
    for (String item : items) {this.accessModes.add(item);} return (T)this;
    }
    public T removeFromAccessModes( String ...items){
    for (String item : items) {this.accessModes.remove(item);} return (T)this;
    }
    public List getAccessModes(){
    return this.accessModes;
    }
    public T withAccessModes( List accessModes){
    this.accessModes.clear();if (accessModes != null) {for (String item : accessModes){this.addToAccessModes(item);}} return (T) this;
    }
    public T withAccessModes( String ...accessModes){
    this.accessModes.clear(); if (accessModes != null) {for (String item :accessModes){ this.addToAccessModes(item);}} return (T) this;
    }
    public AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore(){
    return this.awsElasticBlockStore!=null?this.awsElasticBlockStore.build():null;
    }
    public T withAwsElasticBlockStore( AWSElasticBlockStoreVolumeSource awsElasticBlockStore){
    if (awsElasticBlockStore!=null){ this.awsElasticBlockStore= new AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); _visitables.add(this.awsElasticBlockStore);} return (T) this;
    }
    public AwsElasticBlockStoreNested withNewAwsElasticBlockStore(){
    return new AwsElasticBlockStoreNestedImpl();
    }
    public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike( AWSElasticBlockStoreVolumeSource item){
    return new AwsElasticBlockStoreNestedImpl(item);
    }
    public AwsElasticBlockStoreNested editAwsElasticBlockStore(){
    return withNewAwsElasticBlockStoreLike(getAwsElasticBlockStore());
    }
    public T withNewAwsElasticBlockStore( String fsType,  Integer partition,  Boolean readOnly,  String volumeID){
    return withAwsElasticBlockStore(new AWSElasticBlockStoreVolumeSource(fsType, partition, readOnly, volumeID));
    }
    public AzureFileVolumeSource getAzureFile(){
    return this.azureFile!=null?this.azureFile.build():null;
    }
    public T withAzureFile( AzureFileVolumeSource azureFile){
    if (azureFile!=null){ this.azureFile= new AzureFileVolumeSourceBuilder(azureFile); _visitables.add(this.azureFile);} return (T) this;
    }
    public AzureFileNested withNewAzureFile(){
    return new AzureFileNestedImpl();
    }
    public AzureFileNested withNewAzureFileLike( AzureFileVolumeSource item){
    return new AzureFileNestedImpl(item);
    }
    public AzureFileNested editAzureFile(){
    return withNewAzureFileLike(getAzureFile());
    }
    public T withNewAzureFile( Boolean readOnly,  String secretName,  String shareName){
    return withAzureFile(new AzureFileVolumeSource(readOnly, secretName, shareName));
    }
    public T addToCapacity( String key,  Quantity value){
    if(key != null && value != null) {this.capacity.put(key, value);} return (T)this;
    }
    public T addToCapacity( Map map){
    if(map != null) { this.capacity.putAll(map);} return (T)this;
    }
    public T removeFromCapacity( String key){
    if(key != null) {this.capacity.remove(key);} return (T)this;
    }
    public T removeFromCapacity( Map map){
    if(map != null) { for(Object key : map.keySet()) {this.capacity.remove(key);}} return (T)this;
    }
    public Map getCapacity(){
    return this.capacity;
    }
    public T withCapacity( Map capacity){
    this.capacity.clear();if (capacity != null) {this.capacity.putAll(capacity);} return (T) this;
    }
    public CephFSVolumeSource getCephfs(){
    return this.cephfs!=null?this.cephfs.build():null;
    }
    public T withCephfs( CephFSVolumeSource cephfs){
    if (cephfs!=null){ this.cephfs= new CephFSVolumeSourceBuilder(cephfs); _visitables.add(this.cephfs);} return (T) this;
    }
    public CephfsNested withNewCephfs(){
    return new CephfsNestedImpl();
    }
    public CephfsNested withNewCephfsLike( CephFSVolumeSource item){
    return new CephfsNestedImpl(item);
    }
    public CephfsNested editCephfs(){
    return withNewCephfsLike(getCephfs());
    }
    public CinderVolumeSource getCinder(){
    return this.cinder!=null?this.cinder.build():null;
    }
    public T withCinder( CinderVolumeSource cinder){
    if (cinder!=null){ this.cinder= new CinderVolumeSourceBuilder(cinder); _visitables.add(this.cinder);} return (T) this;
    }
    public CinderNested withNewCinder(){
    return new CinderNestedImpl();
    }
    public CinderNested withNewCinderLike( CinderVolumeSource item){
    return new CinderNestedImpl(item);
    }
    public CinderNested editCinder(){
    return withNewCinderLike(getCinder());
    }
    public T withNewCinder( String fsType,  Boolean readOnly,  String volumeID){
    return withCinder(new CinderVolumeSource(fsType, readOnly, volumeID));
    }
    public ObjectReference getClaimRef(){
    return this.claimRef!=null?this.claimRef.build():null;
    }
    public T withClaimRef( ObjectReference claimRef){
    if (claimRef!=null){ this.claimRef= new ObjectReferenceBuilder(claimRef); _visitables.add(this.claimRef);} return (T) this;
    }
    public ClaimRefNested withNewClaimRef(){
    return new ClaimRefNestedImpl();
    }
    public ClaimRefNested withNewClaimRefLike( ObjectReference item){
    return new ClaimRefNestedImpl(item);
    }
    public ClaimRefNested editClaimRef(){
    return withNewClaimRefLike(getClaimRef());
    }
    public FCVolumeSource getFc(){
    return this.fc!=null?this.fc.build():null;
    }
    public T withFc( FCVolumeSource fc){
    if (fc!=null){ this.fc= new FCVolumeSourceBuilder(fc); _visitables.add(this.fc);} return (T) this;
    }
    public FcNested withNewFc(){
    return new FcNestedImpl();
    }
    public FcNested withNewFcLike( FCVolumeSource item){
    return new FcNestedImpl(item);
    }
    public FcNested editFc(){
    return withNewFcLike(getFc());
    }
    public FlexVolumeSource getFlexVolume(){
    return this.flexVolume!=null?this.flexVolume.build():null;
    }
    public T withFlexVolume( FlexVolumeSource flexVolume){
    if (flexVolume!=null){ this.flexVolume= new FlexVolumeSourceBuilder(flexVolume); _visitables.add(this.flexVolume);} return (T) this;
    }
    public FlexVolumeNested withNewFlexVolume(){
    return new FlexVolumeNestedImpl();
    }
    public FlexVolumeNested withNewFlexVolumeLike( FlexVolumeSource item){
    return new FlexVolumeNestedImpl(item);
    }
    public FlexVolumeNested editFlexVolume(){
    return withNewFlexVolumeLike(getFlexVolume());
    }
    public FlockerVolumeSource getFlocker(){
    return this.flocker!=null?this.flocker.build():null;
    }
    public T withFlocker( FlockerVolumeSource flocker){
    if (flocker!=null){ this.flocker= new FlockerVolumeSourceBuilder(flocker); _visitables.add(this.flocker);} return (T) this;
    }
    public FlockerNested withNewFlocker(){
    return new FlockerNestedImpl();
    }
    public FlockerNested withNewFlockerLike( FlockerVolumeSource item){
    return new FlockerNestedImpl(item);
    }
    public FlockerNested editFlocker(){
    return withNewFlockerLike(getFlocker());
    }
    public T withNewFlocker( String datasetName){
    return withFlocker(new FlockerVolumeSource(datasetName));
    }
    public GCEPersistentDiskVolumeSource getGcePersistentDisk(){
    return this.gcePersistentDisk!=null?this.gcePersistentDisk.build():null;
    }
    public T withGcePersistentDisk( GCEPersistentDiskVolumeSource gcePersistentDisk){
    if (gcePersistentDisk!=null){ this.gcePersistentDisk= new GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); _visitables.add(this.gcePersistentDisk);} return (T) this;
    }
    public GcePersistentDiskNested withNewGcePersistentDisk(){
    return new GcePersistentDiskNestedImpl();
    }
    public GcePersistentDiskNested withNewGcePersistentDiskLike( GCEPersistentDiskVolumeSource item){
    return new GcePersistentDiskNestedImpl(item);
    }
    public GcePersistentDiskNested editGcePersistentDisk(){
    return withNewGcePersistentDiskLike(getGcePersistentDisk());
    }
    public T withNewGcePersistentDisk( String fsType,  Integer partition,  String pdName,  Boolean readOnly){
    return withGcePersistentDisk(new GCEPersistentDiskVolumeSource(fsType, partition, pdName, readOnly));
    }
    public GlusterfsVolumeSource getGlusterfs(){
    return this.glusterfs!=null?this.glusterfs.build():null;
    }
    public T withGlusterfs( GlusterfsVolumeSource glusterfs){
    if (glusterfs!=null){ this.glusterfs= new GlusterfsVolumeSourceBuilder(glusterfs); _visitables.add(this.glusterfs);} return (T) this;
    }
    public GlusterfsNested withNewGlusterfs(){
    return new GlusterfsNestedImpl();
    }
    public GlusterfsNested withNewGlusterfsLike( GlusterfsVolumeSource item){
    return new GlusterfsNestedImpl(item);
    }
    public GlusterfsNested editGlusterfs(){
    return withNewGlusterfsLike(getGlusterfs());
    }
    public T withNewGlusterfs( String endpoints,  String path,  Boolean readOnly){
    return withGlusterfs(new GlusterfsVolumeSource(endpoints, path, readOnly));
    }
    public HostPathVolumeSource getHostPath(){
    return this.hostPath!=null?this.hostPath.build():null;
    }
    public T withHostPath( HostPathVolumeSource hostPath){
    if (hostPath!=null){ this.hostPath= new HostPathVolumeSourceBuilder(hostPath); _visitables.add(this.hostPath);} return (T) this;
    }
    public HostPathNested withNewHostPath(){
    return new HostPathNestedImpl();
    }
    public HostPathNested withNewHostPathLike( HostPathVolumeSource item){
    return new HostPathNestedImpl(item);
    }
    public HostPathNested editHostPath(){
    return withNewHostPathLike(getHostPath());
    }
    public T withNewHostPath( String path){
    return withHostPath(new HostPathVolumeSource(path));
    }
    public ISCSIVolumeSource getIscsi(){
    return this.iscsi!=null?this.iscsi.build():null;
    }
    public T withIscsi( ISCSIVolumeSource iscsi){
    if (iscsi!=null){ this.iscsi= new ISCSIVolumeSourceBuilder(iscsi); _visitables.add(this.iscsi);} return (T) this;
    }
    public IscsiNested withNewIscsi(){
    return new IscsiNestedImpl();
    }
    public IscsiNested withNewIscsiLike( ISCSIVolumeSource item){
    return new IscsiNestedImpl(item);
    }
    public IscsiNested editIscsi(){
    return withNewIscsiLike(getIscsi());
    }
    public NFSVolumeSource getNfs(){
    return this.nfs!=null?this.nfs.build():null;
    }
    public T withNfs( NFSVolumeSource nfs){
    if (nfs!=null){ this.nfs= new NFSVolumeSourceBuilder(nfs); _visitables.add(this.nfs);} return (T) this;
    }
    public NfsNested withNewNfs(){
    return new NfsNestedImpl();
    }
    public NfsNested withNewNfsLike( NFSVolumeSource item){
    return new NfsNestedImpl(item);
    }
    public NfsNested editNfs(){
    return withNewNfsLike(getNfs());
    }
    public T withNewNfs( String path,  Boolean readOnly,  String server){
    return withNfs(new NFSVolumeSource(path, readOnly, server));
    }
    public String getPersistentVolumeReclaimPolicy(){
    return this.persistentVolumeReclaimPolicy;
    }
    public T withPersistentVolumeReclaimPolicy( String persistentVolumeReclaimPolicy){
    this.persistentVolumeReclaimPolicy=persistentVolumeReclaimPolicy; return (T) this;
    }
    public RBDVolumeSource getRbd(){
    return this.rbd!=null?this.rbd.build():null;
    }
    public T withRbd( RBDVolumeSource rbd){
    if (rbd!=null){ this.rbd= new RBDVolumeSourceBuilder(rbd); _visitables.add(this.rbd);} return (T) this;
    }
    public RbdNested withNewRbd(){
    return new RbdNestedImpl();
    }
    public RbdNested withNewRbdLike( RBDVolumeSource item){
    return new RbdNestedImpl(item);
    }
    public RbdNested editRbd(){
    return withNewRbdLike(getRbd());
    }
    public T addToAdditionalProperties( String key,  Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }
    public T addToAdditionalProperties( Map map){
    if(map != null) { this.additionalProperties.putAll(map);} return (T)this;
    }
    public T removeFromAdditionalProperties( String key){
    if(key != null) {this.additionalProperties.remove(key);} return (T)this;
    }
    public T removeFromAdditionalProperties( Map map){
    if(map != null) { for(Object key : map.keySet()) {this.additionalProperties.remove(key);}} 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 boolean equals( Object o){
    
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PersistentVolumeSpecFluentImpl that = (PersistentVolumeSpecFluentImpl) o;
if (accessModes != null ? !accessModes.equals(that.accessModes) :that.accessModes != null) return false;
if (awsElasticBlockStore != null ? !awsElasticBlockStore.equals(that.awsElasticBlockStore) :that.awsElasticBlockStore != null) return false;
if (azureFile != null ? !azureFile.equals(that.azureFile) :that.azureFile != null) return false;
if (capacity != null ? !capacity.equals(that.capacity) :that.capacity != null) return false;
if (cephfs != null ? !cephfs.equals(that.cephfs) :that.cephfs != null) return false;
if (cinder != null ? !cinder.equals(that.cinder) :that.cinder != null) return false;
if (claimRef != null ? !claimRef.equals(that.claimRef) :that.claimRef != null) return false;
if (fc != null ? !fc.equals(that.fc) :that.fc != null) return false;
if (flexVolume != null ? !flexVolume.equals(that.flexVolume) :that.flexVolume != null) return false;
if (flocker != null ? !flocker.equals(that.flocker) :that.flocker != null) return false;
if (gcePersistentDisk != null ? !gcePersistentDisk.equals(that.gcePersistentDisk) :that.gcePersistentDisk != null) return false;
if (glusterfs != null ? !glusterfs.equals(that.glusterfs) :that.glusterfs != null) return false;
if (hostPath != null ? !hostPath.equals(that.hostPath) :that.hostPath != null) return false;
if (iscsi != null ? !iscsi.equals(that.iscsi) :that.iscsi != null) return false;
if (nfs != null ? !nfs.equals(that.nfs) :that.nfs != null) return false;
if (persistentVolumeReclaimPolicy != null ? !persistentVolumeReclaimPolicy.equals(that.persistentVolumeReclaimPolicy) :that.persistentVolumeReclaimPolicy != null) return false;
if (rbd != null ? !rbd.equals(that.rbd) :that.rbd != null) return false;
if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
return true;

    }

    public class AwsElasticBlockStoreNestedImpl extends AWSElasticBlockStoreVolumeSourceFluentImpl> implements AwsElasticBlockStoreNested{

        private final AWSElasticBlockStoreVolumeSourceBuilder builder;
    
             AwsElasticBlockStoreNestedImpl (){
        this.builder = new AWSElasticBlockStoreVolumeSourceBuilder(this);
        }
             AwsElasticBlockStoreNestedImpl ( AWSElasticBlockStoreVolumeSource item){
        this.builder = new AWSElasticBlockStoreVolumeSourceBuilder(this, item);
        }
    
            public N endAwsElasticBlockStore(){
            return and();
        }
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withAwsElasticBlockStore(builder.build());
        }
    
}
    public class AzureFileNestedImpl extends AzureFileVolumeSourceFluentImpl> implements AzureFileNested{

        private final AzureFileVolumeSourceBuilder builder;
    
             AzureFileNestedImpl ( AzureFileVolumeSource item){
        this.builder = new AzureFileVolumeSourceBuilder(this, item);
        }
             AzureFileNestedImpl (){
        this.builder = new AzureFileVolumeSourceBuilder(this);
        }
    
            public N endAzureFile(){
            return and();
        }
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withAzureFile(builder.build());
        }
    
}
    public class CephfsNestedImpl extends CephFSVolumeSourceFluentImpl> implements CephfsNested{

        private final CephFSVolumeSourceBuilder builder;
    
             CephfsNestedImpl (){
        this.builder = new CephFSVolumeSourceBuilder(this);
        }
             CephfsNestedImpl ( CephFSVolumeSource item){
        this.builder = new CephFSVolumeSourceBuilder(this, item);
        }
    
            public N endCephfs(){
            return and();
        }
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withCephfs(builder.build());
        }
    
}
    public class CinderNestedImpl extends CinderVolumeSourceFluentImpl> implements CinderNested{

        private final CinderVolumeSourceBuilder builder;
    
             CinderNestedImpl (){
        this.builder = new CinderVolumeSourceBuilder(this);
        }
             CinderNestedImpl ( CinderVolumeSource item){
        this.builder = new CinderVolumeSourceBuilder(this, item);
        }
    
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withCinder(builder.build());
        }
            public N endCinder(){
            return and();
        }
    
}
    public class ClaimRefNestedImpl extends ObjectReferenceFluentImpl> implements ClaimRefNested{

        private final ObjectReferenceBuilder builder;
    
             ClaimRefNestedImpl (){
        this.builder = new ObjectReferenceBuilder(this);
        }
             ClaimRefNestedImpl ( ObjectReference item){
        this.builder = new ObjectReferenceBuilder(this, item);
        }
    
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withClaimRef(builder.build());
        }
            public N endClaimRef(){
            return and();
        }
    
}
    public class FcNestedImpl extends FCVolumeSourceFluentImpl> implements FcNested{

        private final FCVolumeSourceBuilder builder;
    
             FcNestedImpl (){
        this.builder = new FCVolumeSourceBuilder(this);
        }
             FcNestedImpl ( FCVolumeSource item){
        this.builder = new FCVolumeSourceBuilder(this, item);
        }
    
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withFc(builder.build());
        }
            public N endFc(){
            return and();
        }
    
}
    public class FlexVolumeNestedImpl extends FlexVolumeSourceFluentImpl> implements FlexVolumeNested{

        private final FlexVolumeSourceBuilder builder;
    
             FlexVolumeNestedImpl (){
        this.builder = new FlexVolumeSourceBuilder(this);
        }
             FlexVolumeNestedImpl ( FlexVolumeSource item){
        this.builder = new FlexVolumeSourceBuilder(this, item);
        }
    
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withFlexVolume(builder.build());
        }
            public N endFlexVolume(){
            return and();
        }
    
}
    public class FlockerNestedImpl extends FlockerVolumeSourceFluentImpl> implements FlockerNested{

        private final FlockerVolumeSourceBuilder builder;
    
             FlockerNestedImpl (){
        this.builder = new FlockerVolumeSourceBuilder(this);
        }
             FlockerNestedImpl ( FlockerVolumeSource item){
        this.builder = new FlockerVolumeSourceBuilder(this, item);
        }
    
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withFlocker(builder.build());
        }
            public N endFlocker(){
            return and();
        }
    
}
    public class GcePersistentDiskNestedImpl extends GCEPersistentDiskVolumeSourceFluentImpl> implements GcePersistentDiskNested{

        private final GCEPersistentDiskVolumeSourceBuilder builder;
    
             GcePersistentDiskNestedImpl (){
        this.builder = new GCEPersistentDiskVolumeSourceBuilder(this);
        }
             GcePersistentDiskNestedImpl ( GCEPersistentDiskVolumeSource item){
        this.builder = new GCEPersistentDiskVolumeSourceBuilder(this, item);
        }
    
            public N endGcePersistentDisk(){
            return and();
        }
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withGcePersistentDisk(builder.build());
        }
    
}
    public class GlusterfsNestedImpl extends GlusterfsVolumeSourceFluentImpl> implements GlusterfsNested{

        private final GlusterfsVolumeSourceBuilder builder;
    
             GlusterfsNestedImpl (){
        this.builder = new GlusterfsVolumeSourceBuilder(this);
        }
             GlusterfsNestedImpl ( GlusterfsVolumeSource item){
        this.builder = new GlusterfsVolumeSourceBuilder(this, item);
        }
    
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withGlusterfs(builder.build());
        }
            public N endGlusterfs(){
            return and();
        }
    
}
    public class HostPathNestedImpl extends HostPathVolumeSourceFluentImpl> implements HostPathNested{

        private final HostPathVolumeSourceBuilder builder;
    
             HostPathNestedImpl (){
        this.builder = new HostPathVolumeSourceBuilder(this);
        }
             HostPathNestedImpl ( HostPathVolumeSource item){
        this.builder = new HostPathVolumeSourceBuilder(this, item);
        }
    
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withHostPath(builder.build());
        }
            public N endHostPath(){
            return and();
        }
    
}
    public class IscsiNestedImpl extends ISCSIVolumeSourceFluentImpl> implements IscsiNested{

        private final ISCSIVolumeSourceBuilder builder;
    
             IscsiNestedImpl ( ISCSIVolumeSource item){
        this.builder = new ISCSIVolumeSourceBuilder(this, item);
        }
             IscsiNestedImpl (){
        this.builder = new ISCSIVolumeSourceBuilder(this);
        }
    
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withIscsi(builder.build());
        }
            public N endIscsi(){
            return and();
        }
    
}
    public class NfsNestedImpl extends NFSVolumeSourceFluentImpl> implements NfsNested{

        private final NFSVolumeSourceBuilder builder;
    
             NfsNestedImpl ( NFSVolumeSource item){
        this.builder = new NFSVolumeSourceBuilder(this, item);
        }
             NfsNestedImpl (){
        this.builder = new NFSVolumeSourceBuilder(this);
        }
    
            public N endNfs(){
            return and();
        }
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withNfs(builder.build());
        }
    
}
    public class RbdNestedImpl extends RBDVolumeSourceFluentImpl> implements RbdNested{

        private final RBDVolumeSourceBuilder builder;
    
             RbdNestedImpl (){
        this.builder = new RBDVolumeSourceBuilder(this);
        }
             RbdNestedImpl ( RBDVolumeSource item){
        this.builder = new RBDVolumeSourceBuilder(this, item);
        }
    
            public N and(){
            return (N) PersistentVolumeSpecFluentImpl.this.withRbd(builder.build());
        }
            public N endRbd(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy