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 VolumeBuilderedit()Map<String,Object>getAdditionalProperties()AWSElasticBlockStoreVolumeSourcegetAwsElasticBlockStore()Volume represents a named volume in a pod that may be accessed by any container in the pod.AzureDiskVolumeSourcegetAzureDisk()Volume represents a named volume in a pod that may be accessed by any container in the pod.AzureFileVolumeSourcegetAzureFile()Volume represents a named volume in a pod that may be accessed by any container in the pod.CephFSVolumeSourcegetCephfs()Volume represents a named volume in a pod that may be accessed by any container in the pod.CinderVolumeSourcegetCinder()Volume represents a named volume in a pod that may be accessed by any container in the pod.ConfigMapVolumeSourcegetConfigMap()Volume represents a named volume in a pod that may be accessed by any container in the pod.CSIVolumeSourcegetCsi()Volume represents a named volume in a pod that may be accessed by any container in the pod.DownwardAPIVolumeSourcegetDownwardAPI()Volume represents a named volume in a pod that may be accessed by any container in the pod.EmptyDirVolumeSourcegetEmptyDir()Volume represents a named volume in a pod that may be accessed by any container in the pod.EphemeralVolumeSourcegetEphemeral()Volume represents a named volume in a pod that may be accessed by any container in the pod.FCVolumeSourcegetFc()Volume represents a named volume in a pod that may be accessed by any container in the pod.FlexVolumeSourcegetFlexVolume()Volume represents a named volume in a pod that may be accessed by any container in the pod.FlockerVolumeSourcegetFlocker()Volume represents a named volume in a pod that may be accessed by any container in the pod.GCEPersistentDiskVolumeSourcegetGcePersistentDisk()Volume represents a named volume in a pod that may be accessed by any container in the pod.GitRepoVolumeSourcegetGitRepo()Volume represents a named volume in a pod that may be accessed by any container in the pod.GlusterfsVolumeSourcegetGlusterfs()Volume represents a named volume in a pod that may be accessed by any container in the pod.HostPathVolumeSourcegetHostPath()Volume represents a named volume in a pod that may be accessed by any container in the pod.ImageVolumeSourcegetImage()Volume represents a named volume in a pod that may be accessed by any container in the pod.ISCSIVolumeSourcegetIscsi()Volume represents a named volume in a pod that may be accessed by any container in the pod.StringgetName()name of the volume.NFSVolumeSourcegetNfs()Volume represents a named volume in a pod that may be accessed by any container in the pod.PersistentVolumeClaimVolumeSourcegetPersistentVolumeClaim()Volume represents a named volume in a pod that may be accessed by any container in the pod.PhotonPersistentDiskVolumeSourcegetPhotonPersistentDisk()Volume represents a named volume in a pod that may be accessed by any container in the pod.PortworxVolumeSourcegetPortworxVolume()Volume represents a named volume in a pod that may be accessed by any container in the pod.ProjectedVolumeSourcegetProjected()Volume represents a named volume in a pod that may be accessed by any container in the pod.QuobyteVolumeSourcegetQuobyte()Volume represents a named volume in a pod that may be accessed by any container in the pod.RBDVolumeSourcegetRbd()Volume represents a named volume in a pod that may be accessed by any container in the pod.ScaleIOVolumeSourcegetScaleIO()Volume represents a named volume in a pod that may be accessed by any container in the pod.SecretVolumeSourcegetSecret()Volume represents a named volume in a pod that may be accessed by any container in the pod.StorageOSVolumeSourcegetStorageos()Volume represents a named volume in a pod that may be accessed by any container in the pod.VsphereVirtualDiskVolumeSourcegetVsphereVolume()Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAwsElasticBlockStore(AWSElasticBlockStoreVolumeSource awsElasticBlockStore)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetAzureDisk(AzureDiskVolumeSource azureDisk)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetAzureFile(AzureFileVolumeSource azureFile)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetCephfs(CephFSVolumeSource cephfs)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetCinder(CinderVolumeSource cinder)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetConfigMap(ConfigMapVolumeSource configMap)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetCsi(CSIVolumeSource csi)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetDownwardAPI(DownwardAPIVolumeSource downwardAPI)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetEmptyDir(EmptyDirVolumeSource emptyDir)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetEphemeral(EphemeralVolumeSource ephemeral)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetFc(FCVolumeSource fc)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetFlexVolume(FlexVolumeSource flexVolume)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetFlocker(FlockerVolumeSource flocker)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetGcePersistentDisk(GCEPersistentDiskVolumeSource gcePersistentDisk)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetGitRepo(GitRepoVolumeSource gitRepo)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetGlusterfs(GlusterfsVolumeSource glusterfs)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetHostPath(HostPathVolumeSource hostPath)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetImage(ImageVolumeSource image)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetIscsi(ISCSIVolumeSource iscsi)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetName(String name)name of the volume.voidsetNfs(NFSVolumeSource nfs)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetPersistentVolumeClaim(PersistentVolumeClaimVolumeSource persistentVolumeClaim)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetPhotonPersistentDisk(PhotonPersistentDiskVolumeSource photonPersistentDisk)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetPortworxVolume(PortworxVolumeSource portworxVolume)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetProjected(ProjectedVolumeSource projected)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetQuobyte(QuobyteVolumeSource quobyte)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetRbd(RBDVolumeSource rbd)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetScaleIO(ScaleIOVolumeSource scaleIO)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetSecret(SecretVolumeSource secret)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetStorageos(StorageOSVolumeSource storageos)Volume represents a named volume in a pod that may be accessed by any container in the pod.voidsetVsphereVolume(VsphereVirtualDiskVolumeSource vsphereVolume)Volume represents a named volume in a pod that may be accessed by any container in the pod.VolumeBuildertoBuilder()
-
-
-
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:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<VolumeBuilder>
-
toBuilder
public VolumeBuilder toBuilder()
-
-