io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import java.util.ArrayList;
import java.lang.String;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Boolean;
import java.lang.Object;
import java.util.Map;
import java.lang.Deprecated;
import java.util.LinkedHashMap;
import java.util.function.Predicate;
import java.util.List;
import java.util.Collection;
import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.Nested;
import io.kubernetes.client.custom.Quantity;
/**
* Generated
*/
@SuppressWarnings(value = "unchecked")
public class V1PersistentVolumeSpecFluentImpl> extends BaseFluent implements V1PersistentVolumeSpecFluent{
public V1PersistentVolumeSpecFluentImpl() {
}
public V1PersistentVolumeSpecFluentImpl(V1PersistentVolumeSpec instance) {
if (instance != null) {
this.withAccessModes(instance.getAccessModes());
this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore());
this.withAzureDisk(instance.getAzureDisk());
this.withAzureFile(instance.getAzureFile());
this.withCapacity(instance.getCapacity());
this.withCephfs(instance.getCephfs());
this.withCinder(instance.getCinder());
this.withClaimRef(instance.getClaimRef());
this.withCsi(instance.getCsi());
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.withLocal(instance.getLocal());
this.withMountOptions(instance.getMountOptions());
this.withNfs(instance.getNfs());
this.withNodeAffinity(instance.getNodeAffinity());
this.withPersistentVolumeReclaimPolicy(instance.getPersistentVolumeReclaimPolicy());
this.withPhotonPersistentDisk(instance.getPhotonPersistentDisk());
this.withPortworxVolume(instance.getPortworxVolume());
this.withQuobyte(instance.getQuobyte());
this.withRbd(instance.getRbd());
this.withScaleIO(instance.getScaleIO());
this.withStorageClassName(instance.getStorageClassName());
this.withStorageos(instance.getStorageos());
this.withVolumeMode(instance.getVolumeMode());
this.withVsphereVolume(instance.getVsphereVolume());
}
}
private List accessModes;
private V1AWSElasticBlockStoreVolumeSourceBuilder awsElasticBlockStore;
private V1AzureDiskVolumeSourceBuilder azureDisk;
private V1AzureFilePersistentVolumeSourceBuilder azureFile;
private Map capacity;
private V1CephFSPersistentVolumeSourceBuilder cephfs;
private V1CinderPersistentVolumeSourceBuilder cinder;
private V1ObjectReferenceBuilder claimRef;
private V1CSIPersistentVolumeSourceBuilder csi;
private V1FCVolumeSourceBuilder fc;
private V1FlexPersistentVolumeSourceBuilder flexVolume;
private V1FlockerVolumeSourceBuilder flocker;
private V1GCEPersistentDiskVolumeSourceBuilder gcePersistentDisk;
private V1GlusterfsPersistentVolumeSourceBuilder glusterfs;
private V1HostPathVolumeSourceBuilder hostPath;
private V1ISCSIPersistentVolumeSourceBuilder iscsi;
private V1LocalVolumeSourceBuilder local;
private List mountOptions;
private V1NFSVolumeSourceBuilder nfs;
private V1VolumeNodeAffinityBuilder nodeAffinity;
private String persistentVolumeReclaimPolicy;
private V1PhotonPersistentDiskVolumeSourceBuilder photonPersistentDisk;
private V1PortworxVolumeSourceBuilder portworxVolume;
private V1QuobyteVolumeSourceBuilder quobyte;
private V1RBDPersistentVolumeSourceBuilder rbd;
private V1ScaleIOPersistentVolumeSourceBuilder scaleIO;
private String storageClassName;
private V1StorageOSPersistentVolumeSourceBuilder storageos;
private String volumeMode;
private V1VsphereVirtualDiskVolumeSourceBuilder vsphereVolume;
public A addToAccessModes(int index,String item) {
if (this.accessModes == null) {this.accessModes = new ArrayList();}
this.accessModes.add(index, item);
return (A)this;
}
public A setToAccessModes(int index,String item) {
if (this.accessModes == null) {this.accessModes = new ArrayList();}
this.accessModes.set(index, item); return (A)this;
}
public A addToAccessModes(java.lang.String... items) {
if (this.accessModes == null) {this.accessModes = new ArrayList();}
for (String item : items) {this.accessModes.add(item);} return (A)this;
}
public A addAllToAccessModes(Collection items) {
if (this.accessModes == null) {this.accessModes = new ArrayList();}
for (String item : items) {this.accessModes.add(item);} return (A)this;
}
public A removeFromAccessModes(java.lang.String... items) {
for (String item : items) {if (this.accessModes!= null){ this.accessModes.remove(item);}} return (A)this;
}
public A removeAllFromAccessModes(Collection items) {
for (String item : items) {if (this.accessModes!= null){ this.accessModes.remove(item);}} return (A)this;
}
public List getAccessModes() {
return this.accessModes;
}
public String getAccessMode(int index) {
return this.accessModes.get(index);
}
public String getFirstAccessMode() {
return this.accessModes.get(0);
}
public String getLastAccessMode() {
return this.accessModes.get(accessModes.size() - 1);
}
public String getMatchingAccessMode(Predicate predicate) {
for (String item: accessModes) { if(predicate.test(item)){ return item;} } return null;
}
public Boolean hasMatchingAccessMode(Predicate predicate) {
for (String item: accessModes) { if(predicate.test(item)){ return true;} } return false;
}
public A withAccessModes(List accessModes) {
if (accessModes != null) {this.accessModes = new ArrayList(); for (String item : accessModes){this.addToAccessModes(item);}} else { this.accessModes = null;} return (A) this;
}
public A withAccessModes(java.lang.String... accessModes) {
if (this.accessModes != null) {this.accessModes.clear(); _visitables.remove("accessModes"); }
if (accessModes != null) {for (String item :accessModes){ this.addToAccessModes(item);}} return (A) this;
}
public Boolean hasAccessModes() {
return accessModes != null && !accessModes.isEmpty();
}
/**
* This method has been deprecated, please use method buildAwsElasticBlockStore instead.
* @return The buildable object.
*/
@Deprecated
public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() {
return this.awsElasticBlockStore!=null ?this.awsElasticBlockStore.build():null;
}
public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() {
return this.awsElasticBlockStore!=null ?this.awsElasticBlockStore.build():null;
}
public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) {
_visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore);
if (awsElasticBlockStore!=null){ this.awsElasticBlockStore= new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); _visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore);} else { this.awsElasticBlockStore = null; _visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); } return (A) this;
}
public Boolean hasAwsElasticBlockStore() {
return this.awsElasticBlockStore != null;
}
public V1PersistentVolumeSpecFluentImpl.AwsElasticBlockStoreNested withNewAwsElasticBlockStore() {
return new V1PersistentVolumeSpecFluentImpl.AwsElasticBlockStoreNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.AwsElasticBlockStoreNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.AwsElasticBlockStoreNested editAwsElasticBlockStore() {
return withNewAwsElasticBlockStoreLike(getAwsElasticBlockStore());
}
public V1PersistentVolumeSpecFluentImpl.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() {
return withNewAwsElasticBlockStoreLike(getAwsElasticBlockStore() != null ? getAwsElasticBlockStore(): new V1AWSElasticBlockStoreVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) {
return withNewAwsElasticBlockStoreLike(getAwsElasticBlockStore() != null ? getAwsElasticBlockStore(): item);
}
/**
* This method has been deprecated, please use method buildAzureDisk instead.
* @return The buildable object.
*/
@Deprecated
public V1AzureDiskVolumeSource getAzureDisk() {
return this.azureDisk!=null ?this.azureDisk.build():null;
}
public V1AzureDiskVolumeSource buildAzureDisk() {
return this.azureDisk!=null ?this.azureDisk.build():null;
}
public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) {
_visitables.get("azureDisk").remove(this.azureDisk);
if (azureDisk!=null){ this.azureDisk= new V1AzureDiskVolumeSourceBuilder(azureDisk); _visitables.get("azureDisk").add(this.azureDisk);} else { this.azureDisk = null; _visitables.get("azureDisk").remove(this.azureDisk); } return (A) this;
}
public Boolean hasAzureDisk() {
return this.azureDisk != null;
}
public V1PersistentVolumeSpecFluentImpl.AzureDiskNested withNewAzureDisk() {
return new V1PersistentVolumeSpecFluentImpl.AzureDiskNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.AzureDiskNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.AzureDiskNested editAzureDisk() {
return withNewAzureDiskLike(getAzureDisk());
}
public V1PersistentVolumeSpecFluentImpl.AzureDiskNested editOrNewAzureDisk() {
return withNewAzureDiskLike(getAzureDisk() != null ? getAzureDisk(): new V1AzureDiskVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) {
return withNewAzureDiskLike(getAzureDisk() != null ? getAzureDisk(): item);
}
/**
* This method has been deprecated, please use method buildAzureFile instead.
* @return The buildable object.
*/
@Deprecated
public V1AzureFilePersistentVolumeSource getAzureFile() {
return this.azureFile!=null ?this.azureFile.build():null;
}
public V1AzureFilePersistentVolumeSource buildAzureFile() {
return this.azureFile!=null ?this.azureFile.build():null;
}
public A withAzureFile(V1AzureFilePersistentVolumeSource azureFile) {
_visitables.get("azureFile").remove(this.azureFile);
if (azureFile!=null){ this.azureFile= new V1AzureFilePersistentVolumeSourceBuilder(azureFile); _visitables.get("azureFile").add(this.azureFile);} else { this.azureFile = null; _visitables.get("azureFile").remove(this.azureFile); } return (A) this;
}
public Boolean hasAzureFile() {
return this.azureFile != null;
}
public V1PersistentVolumeSpecFluentImpl.AzureFileNested withNewAzureFile() {
return new V1PersistentVolumeSpecFluentImpl.AzureFileNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.AzureFileNested withNewAzureFileLike(V1AzureFilePersistentVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.AzureFileNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.AzureFileNested editAzureFile() {
return withNewAzureFileLike(getAzureFile());
}
public V1PersistentVolumeSpecFluentImpl.AzureFileNested editOrNewAzureFile() {
return withNewAzureFileLike(getAzureFile() != null ? getAzureFile(): new V1AzureFilePersistentVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.AzureFileNested editOrNewAzureFileLike(V1AzureFilePersistentVolumeSource item) {
return withNewAzureFileLike(getAzureFile() != null ? getAzureFile(): item);
}
public A addToCapacity(String key,Quantity value) {
if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); }
if(key != null && value != null) {this.capacity.put(key, value);} return (A)this;
}
public A addToCapacity(Map map) {
if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); }
if(map != null) { this.capacity.putAll(map);} return (A)this;
}
public A removeFromCapacity(String key) {
if(this.capacity == null) { return (A) this; }
if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this;
}
public A removeFromCapacity(Map map) {
if(this.capacity == null) { return (A) this; }
if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this;
}
public Map getCapacity() {
return this.capacity;
}
public A withCapacity(Map capacity) {
if (capacity == null) { this.capacity = null;} else {this.capacity = new LinkedHashMap(capacity);} return (A) this;
}
public Boolean hasCapacity() {
return this.capacity != null;
}
/**
* This method has been deprecated, please use method buildCephfs instead.
* @return The buildable object.
*/
@Deprecated
public V1CephFSPersistentVolumeSource getCephfs() {
return this.cephfs!=null ?this.cephfs.build():null;
}
public V1CephFSPersistentVolumeSource buildCephfs() {
return this.cephfs!=null ?this.cephfs.build():null;
}
public A withCephfs(V1CephFSPersistentVolumeSource cephfs) {
_visitables.get("cephfs").remove(this.cephfs);
if (cephfs!=null){ this.cephfs= new V1CephFSPersistentVolumeSourceBuilder(cephfs); _visitables.get("cephfs").add(this.cephfs);} else { this.cephfs = null; _visitables.get("cephfs").remove(this.cephfs); } return (A) this;
}
public Boolean hasCephfs() {
return this.cephfs != null;
}
public V1PersistentVolumeSpecFluentImpl.CephfsNested withNewCephfs() {
return new V1PersistentVolumeSpecFluentImpl.CephfsNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.CephfsNested withNewCephfsLike(V1CephFSPersistentVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.CephfsNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.CephfsNested editCephfs() {
return withNewCephfsLike(getCephfs());
}
public V1PersistentVolumeSpecFluentImpl.CephfsNested editOrNewCephfs() {
return withNewCephfsLike(getCephfs() != null ? getCephfs(): new V1CephFSPersistentVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.CephfsNested editOrNewCephfsLike(V1CephFSPersistentVolumeSource item) {
return withNewCephfsLike(getCephfs() != null ? getCephfs(): item);
}
/**
* This method has been deprecated, please use method buildCinder instead.
* @return The buildable object.
*/
@Deprecated
public V1CinderPersistentVolumeSource getCinder() {
return this.cinder!=null ?this.cinder.build():null;
}
public V1CinderPersistentVolumeSource buildCinder() {
return this.cinder!=null ?this.cinder.build():null;
}
public A withCinder(V1CinderPersistentVolumeSource cinder) {
_visitables.get("cinder").remove(this.cinder);
if (cinder!=null){ this.cinder= new V1CinderPersistentVolumeSourceBuilder(cinder); _visitables.get("cinder").add(this.cinder);} else { this.cinder = null; _visitables.get("cinder").remove(this.cinder); } return (A) this;
}
public Boolean hasCinder() {
return this.cinder != null;
}
public V1PersistentVolumeSpecFluentImpl.CinderNested withNewCinder() {
return new V1PersistentVolumeSpecFluentImpl.CinderNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.CinderNested withNewCinderLike(V1CinderPersistentVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.CinderNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.CinderNested editCinder() {
return withNewCinderLike(getCinder());
}
public V1PersistentVolumeSpecFluentImpl.CinderNested editOrNewCinder() {
return withNewCinderLike(getCinder() != null ? getCinder(): new V1CinderPersistentVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.CinderNested editOrNewCinderLike(V1CinderPersistentVolumeSource item) {
return withNewCinderLike(getCinder() != null ? getCinder(): item);
}
/**
* This method has been deprecated, please use method buildClaimRef instead.
* @return The buildable object.
*/
@Deprecated
public V1ObjectReference getClaimRef() {
return this.claimRef!=null ?this.claimRef.build():null;
}
public V1ObjectReference buildClaimRef() {
return this.claimRef!=null ?this.claimRef.build():null;
}
public A withClaimRef(V1ObjectReference claimRef) {
_visitables.get("claimRef").remove(this.claimRef);
if (claimRef!=null){ this.claimRef= new V1ObjectReferenceBuilder(claimRef); _visitables.get("claimRef").add(this.claimRef);} else { this.claimRef = null; _visitables.get("claimRef").remove(this.claimRef); } return (A) this;
}
public Boolean hasClaimRef() {
return this.claimRef != null;
}
public V1PersistentVolumeSpecFluentImpl.ClaimRefNested withNewClaimRef() {
return new V1PersistentVolumeSpecFluentImpl.ClaimRefNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.ClaimRefNested withNewClaimRefLike(V1ObjectReference item) {
return new V1PersistentVolumeSpecFluentImpl.ClaimRefNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.ClaimRefNested editClaimRef() {
return withNewClaimRefLike(getClaimRef());
}
public V1PersistentVolumeSpecFluentImpl.ClaimRefNested editOrNewClaimRef() {
return withNewClaimRefLike(getClaimRef() != null ? getClaimRef(): new V1ObjectReferenceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.ClaimRefNested editOrNewClaimRefLike(V1ObjectReference item) {
return withNewClaimRefLike(getClaimRef() != null ? getClaimRef(): item);
}
/**
* This method has been deprecated, please use method buildCsi instead.
* @return The buildable object.
*/
@Deprecated
public V1CSIPersistentVolumeSource getCsi() {
return this.csi!=null ?this.csi.build():null;
}
public V1CSIPersistentVolumeSource buildCsi() {
return this.csi!=null ?this.csi.build():null;
}
public A withCsi(V1CSIPersistentVolumeSource csi) {
_visitables.get("csi").remove(this.csi);
if (csi!=null){ this.csi= new V1CSIPersistentVolumeSourceBuilder(csi); _visitables.get("csi").add(this.csi);} else { this.csi = null; _visitables.get("csi").remove(this.csi); } return (A) this;
}
public Boolean hasCsi() {
return this.csi != null;
}
public V1PersistentVolumeSpecFluentImpl.CsiNested withNewCsi() {
return new V1PersistentVolumeSpecFluentImpl.CsiNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.CsiNested withNewCsiLike(V1CSIPersistentVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.CsiNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.CsiNested editCsi() {
return withNewCsiLike(getCsi());
}
public V1PersistentVolumeSpecFluentImpl.CsiNested editOrNewCsi() {
return withNewCsiLike(getCsi() != null ? getCsi(): new V1CSIPersistentVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.CsiNested editOrNewCsiLike(V1CSIPersistentVolumeSource item) {
return withNewCsiLike(getCsi() != null ? getCsi(): item);
}
/**
* This method has been deprecated, please use method buildFc instead.
* @return The buildable object.
*/
@Deprecated
public V1FCVolumeSource getFc() {
return this.fc!=null ?this.fc.build():null;
}
public V1FCVolumeSource buildFc() {
return this.fc!=null ?this.fc.build():null;
}
public A withFc(V1FCVolumeSource fc) {
_visitables.get("fc").remove(this.fc);
if (fc!=null){ this.fc= new V1FCVolumeSourceBuilder(fc); _visitables.get("fc").add(this.fc);} else { this.fc = null; _visitables.get("fc").remove(this.fc); } return (A) this;
}
public Boolean hasFc() {
return this.fc != null;
}
public V1PersistentVolumeSpecFluentImpl.FcNested withNewFc() {
return new V1PersistentVolumeSpecFluentImpl.FcNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.FcNested withNewFcLike(V1FCVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.FcNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.FcNested editFc() {
return withNewFcLike(getFc());
}
public V1PersistentVolumeSpecFluentImpl.FcNested editOrNewFc() {
return withNewFcLike(getFc() != null ? getFc(): new V1FCVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.FcNested editOrNewFcLike(V1FCVolumeSource item) {
return withNewFcLike(getFc() != null ? getFc(): item);
}
/**
* This method has been deprecated, please use method buildFlexVolume instead.
* @return The buildable object.
*/
@Deprecated
public V1FlexPersistentVolumeSource getFlexVolume() {
return this.flexVolume!=null ?this.flexVolume.build():null;
}
public V1FlexPersistentVolumeSource buildFlexVolume() {
return this.flexVolume!=null ?this.flexVolume.build():null;
}
public A withFlexVolume(V1FlexPersistentVolumeSource flexVolume) {
_visitables.get("flexVolume").remove(this.flexVolume);
if (flexVolume!=null){ this.flexVolume= new V1FlexPersistentVolumeSourceBuilder(flexVolume); _visitables.get("flexVolume").add(this.flexVolume);} else { this.flexVolume = null; _visitables.get("flexVolume").remove(this.flexVolume); } return (A) this;
}
public Boolean hasFlexVolume() {
return this.flexVolume != null;
}
public V1PersistentVolumeSpecFluentImpl.FlexVolumeNested withNewFlexVolume() {
return new V1PersistentVolumeSpecFluentImpl.FlexVolumeNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.FlexVolumeNested withNewFlexVolumeLike(V1FlexPersistentVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.FlexVolumeNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.FlexVolumeNested editFlexVolume() {
return withNewFlexVolumeLike(getFlexVolume());
}
public V1PersistentVolumeSpecFluentImpl.FlexVolumeNested editOrNewFlexVolume() {
return withNewFlexVolumeLike(getFlexVolume() != null ? getFlexVolume(): new V1FlexPersistentVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.FlexVolumeNested editOrNewFlexVolumeLike(V1FlexPersistentVolumeSource item) {
return withNewFlexVolumeLike(getFlexVolume() != null ? getFlexVolume(): item);
}
/**
* This method has been deprecated, please use method buildFlocker instead.
* @return The buildable object.
*/
@Deprecated
public V1FlockerVolumeSource getFlocker() {
return this.flocker!=null ?this.flocker.build():null;
}
public V1FlockerVolumeSource buildFlocker() {
return this.flocker!=null ?this.flocker.build():null;
}
public A withFlocker(V1FlockerVolumeSource flocker) {
_visitables.get("flocker").remove(this.flocker);
if (flocker!=null){ this.flocker= new V1FlockerVolumeSourceBuilder(flocker); _visitables.get("flocker").add(this.flocker);} else { this.flocker = null; _visitables.get("flocker").remove(this.flocker); } return (A) this;
}
public Boolean hasFlocker() {
return this.flocker != null;
}
public V1PersistentVolumeSpecFluentImpl.FlockerNested withNewFlocker() {
return new V1PersistentVolumeSpecFluentImpl.FlockerNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.FlockerNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.FlockerNested editFlocker() {
return withNewFlockerLike(getFlocker());
}
public V1PersistentVolumeSpecFluentImpl.FlockerNested editOrNewFlocker() {
return withNewFlockerLike(getFlocker() != null ? getFlocker(): new V1FlockerVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) {
return withNewFlockerLike(getFlocker() != null ? getFlocker(): item);
}
/**
* This method has been deprecated, please use method buildGcePersistentDisk instead.
* @return The buildable object.
*/
@Deprecated
public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() {
return this.gcePersistentDisk!=null ?this.gcePersistentDisk.build():null;
}
public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() {
return this.gcePersistentDisk!=null ?this.gcePersistentDisk.build():null;
}
public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) {
_visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk);
if (gcePersistentDisk!=null){ this.gcePersistentDisk= new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); _visitables.get("gcePersistentDisk").add(this.gcePersistentDisk);} else { this.gcePersistentDisk = null; _visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); } return (A) this;
}
public Boolean hasGcePersistentDisk() {
return this.gcePersistentDisk != null;
}
public V1PersistentVolumeSpecFluentImpl.GcePersistentDiskNested withNewGcePersistentDisk() {
return new V1PersistentVolumeSpecFluentImpl.GcePersistentDiskNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.GcePersistentDiskNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.GcePersistentDiskNested editGcePersistentDisk() {
return withNewGcePersistentDiskLike(getGcePersistentDisk());
}
public V1PersistentVolumeSpecFluentImpl.GcePersistentDiskNested editOrNewGcePersistentDisk() {
return withNewGcePersistentDiskLike(getGcePersistentDisk() != null ? getGcePersistentDisk(): new V1GCEPersistentDiskVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) {
return withNewGcePersistentDiskLike(getGcePersistentDisk() != null ? getGcePersistentDisk(): item);
}
/**
* This method has been deprecated, please use method buildGlusterfs instead.
* @return The buildable object.
*/
@Deprecated
public V1GlusterfsPersistentVolumeSource getGlusterfs() {
return this.glusterfs!=null ?this.glusterfs.build():null;
}
public V1GlusterfsPersistentVolumeSource buildGlusterfs() {
return this.glusterfs!=null ?this.glusterfs.build():null;
}
public A withGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs) {
_visitables.get("glusterfs").remove(this.glusterfs);
if (glusterfs!=null){ this.glusterfs= new V1GlusterfsPersistentVolumeSourceBuilder(glusterfs); _visitables.get("glusterfs").add(this.glusterfs);} else { this.glusterfs = null; _visitables.get("glusterfs").remove(this.glusterfs); } return (A) this;
}
public Boolean hasGlusterfs() {
return this.glusterfs != null;
}
public V1PersistentVolumeSpecFluentImpl.GlusterfsNested withNewGlusterfs() {
return new V1PersistentVolumeSpecFluentImpl.GlusterfsNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.GlusterfsNested withNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.GlusterfsNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.GlusterfsNested editGlusterfs() {
return withNewGlusterfsLike(getGlusterfs());
}
public V1PersistentVolumeSpecFluentImpl.GlusterfsNested editOrNewGlusterfs() {
return withNewGlusterfsLike(getGlusterfs() != null ? getGlusterfs(): new V1GlusterfsPersistentVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) {
return withNewGlusterfsLike(getGlusterfs() != null ? getGlusterfs(): item);
}
/**
* This method has been deprecated, please use method buildHostPath instead.
* @return The buildable object.
*/
@Deprecated
public V1HostPathVolumeSource getHostPath() {
return this.hostPath!=null ?this.hostPath.build():null;
}
public V1HostPathVolumeSource buildHostPath() {
return this.hostPath!=null ?this.hostPath.build():null;
}
public A withHostPath(V1HostPathVolumeSource hostPath) {
_visitables.get("hostPath").remove(this.hostPath);
if (hostPath!=null){ this.hostPath= new V1HostPathVolumeSourceBuilder(hostPath); _visitables.get("hostPath").add(this.hostPath);} else { this.hostPath = null; _visitables.get("hostPath").remove(this.hostPath); } return (A) this;
}
public Boolean hasHostPath() {
return this.hostPath != null;
}
public V1PersistentVolumeSpecFluentImpl.HostPathNested withNewHostPath() {
return new V1PersistentVolumeSpecFluentImpl.HostPathNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.HostPathNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.HostPathNested editHostPath() {
return withNewHostPathLike(getHostPath());
}
public V1PersistentVolumeSpecFluentImpl.HostPathNested editOrNewHostPath() {
return withNewHostPathLike(getHostPath() != null ? getHostPath(): new V1HostPathVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) {
return withNewHostPathLike(getHostPath() != null ? getHostPath(): item);
}
/**
* This method has been deprecated, please use method buildIscsi instead.
* @return The buildable object.
*/
@Deprecated
public V1ISCSIPersistentVolumeSource getIscsi() {
return this.iscsi!=null ?this.iscsi.build():null;
}
public V1ISCSIPersistentVolumeSource buildIscsi() {
return this.iscsi!=null ?this.iscsi.build():null;
}
public A withIscsi(V1ISCSIPersistentVolumeSource iscsi) {
_visitables.get("iscsi").remove(this.iscsi);
if (iscsi!=null){ this.iscsi= new V1ISCSIPersistentVolumeSourceBuilder(iscsi); _visitables.get("iscsi").add(this.iscsi);} else { this.iscsi = null; _visitables.get("iscsi").remove(this.iscsi); } return (A) this;
}
public Boolean hasIscsi() {
return this.iscsi != null;
}
public V1PersistentVolumeSpecFluentImpl.IscsiNested withNewIscsi() {
return new V1PersistentVolumeSpecFluentImpl.IscsiNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.IscsiNested withNewIscsiLike(V1ISCSIPersistentVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.IscsiNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.IscsiNested editIscsi() {
return withNewIscsiLike(getIscsi());
}
public V1PersistentVolumeSpecFluentImpl.IscsiNested editOrNewIscsi() {
return withNewIscsiLike(getIscsi() != null ? getIscsi(): new V1ISCSIPersistentVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.IscsiNested editOrNewIscsiLike(V1ISCSIPersistentVolumeSource item) {
return withNewIscsiLike(getIscsi() != null ? getIscsi(): item);
}
/**
* This method has been deprecated, please use method buildLocal instead.
* @return The buildable object.
*/
@Deprecated
public V1LocalVolumeSource getLocal() {
return this.local!=null ?this.local.build():null;
}
public V1LocalVolumeSource buildLocal() {
return this.local!=null ?this.local.build():null;
}
public A withLocal(V1LocalVolumeSource local) {
_visitables.get("local").remove(this.local);
if (local!=null){ this.local= new V1LocalVolumeSourceBuilder(local); _visitables.get("local").add(this.local);} else { this.local = null; _visitables.get("local").remove(this.local); } return (A) this;
}
public Boolean hasLocal() {
return this.local != null;
}
public V1PersistentVolumeSpecFluentImpl.LocalNested withNewLocal() {
return new V1PersistentVolumeSpecFluentImpl.LocalNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.LocalNested withNewLocalLike(V1LocalVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.LocalNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.LocalNested editLocal() {
return withNewLocalLike(getLocal());
}
public V1PersistentVolumeSpecFluentImpl.LocalNested editOrNewLocal() {
return withNewLocalLike(getLocal() != null ? getLocal(): new V1LocalVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.LocalNested editOrNewLocalLike(V1LocalVolumeSource item) {
return withNewLocalLike(getLocal() != null ? getLocal(): item);
}
public A addToMountOptions(int index,String item) {
if (this.mountOptions == null) {this.mountOptions = new ArrayList();}
this.mountOptions.add(index, item);
return (A)this;
}
public A setToMountOptions(int index,String item) {
if (this.mountOptions == null) {this.mountOptions = new ArrayList();}
this.mountOptions.set(index, item); return (A)this;
}
public A addToMountOptions(java.lang.String... items) {
if (this.mountOptions == null) {this.mountOptions = new ArrayList();}
for (String item : items) {this.mountOptions.add(item);} return (A)this;
}
public A addAllToMountOptions(Collection items) {
if (this.mountOptions == null) {this.mountOptions = new ArrayList();}
for (String item : items) {this.mountOptions.add(item);} return (A)this;
}
public A removeFromMountOptions(java.lang.String... items) {
for (String item : items) {if (this.mountOptions!= null){ this.mountOptions.remove(item);}} return (A)this;
}
public A removeAllFromMountOptions(Collection items) {
for (String item : items) {if (this.mountOptions!= null){ this.mountOptions.remove(item);}} return (A)this;
}
public List getMountOptions() {
return this.mountOptions;
}
public String getMountOption(int index) {
return this.mountOptions.get(index);
}
public String getFirstMountOption() {
return this.mountOptions.get(0);
}
public String getLastMountOption() {
return this.mountOptions.get(mountOptions.size() - 1);
}
public String getMatchingMountOption(Predicate predicate) {
for (String item: mountOptions) { if(predicate.test(item)){ return item;} } return null;
}
public Boolean hasMatchingMountOption(Predicate predicate) {
for (String item: mountOptions) { if(predicate.test(item)){ return true;} } return false;
}
public A withMountOptions(List mountOptions) {
if (mountOptions != null) {this.mountOptions = new ArrayList(); for (String item : mountOptions){this.addToMountOptions(item);}} else { this.mountOptions = null;} return (A) this;
}
public A withMountOptions(java.lang.String... mountOptions) {
if (this.mountOptions != null) {this.mountOptions.clear(); _visitables.remove("mountOptions"); }
if (mountOptions != null) {for (String item :mountOptions){ this.addToMountOptions(item);}} return (A) this;
}
public Boolean hasMountOptions() {
return mountOptions != null && !mountOptions.isEmpty();
}
/**
* This method has been deprecated, please use method buildNfs instead.
* @return The buildable object.
*/
@Deprecated
public V1NFSVolumeSource getNfs() {
return this.nfs!=null ?this.nfs.build():null;
}
public V1NFSVolumeSource buildNfs() {
return this.nfs!=null ?this.nfs.build():null;
}
public A withNfs(V1NFSVolumeSource nfs) {
_visitables.get("nfs").remove(this.nfs);
if (nfs!=null){ this.nfs= new V1NFSVolumeSourceBuilder(nfs); _visitables.get("nfs").add(this.nfs);} else { this.nfs = null; _visitables.get("nfs").remove(this.nfs); } return (A) this;
}
public Boolean hasNfs() {
return this.nfs != null;
}
public V1PersistentVolumeSpecFluentImpl.NfsNested withNewNfs() {
return new V1PersistentVolumeSpecFluentImpl.NfsNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.NfsNested withNewNfsLike(V1NFSVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.NfsNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.NfsNested editNfs() {
return withNewNfsLike(getNfs());
}
public V1PersistentVolumeSpecFluentImpl.NfsNested editOrNewNfs() {
return withNewNfsLike(getNfs() != null ? getNfs(): new V1NFSVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.NfsNested editOrNewNfsLike(V1NFSVolumeSource item) {
return withNewNfsLike(getNfs() != null ? getNfs(): item);
}
/**
* This method has been deprecated, please use method buildNodeAffinity instead.
* @return The buildable object.
*/
@Deprecated
public V1VolumeNodeAffinity getNodeAffinity() {
return this.nodeAffinity!=null ?this.nodeAffinity.build():null;
}
public V1VolumeNodeAffinity buildNodeAffinity() {
return this.nodeAffinity!=null ?this.nodeAffinity.build():null;
}
public A withNodeAffinity(V1VolumeNodeAffinity nodeAffinity) {
_visitables.get("nodeAffinity").remove(this.nodeAffinity);
if (nodeAffinity!=null){ this.nodeAffinity= new V1VolumeNodeAffinityBuilder(nodeAffinity); _visitables.get("nodeAffinity").add(this.nodeAffinity);} else { this.nodeAffinity = null; _visitables.get("nodeAffinity").remove(this.nodeAffinity); } return (A) this;
}
public Boolean hasNodeAffinity() {
return this.nodeAffinity != null;
}
public V1PersistentVolumeSpecFluentImpl.NodeAffinityNested withNewNodeAffinity() {
return new V1PersistentVolumeSpecFluentImpl.NodeAffinityNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.NodeAffinityNested withNewNodeAffinityLike(V1VolumeNodeAffinity item) {
return new V1PersistentVolumeSpecFluentImpl.NodeAffinityNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.NodeAffinityNested editNodeAffinity() {
return withNewNodeAffinityLike(getNodeAffinity());
}
public V1PersistentVolumeSpecFluentImpl.NodeAffinityNested editOrNewNodeAffinity() {
return withNewNodeAffinityLike(getNodeAffinity() != null ? getNodeAffinity(): new V1VolumeNodeAffinityBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.NodeAffinityNested editOrNewNodeAffinityLike(V1VolumeNodeAffinity item) {
return withNewNodeAffinityLike(getNodeAffinity() != null ? getNodeAffinity(): item);
}
public String getPersistentVolumeReclaimPolicy() {
return this.persistentVolumeReclaimPolicy;
}
public A withPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy) {
this.persistentVolumeReclaimPolicy=persistentVolumeReclaimPolicy; return (A) this;
}
public Boolean hasPersistentVolumeReclaimPolicy() {
return this.persistentVolumeReclaimPolicy != null;
}
/**
* This method has been deprecated, please use method buildPhotonPersistentDisk instead.
* @return The buildable object.
*/
@Deprecated
public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() {
return this.photonPersistentDisk!=null ?this.photonPersistentDisk.build():null;
}
public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() {
return this.photonPersistentDisk!=null ?this.photonPersistentDisk.build():null;
}
public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) {
_visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk);
if (photonPersistentDisk!=null){ this.photonPersistentDisk= new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); _visitables.get("photonPersistentDisk").add(this.photonPersistentDisk);} else { this.photonPersistentDisk = null; _visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); } return (A) this;
}
public Boolean hasPhotonPersistentDisk() {
return this.photonPersistentDisk != null;
}
public V1PersistentVolumeSpecFluentImpl.PhotonPersistentDiskNested withNewPhotonPersistentDisk() {
return new V1PersistentVolumeSpecFluentImpl.PhotonPersistentDiskNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.PhotonPersistentDiskNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.PhotonPersistentDiskNested editPhotonPersistentDisk() {
return withNewPhotonPersistentDiskLike(getPhotonPersistentDisk());
}
public V1PersistentVolumeSpecFluentImpl.PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() {
return withNewPhotonPersistentDiskLike(getPhotonPersistentDisk() != null ? getPhotonPersistentDisk(): new V1PhotonPersistentDiskVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) {
return withNewPhotonPersistentDiskLike(getPhotonPersistentDisk() != null ? getPhotonPersistentDisk(): item);
}
/**
* This method has been deprecated, please use method buildPortworxVolume instead.
* @return The buildable object.
*/
@Deprecated
public V1PortworxVolumeSource getPortworxVolume() {
return this.portworxVolume!=null ?this.portworxVolume.build():null;
}
public V1PortworxVolumeSource buildPortworxVolume() {
return this.portworxVolume!=null ?this.portworxVolume.build():null;
}
public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) {
_visitables.get("portworxVolume").remove(this.portworxVolume);
if (portworxVolume!=null){ this.portworxVolume= new V1PortworxVolumeSourceBuilder(portworxVolume); _visitables.get("portworxVolume").add(this.portworxVolume);} else { this.portworxVolume = null; _visitables.get("portworxVolume").remove(this.portworxVolume); } return (A) this;
}
public Boolean hasPortworxVolume() {
return this.portworxVolume != null;
}
public V1PersistentVolumeSpecFluentImpl.PortworxVolumeNested withNewPortworxVolume() {
return new V1PersistentVolumeSpecFluentImpl.PortworxVolumeNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.PortworxVolumeNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.PortworxVolumeNested editPortworxVolume() {
return withNewPortworxVolumeLike(getPortworxVolume());
}
public V1PersistentVolumeSpecFluentImpl.PortworxVolumeNested editOrNewPortworxVolume() {
return withNewPortworxVolumeLike(getPortworxVolume() != null ? getPortworxVolume(): new V1PortworxVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) {
return withNewPortworxVolumeLike(getPortworxVolume() != null ? getPortworxVolume(): item);
}
/**
* This method has been deprecated, please use method buildQuobyte instead.
* @return The buildable object.
*/
@Deprecated
public V1QuobyteVolumeSource getQuobyte() {
return this.quobyte!=null ?this.quobyte.build():null;
}
public V1QuobyteVolumeSource buildQuobyte() {
return this.quobyte!=null ?this.quobyte.build():null;
}
public A withQuobyte(V1QuobyteVolumeSource quobyte) {
_visitables.get("quobyte").remove(this.quobyte);
if (quobyte!=null){ this.quobyte= new V1QuobyteVolumeSourceBuilder(quobyte); _visitables.get("quobyte").add(this.quobyte);} else { this.quobyte = null; _visitables.get("quobyte").remove(this.quobyte); } return (A) this;
}
public Boolean hasQuobyte() {
return this.quobyte != null;
}
public V1PersistentVolumeSpecFluentImpl.QuobyteNested withNewQuobyte() {
return new V1PersistentVolumeSpecFluentImpl.QuobyteNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.QuobyteNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.QuobyteNested editQuobyte() {
return withNewQuobyteLike(getQuobyte());
}
public V1PersistentVolumeSpecFluentImpl.QuobyteNested editOrNewQuobyte() {
return withNewQuobyteLike(getQuobyte() != null ? getQuobyte(): new V1QuobyteVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) {
return withNewQuobyteLike(getQuobyte() != null ? getQuobyte(): item);
}
/**
* This method has been deprecated, please use method buildRbd instead.
* @return The buildable object.
*/
@Deprecated
public V1RBDPersistentVolumeSource getRbd() {
return this.rbd!=null ?this.rbd.build():null;
}
public V1RBDPersistentVolumeSource buildRbd() {
return this.rbd!=null ?this.rbd.build():null;
}
public A withRbd(V1RBDPersistentVolumeSource rbd) {
_visitables.get("rbd").remove(this.rbd);
if (rbd!=null){ this.rbd= new V1RBDPersistentVolumeSourceBuilder(rbd); _visitables.get("rbd").add(this.rbd);} else { this.rbd = null; _visitables.get("rbd").remove(this.rbd); } return (A) this;
}
public Boolean hasRbd() {
return this.rbd != null;
}
public V1PersistentVolumeSpecFluentImpl.RbdNested withNewRbd() {
return new V1PersistentVolumeSpecFluentImpl.RbdNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.RbdNested withNewRbdLike(V1RBDPersistentVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.RbdNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.RbdNested editRbd() {
return withNewRbdLike(getRbd());
}
public V1PersistentVolumeSpecFluentImpl.RbdNested editOrNewRbd() {
return withNewRbdLike(getRbd() != null ? getRbd(): new V1RBDPersistentVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.RbdNested editOrNewRbdLike(V1RBDPersistentVolumeSource item) {
return withNewRbdLike(getRbd() != null ? getRbd(): item);
}
/**
* This method has been deprecated, please use method buildScaleIO instead.
* @return The buildable object.
*/
@Deprecated
public V1ScaleIOPersistentVolumeSource getScaleIO() {
return this.scaleIO!=null ?this.scaleIO.build():null;
}
public V1ScaleIOPersistentVolumeSource buildScaleIO() {
return this.scaleIO!=null ?this.scaleIO.build():null;
}
public A withScaleIO(V1ScaleIOPersistentVolumeSource scaleIO) {
_visitables.get("scaleIO").remove(this.scaleIO);
if (scaleIO!=null){ this.scaleIO= new V1ScaleIOPersistentVolumeSourceBuilder(scaleIO); _visitables.get("scaleIO").add(this.scaleIO);} else { this.scaleIO = null; _visitables.get("scaleIO").remove(this.scaleIO); } return (A) this;
}
public Boolean hasScaleIO() {
return this.scaleIO != null;
}
public V1PersistentVolumeSpecFluentImpl.ScaleIONested withNewScaleIO() {
return new V1PersistentVolumeSpecFluentImpl.ScaleIONestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.ScaleIONested withNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.ScaleIONestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.ScaleIONested editScaleIO() {
return withNewScaleIOLike(getScaleIO());
}
public V1PersistentVolumeSpecFluentImpl.ScaleIONested editOrNewScaleIO() {
return withNewScaleIOLike(getScaleIO() != null ? getScaleIO(): new V1ScaleIOPersistentVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.ScaleIONested editOrNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) {
return withNewScaleIOLike(getScaleIO() != null ? getScaleIO(): item);
}
public String getStorageClassName() {
return this.storageClassName;
}
public A withStorageClassName(String storageClassName) {
this.storageClassName=storageClassName; return (A) this;
}
public Boolean hasStorageClassName() {
return this.storageClassName != null;
}
/**
* This method has been deprecated, please use method buildStorageos instead.
* @return The buildable object.
*/
@Deprecated
public V1StorageOSPersistentVolumeSource getStorageos() {
return this.storageos!=null ?this.storageos.build():null;
}
public V1StorageOSPersistentVolumeSource buildStorageos() {
return this.storageos!=null ?this.storageos.build():null;
}
public A withStorageos(V1StorageOSPersistentVolumeSource storageos) {
_visitables.get("storageos").remove(this.storageos);
if (storageos!=null){ this.storageos= new V1StorageOSPersistentVolumeSourceBuilder(storageos); _visitables.get("storageos").add(this.storageos);} else { this.storageos = null; _visitables.get("storageos").remove(this.storageos); } return (A) this;
}
public Boolean hasStorageos() {
return this.storageos != null;
}
public V1PersistentVolumeSpecFluentImpl.StorageosNested withNewStorageos() {
return new V1PersistentVolumeSpecFluentImpl.StorageosNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.StorageosNested withNewStorageosLike(V1StorageOSPersistentVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.StorageosNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.StorageosNested editStorageos() {
return withNewStorageosLike(getStorageos());
}
public V1PersistentVolumeSpecFluentImpl.StorageosNested editOrNewStorageos() {
return withNewStorageosLike(getStorageos() != null ? getStorageos(): new V1StorageOSPersistentVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.StorageosNested editOrNewStorageosLike(V1StorageOSPersistentVolumeSource item) {
return withNewStorageosLike(getStorageos() != null ? getStorageos(): item);
}
public String getVolumeMode() {
return this.volumeMode;
}
public A withVolumeMode(String volumeMode) {
this.volumeMode=volumeMode; return (A) this;
}
public Boolean hasVolumeMode() {
return this.volumeMode != null;
}
/**
* This method has been deprecated, please use method buildVsphereVolume instead.
* @return The buildable object.
*/
@Deprecated
public V1VsphereVirtualDiskVolumeSource getVsphereVolume() {
return this.vsphereVolume!=null ?this.vsphereVolume.build():null;
}
public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() {
return this.vsphereVolume!=null ?this.vsphereVolume.build():null;
}
public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) {
_visitables.get("vsphereVolume").remove(this.vsphereVolume);
if (vsphereVolume!=null){ this.vsphereVolume= new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); _visitables.get("vsphereVolume").add(this.vsphereVolume);} else { this.vsphereVolume = null; _visitables.get("vsphereVolume").remove(this.vsphereVolume); } return (A) this;
}
public Boolean hasVsphereVolume() {
return this.vsphereVolume != null;
}
public V1PersistentVolumeSpecFluentImpl.VsphereVolumeNested withNewVsphereVolume() {
return new V1PersistentVolumeSpecFluentImpl.VsphereVolumeNestedImpl();
}
public V1PersistentVolumeSpecFluentImpl.VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) {
return new V1PersistentVolumeSpecFluentImpl.VsphereVolumeNestedImpl(item);
}
public V1PersistentVolumeSpecFluentImpl.VsphereVolumeNested editVsphereVolume() {
return withNewVsphereVolumeLike(getVsphereVolume());
}
public V1PersistentVolumeSpecFluentImpl.VsphereVolumeNested editOrNewVsphereVolume() {
return withNewVsphereVolumeLike(getVsphereVolume() != null ? getVsphereVolume(): new V1VsphereVirtualDiskVolumeSourceBuilder().build());
}
public V1PersistentVolumeSpecFluentImpl.VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) {
return withNewVsphereVolumeLike(getVsphereVolume() != null ? getVsphereVolume(): item);
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
V1PersistentVolumeSpecFluentImpl that = (V1PersistentVolumeSpecFluentImpl) o;
if (!java.util.Objects.equals(accessModes, that.accessModes)) return false;
if (!java.util.Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore)) return false;
if (!java.util.Objects.equals(azureDisk, that.azureDisk)) return false;
if (!java.util.Objects.equals(azureFile, that.azureFile)) return false;
if (!java.util.Objects.equals(capacity, that.capacity)) return false;
if (!java.util.Objects.equals(cephfs, that.cephfs)) return false;
if (!java.util.Objects.equals(cinder, that.cinder)) return false;
if (!java.util.Objects.equals(claimRef, that.claimRef)) return false;
if (!java.util.Objects.equals(csi, that.csi)) return false;
if (!java.util.Objects.equals(fc, that.fc)) return false;
if (!java.util.Objects.equals(flexVolume, that.flexVolume)) return false;
if (!java.util.Objects.equals(flocker, that.flocker)) return false;
if (!java.util.Objects.equals(gcePersistentDisk, that.gcePersistentDisk)) return false;
if (!java.util.Objects.equals(glusterfs, that.glusterfs)) return false;
if (!java.util.Objects.equals(hostPath, that.hostPath)) return false;
if (!java.util.Objects.equals(iscsi, that.iscsi)) return false;
if (!java.util.Objects.equals(local, that.local)) return false;
if (!java.util.Objects.equals(mountOptions, that.mountOptions)) return false;
if (!java.util.Objects.equals(nfs, that.nfs)) return false;
if (!java.util.Objects.equals(nodeAffinity, that.nodeAffinity)) return false;
if (!java.util.Objects.equals(persistentVolumeReclaimPolicy, that.persistentVolumeReclaimPolicy)) return false;
if (!java.util.Objects.equals(photonPersistentDisk, that.photonPersistentDisk)) return false;
if (!java.util.Objects.equals(portworxVolume, that.portworxVolume)) return false;
if (!java.util.Objects.equals(quobyte, that.quobyte)) return false;
if (!java.util.Objects.equals(rbd, that.rbd)) return false;
if (!java.util.Objects.equals(scaleIO, that.scaleIO)) return false;
if (!java.util.Objects.equals(storageClassName, that.storageClassName)) return false;
if (!java.util.Objects.equals(storageos, that.storageos)) return false;
if (!java.util.Objects.equals(volumeMode, that.volumeMode)) return false;
if (!java.util.Objects.equals(vsphereVolume, that.vsphereVolume)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(accessModes, awsElasticBlockStore, azureDisk, azureFile, capacity, cephfs, cinder, claimRef, csi, fc, flexVolume, flocker, gcePersistentDisk, glusterfs, hostPath, iscsi, local, mountOptions, nfs, nodeAffinity, persistentVolumeReclaimPolicy, photonPersistentDisk, portworxVolume, quobyte, rbd, scaleIO, storageClassName, storageos, volumeMode, vsphereVolume, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (accessModes != null && !accessModes.isEmpty()) { sb.append("accessModes:"); sb.append(accessModes + ","); }
if (awsElasticBlockStore != null) { sb.append("awsElasticBlockStore:"); sb.append(awsElasticBlockStore + ","); }
if (azureDisk != null) { sb.append("azureDisk:"); sb.append(azureDisk + ","); }
if (azureFile != null) { sb.append("azureFile:"); sb.append(azureFile + ","); }
if (capacity != null && !capacity.isEmpty()) { sb.append("capacity:"); sb.append(capacity + ","); }
if (cephfs != null) { sb.append("cephfs:"); sb.append(cephfs + ","); }
if (cinder != null) { sb.append("cinder:"); sb.append(cinder + ","); }
if (claimRef != null) { sb.append("claimRef:"); sb.append(claimRef + ","); }
if (csi != null) { sb.append("csi:"); sb.append(csi + ","); }
if (fc != null) { sb.append("fc:"); sb.append(fc + ","); }
if (flexVolume != null) { sb.append("flexVolume:"); sb.append(flexVolume + ","); }
if (flocker != null) { sb.append("flocker:"); sb.append(flocker + ","); }
if (gcePersistentDisk != null) { sb.append("gcePersistentDisk:"); sb.append(gcePersistentDisk + ","); }
if (glusterfs != null) { sb.append("glusterfs:"); sb.append(glusterfs + ","); }
if (hostPath != null) { sb.append("hostPath:"); sb.append(hostPath + ","); }
if (iscsi != null) { sb.append("iscsi:"); sb.append(iscsi + ","); }
if (local != null) { sb.append("local:"); sb.append(local + ","); }
if (mountOptions != null && !mountOptions.isEmpty()) { sb.append("mountOptions:"); sb.append(mountOptions + ","); }
if (nfs != null) { sb.append("nfs:"); sb.append(nfs + ","); }
if (nodeAffinity != null) { sb.append("nodeAffinity:"); sb.append(nodeAffinity + ","); }
if (persistentVolumeReclaimPolicy != null) { sb.append("persistentVolumeReclaimPolicy:"); sb.append(persistentVolumeReclaimPolicy + ","); }
if (photonPersistentDisk != null) { sb.append("photonPersistentDisk:"); sb.append(photonPersistentDisk + ","); }
if (portworxVolume != null) { sb.append("portworxVolume:"); sb.append(portworxVolume + ","); }
if (quobyte != null) { sb.append("quobyte:"); sb.append(quobyte + ","); }
if (rbd != null) { sb.append("rbd:"); sb.append(rbd + ","); }
if (scaleIO != null) { sb.append("scaleIO:"); sb.append(scaleIO + ","); }
if (storageClassName != null) { sb.append("storageClassName:"); sb.append(storageClassName + ","); }
if (storageos != null) { sb.append("storageos:"); sb.append(storageos + ","); }
if (volumeMode != null) { sb.append("volumeMode:"); sb.append(volumeMode + ","); }
if (vsphereVolume != null) { sb.append("vsphereVolume:"); sb.append(vsphereVolume); }
sb.append("}");
return sb.toString();
}
class AwsElasticBlockStoreNestedImpl extends V1AWSElasticBlockStoreVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.AwsElasticBlockStoreNested,Nested{
AwsElasticBlockStoreNestedImpl(V1AWSElasticBlockStoreVolumeSource item) {
this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this, item);
}
AwsElasticBlockStoreNestedImpl() {
this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this);
}
V1AWSElasticBlockStoreVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withAwsElasticBlockStore(builder.build());
}
public N endAwsElasticBlockStore() {
return and();
}
}
class AzureDiskNestedImpl extends V1AzureDiskVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.AzureDiskNested,Nested{
AzureDiskNestedImpl(V1AzureDiskVolumeSource item) {
this.builder = new V1AzureDiskVolumeSourceBuilder(this, item);
}
AzureDiskNestedImpl() {
this.builder = new V1AzureDiskVolumeSourceBuilder(this);
}
V1AzureDiskVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withAzureDisk(builder.build());
}
public N endAzureDisk() {
return and();
}
}
class AzureFileNestedImpl extends V1AzureFilePersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.AzureFileNested,Nested{
AzureFileNestedImpl(V1AzureFilePersistentVolumeSource item) {
this.builder = new V1AzureFilePersistentVolumeSourceBuilder(this, item);
}
AzureFileNestedImpl() {
this.builder = new V1AzureFilePersistentVolumeSourceBuilder(this);
}
V1AzureFilePersistentVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withAzureFile(builder.build());
}
public N endAzureFile() {
return and();
}
}
class CephfsNestedImpl extends V1CephFSPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.CephfsNested,Nested{
CephfsNestedImpl(V1CephFSPersistentVolumeSource item) {
this.builder = new V1CephFSPersistentVolumeSourceBuilder(this, item);
}
CephfsNestedImpl() {
this.builder = new V1CephFSPersistentVolumeSourceBuilder(this);
}
V1CephFSPersistentVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withCephfs(builder.build());
}
public N endCephfs() {
return and();
}
}
class CinderNestedImpl extends V1CinderPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.CinderNested,Nested{
CinderNestedImpl(V1CinderPersistentVolumeSource item) {
this.builder = new V1CinderPersistentVolumeSourceBuilder(this, item);
}
CinderNestedImpl() {
this.builder = new V1CinderPersistentVolumeSourceBuilder(this);
}
V1CinderPersistentVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withCinder(builder.build());
}
public N endCinder() {
return and();
}
}
class ClaimRefNestedImpl extends V1ObjectReferenceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.ClaimRefNested,Nested{
ClaimRefNestedImpl(V1ObjectReference item) {
this.builder = new V1ObjectReferenceBuilder(this, item);
}
ClaimRefNestedImpl() {
this.builder = new V1ObjectReferenceBuilder(this);
}
V1ObjectReferenceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withClaimRef(builder.build());
}
public N endClaimRef() {
return and();
}
}
class CsiNestedImpl extends V1CSIPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.CsiNested,Nested{
CsiNestedImpl(V1CSIPersistentVolumeSource item) {
this.builder = new V1CSIPersistentVolumeSourceBuilder(this, item);
}
CsiNestedImpl() {
this.builder = new V1CSIPersistentVolumeSourceBuilder(this);
}
V1CSIPersistentVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withCsi(builder.build());
}
public N endCsi() {
return and();
}
}
class FcNestedImpl extends V1FCVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.FcNested,Nested{
FcNestedImpl(V1FCVolumeSource item) {
this.builder = new V1FCVolumeSourceBuilder(this, item);
}
FcNestedImpl() {
this.builder = new V1FCVolumeSourceBuilder(this);
}
V1FCVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withFc(builder.build());
}
public N endFc() {
return and();
}
}
class FlexVolumeNestedImpl extends V1FlexPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.FlexVolumeNested,Nested{
FlexVolumeNestedImpl(V1FlexPersistentVolumeSource item) {
this.builder = new V1FlexPersistentVolumeSourceBuilder(this, item);
}
FlexVolumeNestedImpl() {
this.builder = new V1FlexPersistentVolumeSourceBuilder(this);
}
V1FlexPersistentVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withFlexVolume(builder.build());
}
public N endFlexVolume() {
return and();
}
}
class FlockerNestedImpl extends V1FlockerVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.FlockerNested,Nested{
FlockerNestedImpl(V1FlockerVolumeSource item) {
this.builder = new V1FlockerVolumeSourceBuilder(this, item);
}
FlockerNestedImpl() {
this.builder = new V1FlockerVolumeSourceBuilder(this);
}
V1FlockerVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withFlocker(builder.build());
}
public N endFlocker() {
return and();
}
}
class GcePersistentDiskNestedImpl extends V1GCEPersistentDiskVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.GcePersistentDiskNested,Nested{
GcePersistentDiskNestedImpl(V1GCEPersistentDiskVolumeSource item) {
this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this, item);
}
GcePersistentDiskNestedImpl() {
this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this);
}
V1GCEPersistentDiskVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withGcePersistentDisk(builder.build());
}
public N endGcePersistentDisk() {
return and();
}
}
class GlusterfsNestedImpl extends V1GlusterfsPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.GlusterfsNested,Nested{
GlusterfsNestedImpl(V1GlusterfsPersistentVolumeSource item) {
this.builder = new V1GlusterfsPersistentVolumeSourceBuilder(this, item);
}
GlusterfsNestedImpl() {
this.builder = new V1GlusterfsPersistentVolumeSourceBuilder(this);
}
V1GlusterfsPersistentVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withGlusterfs(builder.build());
}
public N endGlusterfs() {
return and();
}
}
class HostPathNestedImpl extends V1HostPathVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.HostPathNested,Nested{
HostPathNestedImpl(V1HostPathVolumeSource item) {
this.builder = new V1HostPathVolumeSourceBuilder(this, item);
}
HostPathNestedImpl() {
this.builder = new V1HostPathVolumeSourceBuilder(this);
}
V1HostPathVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withHostPath(builder.build());
}
public N endHostPath() {
return and();
}
}
class IscsiNestedImpl extends V1ISCSIPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.IscsiNested,Nested{
IscsiNestedImpl(V1ISCSIPersistentVolumeSource item) {
this.builder = new V1ISCSIPersistentVolumeSourceBuilder(this, item);
}
IscsiNestedImpl() {
this.builder = new V1ISCSIPersistentVolumeSourceBuilder(this);
}
V1ISCSIPersistentVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withIscsi(builder.build());
}
public N endIscsi() {
return and();
}
}
class LocalNestedImpl extends V1LocalVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.LocalNested,Nested{
LocalNestedImpl(V1LocalVolumeSource item) {
this.builder = new V1LocalVolumeSourceBuilder(this, item);
}
LocalNestedImpl() {
this.builder = new V1LocalVolumeSourceBuilder(this);
}
V1LocalVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withLocal(builder.build());
}
public N endLocal() {
return and();
}
}
class NfsNestedImpl extends V1NFSVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.NfsNested,Nested{
NfsNestedImpl(V1NFSVolumeSource item) {
this.builder = new V1NFSVolumeSourceBuilder(this, item);
}
NfsNestedImpl() {
this.builder = new V1NFSVolumeSourceBuilder(this);
}
V1NFSVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withNfs(builder.build());
}
public N endNfs() {
return and();
}
}
class NodeAffinityNestedImpl extends V1VolumeNodeAffinityFluentImpl> implements V1PersistentVolumeSpecFluentImpl.NodeAffinityNested,Nested{
NodeAffinityNestedImpl(V1VolumeNodeAffinity item) {
this.builder = new V1VolumeNodeAffinityBuilder(this, item);
}
NodeAffinityNestedImpl() {
this.builder = new V1VolumeNodeAffinityBuilder(this);
}
V1VolumeNodeAffinityBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withNodeAffinity(builder.build());
}
public N endNodeAffinity() {
return and();
}
}
class PhotonPersistentDiskNestedImpl extends V1PhotonPersistentDiskVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.PhotonPersistentDiskNested,Nested{
PhotonPersistentDiskNestedImpl(V1PhotonPersistentDiskVolumeSource item) {
this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this, item);
}
PhotonPersistentDiskNestedImpl() {
this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this);
}
V1PhotonPersistentDiskVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withPhotonPersistentDisk(builder.build());
}
public N endPhotonPersistentDisk() {
return and();
}
}
class PortworxVolumeNestedImpl extends V1PortworxVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.PortworxVolumeNested,Nested{
PortworxVolumeNestedImpl(V1PortworxVolumeSource item) {
this.builder = new V1PortworxVolumeSourceBuilder(this, item);
}
PortworxVolumeNestedImpl() {
this.builder = new V1PortworxVolumeSourceBuilder(this);
}
V1PortworxVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withPortworxVolume(builder.build());
}
public N endPortworxVolume() {
return and();
}
}
class QuobyteNestedImpl extends V1QuobyteVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.QuobyteNested,Nested{
QuobyteNestedImpl(V1QuobyteVolumeSource item) {
this.builder = new V1QuobyteVolumeSourceBuilder(this, item);
}
QuobyteNestedImpl() {
this.builder = new V1QuobyteVolumeSourceBuilder(this);
}
V1QuobyteVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withQuobyte(builder.build());
}
public N endQuobyte() {
return and();
}
}
class RbdNestedImpl extends V1RBDPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.RbdNested,Nested{
RbdNestedImpl(V1RBDPersistentVolumeSource item) {
this.builder = new V1RBDPersistentVolumeSourceBuilder(this, item);
}
RbdNestedImpl() {
this.builder = new V1RBDPersistentVolumeSourceBuilder(this);
}
V1RBDPersistentVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withRbd(builder.build());
}
public N endRbd() {
return and();
}
}
class ScaleIONestedImpl extends V1ScaleIOPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.ScaleIONested,Nested{
ScaleIONestedImpl(V1ScaleIOPersistentVolumeSource item) {
this.builder = new V1ScaleIOPersistentVolumeSourceBuilder(this, item);
}
ScaleIONestedImpl() {
this.builder = new V1ScaleIOPersistentVolumeSourceBuilder(this);
}
V1ScaleIOPersistentVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withScaleIO(builder.build());
}
public N endScaleIO() {
return and();
}
}
class StorageosNestedImpl extends V1StorageOSPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.StorageosNested,Nested{
StorageosNestedImpl(V1StorageOSPersistentVolumeSource item) {
this.builder = new V1StorageOSPersistentVolumeSourceBuilder(this, item);
}
StorageosNestedImpl() {
this.builder = new V1StorageOSPersistentVolumeSourceBuilder(this);
}
V1StorageOSPersistentVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withStorageos(builder.build());
}
public N endStorageos() {
return and();
}
}
class VsphereVolumeNestedImpl extends V1VsphereVirtualDiskVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluentImpl.VsphereVolumeNested,Nested{
VsphereVolumeNestedImpl(V1VsphereVirtualDiskVolumeSource item) {
this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this, item);
}
VsphereVolumeNestedImpl() {
this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this);
}
V1VsphereVirtualDiskVolumeSourceBuilder builder;
public N and() {
return (N) V1PersistentVolumeSpecFluentImpl.this.withVsphereVolume(builder.build());
}
public N endVsphereVolume() {
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy