Package io.fabric8.kubernetes.api.model
Class Volume
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.Volume
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<VolumeBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Volume extends Object implements io.fabric8.kubernetes.api.builder.Editable<VolumeBuilder>, KubernetesResource
Volume represents a named volume in a pod that may be accessed by any container in the pod.- See Also:
- Serialized Form
-
-
Constructor Summary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeBuilder
edit()
Map<String,Object>
getAdditionalProperties()
AWSElasticBlockStoreVolumeSource
getAwsElasticBlockStore()
Volume represents a named volume in a pod that may be accessed by any container in the pod.AzureDiskVolumeSource
getAzureDisk()
Volume represents a named volume in a pod that may be accessed by any container in the pod.AzureFileVolumeSource
getAzureFile()
Volume represents a named volume in a pod that may be accessed by any container in the pod.CephFSVolumeSource
getCephfs()
Volume represents a named volume in a pod that may be accessed by any container in the pod.CinderVolumeSource
getCinder()
Volume represents a named volume in a pod that may be accessed by any container in the pod.ConfigMapVolumeSource
getConfigMap()
Volume represents a named volume in a pod that may be accessed by any container in the pod.CSIVolumeSource
getCsi()
Volume represents a named volume in a pod that may be accessed by any container in the pod.DownwardAPIVolumeSource
getDownwardAPI()
Volume represents a named volume in a pod that may be accessed by any container in the pod.EmptyDirVolumeSource
getEmptyDir()
Volume represents a named volume in a pod that may be accessed by any container in the pod.EphemeralVolumeSource
getEphemeral()
Volume represents a named volume in a pod that may be accessed by any container in the pod.FCVolumeSource
getFc()
Volume represents a named volume in a pod that may be accessed by any container in the pod.FlexVolumeSource
getFlexVolume()
Volume represents a named volume in a pod that may be accessed by any container in the pod.FlockerVolumeSource
getFlocker()
Volume represents a named volume in a pod that may be accessed by any container in the pod.GCEPersistentDiskVolumeSource
getGcePersistentDisk()
Volume represents a named volume in a pod that may be accessed by any container in the pod.GitRepoVolumeSource
getGitRepo()
Volume represents a named volume in a pod that may be accessed by any container in the pod.GlusterfsVolumeSource
getGlusterfs()
Volume represents a named volume in a pod that may be accessed by any container in the pod.HostPathVolumeSource
getHostPath()
Volume represents a named volume in a pod that may be accessed by any container in the pod.ImageVolumeSource
getImage()
Volume represents a named volume in a pod that may be accessed by any container in the pod.ISCSIVolumeSource
getIscsi()
Volume represents a named volume in a pod that may be accessed by any container in the pod.String
getName()
name of the volume.NFSVolumeSource
getNfs()
Volume represents a named volume in a pod that may be accessed by any container in the pod.PersistentVolumeClaimVolumeSource
getPersistentVolumeClaim()
Volume represents a named volume in a pod that may be accessed by any container in the pod.PhotonPersistentDiskVolumeSource
getPhotonPersistentDisk()
Volume represents a named volume in a pod that may be accessed by any container in the pod.PortworxVolumeSource
getPortworxVolume()
Volume represents a named volume in a pod that may be accessed by any container in the pod.ProjectedVolumeSource
getProjected()
Volume represents a named volume in a pod that may be accessed by any container in the pod.QuobyteVolumeSource
getQuobyte()
Volume represents a named volume in a pod that may be accessed by any container in the pod.RBDVolumeSource
getRbd()
Volume represents a named volume in a pod that may be accessed by any container in the pod.ScaleIOVolumeSource
getScaleIO()
Volume represents a named volume in a pod that may be accessed by any container in the pod.SecretVolumeSource
getSecret()
Volume represents a named volume in a pod that may be accessed by any container in the pod.StorageOSVolumeSource
getStorageos()
Volume represents a named volume in a pod that may be accessed by any container in the pod.VsphereVirtualDiskVolumeSource
getVsphereVolume()
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setAwsElasticBlockStore(AWSElasticBlockStoreVolumeSource awsElasticBlockStore)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setAzureDisk(AzureDiskVolumeSource azureDisk)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setAzureFile(AzureFileVolumeSource azureFile)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setCephfs(CephFSVolumeSource cephfs)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setCinder(CinderVolumeSource cinder)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setConfigMap(ConfigMapVolumeSource configMap)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setCsi(CSIVolumeSource csi)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setDownwardAPI(DownwardAPIVolumeSource downwardAPI)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setEmptyDir(EmptyDirVolumeSource emptyDir)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setEphemeral(EphemeralVolumeSource ephemeral)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setFc(FCVolumeSource fc)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setFlexVolume(FlexVolumeSource flexVolume)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setFlocker(FlockerVolumeSource flocker)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setGcePersistentDisk(GCEPersistentDiskVolumeSource gcePersistentDisk)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setGitRepo(GitRepoVolumeSource gitRepo)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setGlusterfs(GlusterfsVolumeSource glusterfs)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setHostPath(HostPathVolumeSource hostPath)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setImage(ImageVolumeSource image)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setIscsi(ISCSIVolumeSource iscsi)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setName(String name)
name of the volume.void
setNfs(NFSVolumeSource nfs)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setPersistentVolumeClaim(PersistentVolumeClaimVolumeSource persistentVolumeClaim)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setPhotonPersistentDisk(PhotonPersistentDiskVolumeSource photonPersistentDisk)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setPortworxVolume(PortworxVolumeSource portworxVolume)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setProjected(ProjectedVolumeSource projected)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setQuobyte(QuobyteVolumeSource quobyte)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setRbd(RBDVolumeSource rbd)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setScaleIO(ScaleIOVolumeSource scaleIO)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setSecret(SecretVolumeSource secret)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setStorageos(StorageOSVolumeSource storageos)
Volume represents a named volume in a pod that may be accessed by any container in the pod.void
setVsphereVolume(VsphereVirtualDiskVolumeSource vsphereVolume)
Volume represents a named volume in a pod that may be accessed by any container in the pod.VolumeBuilder
toBuilder()
-
-
-
Constructor Detail
-
Volume
public Volume()
No args constructor for use in serialization
-
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, ImageVolumeSource image, ISCSIVolumeSource iscsi, String name, NFSVolumeSource nfs, PersistentVolumeClaimVolumeSource persistentVolumeClaim, PhotonPersistentDiskVolumeSource photonPersistentDisk, PortworxVolumeSource portworxVolume, ProjectedVolumeSource projected, QuobyteVolumeSource quobyte, RBDVolumeSource rbd, ScaleIOVolumeSource scaleIO, SecretVolumeSource secret, StorageOSVolumeSource storageos, VsphereVirtualDiskVolumeSource vsphereVolume)
-
-
Method Detail
-
getAwsElasticBlockStore
public AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setAwsElasticBlockStore
public void setAwsElasticBlockStore(AWSElasticBlockStoreVolumeSource awsElasticBlockStore)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getAzureDisk
public AzureDiskVolumeSource getAzureDisk()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setAzureDisk
public void setAzureDisk(AzureDiskVolumeSource azureDisk)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getAzureFile
public AzureFileVolumeSource getAzureFile()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setAzureFile
public void setAzureFile(AzureFileVolumeSource azureFile)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getCephfs
public CephFSVolumeSource getCephfs()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setCephfs
public void setCephfs(CephFSVolumeSource cephfs)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getCinder
public CinderVolumeSource getCinder()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setCinder
public void setCinder(CinderVolumeSource cinder)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getConfigMap
public ConfigMapVolumeSource getConfigMap()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setConfigMap
public void setConfigMap(ConfigMapVolumeSource configMap)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getCsi
public CSIVolumeSource getCsi()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setCsi
public void setCsi(CSIVolumeSource csi)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getDownwardAPI
public DownwardAPIVolumeSource getDownwardAPI()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setDownwardAPI
public void setDownwardAPI(DownwardAPIVolumeSource downwardAPI)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getEmptyDir
public EmptyDirVolumeSource getEmptyDir()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setEmptyDir
public void setEmptyDir(EmptyDirVolumeSource emptyDir)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getEphemeral
public EphemeralVolumeSource getEphemeral()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setEphemeral
public void setEphemeral(EphemeralVolumeSource ephemeral)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getFc
public FCVolumeSource getFc()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setFc
public void setFc(FCVolumeSource fc)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getFlexVolume
public FlexVolumeSource getFlexVolume()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setFlexVolume
public void setFlexVolume(FlexVolumeSource flexVolume)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getFlocker
public FlockerVolumeSource getFlocker()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setFlocker
public void setFlocker(FlockerVolumeSource flocker)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getGcePersistentDisk
public GCEPersistentDiskVolumeSource getGcePersistentDisk()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setGcePersistentDisk
public void setGcePersistentDisk(GCEPersistentDiskVolumeSource gcePersistentDisk)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getGitRepo
public GitRepoVolumeSource getGitRepo()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setGitRepo
public void setGitRepo(GitRepoVolumeSource gitRepo)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getGlusterfs
public GlusterfsVolumeSource getGlusterfs()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setGlusterfs
public void setGlusterfs(GlusterfsVolumeSource glusterfs)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getHostPath
public HostPathVolumeSource getHostPath()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setHostPath
public void setHostPath(HostPathVolumeSource hostPath)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getImage
public ImageVolumeSource getImage()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setImage
public void setImage(ImageVolumeSource image)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getIscsi
public ISCSIVolumeSource getIscsi()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setIscsi
public void setIscsi(ISCSIVolumeSource iscsi)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getName
public String getName()
name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
-
setName
public void setName(String name)
name of the volume. 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()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setNfs
public void setNfs(NFSVolumeSource nfs)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getPersistentVolumeClaim
public PersistentVolumeClaimVolumeSource getPersistentVolumeClaim()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setPersistentVolumeClaim
public void setPersistentVolumeClaim(PersistentVolumeClaimVolumeSource persistentVolumeClaim)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getPhotonPersistentDisk
public PhotonPersistentDiskVolumeSource getPhotonPersistentDisk()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setPhotonPersistentDisk
public void setPhotonPersistentDisk(PhotonPersistentDiskVolumeSource photonPersistentDisk)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getPortworxVolume
public PortworxVolumeSource getPortworxVolume()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setPortworxVolume
public void setPortworxVolume(PortworxVolumeSource portworxVolume)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getProjected
public ProjectedVolumeSource getProjected()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setProjected
public void setProjected(ProjectedVolumeSource projected)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getQuobyte
public QuobyteVolumeSource getQuobyte()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setQuobyte
public void setQuobyte(QuobyteVolumeSource quobyte)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getRbd
public RBDVolumeSource getRbd()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setRbd
public void setRbd(RBDVolumeSource rbd)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getScaleIO
public ScaleIOVolumeSource getScaleIO()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setScaleIO
public void setScaleIO(ScaleIOVolumeSource scaleIO)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getSecret
public SecretVolumeSource getSecret()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setSecret
public void setSecret(SecretVolumeSource secret)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getStorageos
public StorageOSVolumeSource getStorageos()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setStorageos
public void setStorageos(StorageOSVolumeSource storageos)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
getVsphereVolume
public VsphereVirtualDiskVolumeSource getVsphereVolume()
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
setVsphereVolume
public void setVsphereVolume(VsphereVirtualDiskVolumeSource vsphereVolume)
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
edit
public VolumeBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<VolumeBuilder>
-
toBuilder
public VolumeBuilder toBuilder()
-
-