Class Volume
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.Volume
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class Volume extends java.lang.Object implements com.marcnuri.yakc.model.Model
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Volume.Builder
-
Constructor Summary
-
Method Summary
-
-
-
Constructor Detail
-
Volume
public Volume(AWSElasticBlockStoreVolumeSource awsElasticBlockStore, AzureDiskVolumeSource azureDisk, AzureFileVolumeSource azureFile, CephFSVolumeSource cephfs, CinderVolumeSource cinder, ConfigMapVolumeSource configMap, CSIVolumeSource csi, DownwardAPIVolumeSource downwardAPI, EmptyDirVolumeSource emptyDir, EphemeralVolumeSource ephemeral, FCVolumeSource fc, FlexVolumeSource flexVolume, FlockerVolumeSource flocker, GCEPersistentDiskVolumeSource gcePersistentDisk, GitRepoVolumeSource gitRepo, GlusterfsVolumeSource glusterfs, HostPathVolumeSource hostPath, ISCSIVolumeSource iscsi, @NonNull @NonNull java.lang.String name, NFSVolumeSource nfs, PersistentVolumeClaimVolumeSource persistentVolumeClaim, PhotonPersistentDiskVolumeSource photonPersistentDisk, PortworxVolumeSource portworxVolume, ProjectedVolumeSource projected, QuobyteVolumeSource quobyte, RBDVolumeSource rbd, ScaleIOVolumeSource scaleIO, SecretVolumeSource secret, StorageOSVolumeSource storageos, VsphereVirtualDiskVolumeSource vsphereVolume)
-
Volume
public Volume()
-
-
Method Detail
-
builder
public static Volume.Builder builder()
-
toBuilder
public Volume.Builder toBuilder()
-
getAwsElasticBlockStore
public AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore()
-
getAzureDisk
public AzureDiskVolumeSource getAzureDisk()
-
getAzureFile
public AzureFileVolumeSource getAzureFile()
-
getCephfs
public CephFSVolumeSource getCephfs()
-
getCinder
public CinderVolumeSource getCinder()
-
getConfigMap
public ConfigMapVolumeSource getConfigMap()
-
getCsi
public CSIVolumeSource getCsi()
-
getDownwardAPI
public DownwardAPIVolumeSource getDownwardAPI()
-
getEmptyDir
public EmptyDirVolumeSource getEmptyDir()
-
getEphemeral
public EphemeralVolumeSource getEphemeral()
-
getFc
public FCVolumeSource getFc()
-
getFlexVolume
public FlexVolumeSource getFlexVolume()
-
getFlocker
public FlockerVolumeSource getFlocker()
-
getGcePersistentDisk
public GCEPersistentDiskVolumeSource getGcePersistentDisk()
-
getGitRepo
public GitRepoVolumeSource getGitRepo()
-
getGlusterfs
public GlusterfsVolumeSource getGlusterfs()
-
getHostPath
public HostPathVolumeSource getHostPath()
-
getIscsi
public ISCSIVolumeSource getIscsi()
-
getName
@NonNull public @NonNull java.lang.String getName()
Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
-
getNfs
public NFSVolumeSource getNfs()
-
getPersistentVolumeClaim
public PersistentVolumeClaimVolumeSource getPersistentVolumeClaim()
-
getPhotonPersistentDisk
public PhotonPersistentDiskVolumeSource getPhotonPersistentDisk()
-
getPortworxVolume
public PortworxVolumeSource getPortworxVolume()
-
getProjected
public ProjectedVolumeSource getProjected()
-
getQuobyte
public QuobyteVolumeSource getQuobyte()
-
getRbd
public RBDVolumeSource getRbd()
-
getScaleIO
public ScaleIOVolumeSource getScaleIO()
-
getSecret
public SecretVolumeSource getSecret()
-
getStorageos
public StorageOSVolumeSource getStorageos()
-
getVsphereVolume
public VsphereVirtualDiskVolumeSource getVsphereVolume()
-
setAwsElasticBlockStore
public void setAwsElasticBlockStore(AWSElasticBlockStoreVolumeSource awsElasticBlockStore)
-
setAzureDisk
public void setAzureDisk(AzureDiskVolumeSource azureDisk)
-
setAzureFile
public void setAzureFile(AzureFileVolumeSource azureFile)
-
setCephfs
public void setCephfs(CephFSVolumeSource cephfs)
-
setCinder
public void setCinder(CinderVolumeSource cinder)
-
setConfigMap
public void setConfigMap(ConfigMapVolumeSource configMap)
-
setCsi
public void setCsi(CSIVolumeSource csi)
-
setDownwardAPI
public void setDownwardAPI(DownwardAPIVolumeSource downwardAPI)
-
setEmptyDir
public void setEmptyDir(EmptyDirVolumeSource emptyDir)
-
setEphemeral
public void setEphemeral(EphemeralVolumeSource ephemeral)
-
setFc
public void setFc(FCVolumeSource fc)
-
setFlexVolume
public void setFlexVolume(FlexVolumeSource flexVolume)
-
setFlocker
public void setFlocker(FlockerVolumeSource flocker)
-
setGcePersistentDisk
public void setGcePersistentDisk(GCEPersistentDiskVolumeSource gcePersistentDisk)
-
setGitRepo
public void setGitRepo(GitRepoVolumeSource gitRepo)
-
setGlusterfs
public void setGlusterfs(GlusterfsVolumeSource glusterfs)
-
setHostPath
public void setHostPath(HostPathVolumeSource hostPath)
-
setIscsi
public void setIscsi(ISCSIVolumeSource iscsi)
-
setName
public void setName(@NonNull @NonNull java.lang.String name)
Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
-
setNfs
public void setNfs(NFSVolumeSource nfs)
-
setPersistentVolumeClaim
public void setPersistentVolumeClaim(PersistentVolumeClaimVolumeSource persistentVolumeClaim)
-
setPhotonPersistentDisk
public void setPhotonPersistentDisk(PhotonPersistentDiskVolumeSource photonPersistentDisk)
-
setPortworxVolume
public void setPortworxVolume(PortworxVolumeSource portworxVolume)
-
setProjected
public void setProjected(ProjectedVolumeSource projected)
-
setQuobyte
public void setQuobyte(QuobyteVolumeSource quobyte)
-
setRbd
public void setRbd(RBDVolumeSource rbd)
-
setScaleIO
public void setScaleIO(ScaleIOVolumeSource scaleIO)
-
setSecret
public void setSecret(SecretVolumeSource secret)
-
setStorageos
public void setStorageos(StorageOSVolumeSource storageos)
-
setVsphereVolume
public void setVsphereVolume(VsphereVirtualDiskVolumeSource vsphereVolume)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-