@Introspected
public class Volume
extends java.lang.Object
Constructor and Description |
---|
Volume() |
Modifier and Type | Method and Description |
---|---|
ConfigMapVolumeSource |
getConfigMap() |
EmptyDirVolumeSource |
getEmptyDir() |
java.lang.String |
getName() |
SecretVolumeSource |
getSecret() |
void |
setConfigMap(ConfigMapVolumeSource configMap) |
void |
setEmptyDir(EmptyDirVolumeSource emptyDir) |
void |
setName(java.lang.String name) |
void |
setSecret(SecretVolumeSource secret) |
java.lang.String |
toString() |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Volume's name.public SecretVolumeSource getSecret()
public void setSecret(SecretVolumeSource secret)
secret
- Secret that should populate this volume.public ConfigMapVolumeSource getConfigMap()
public void setConfigMap(ConfigMapVolumeSource configMap)
configMap
- ConfigMap that populates this volume.public EmptyDirVolumeSource getEmptyDir()
public void setEmptyDir(EmptyDirVolumeSource emptyDir)
emptyDir
- EmptyDir represents a temporary directory that shares a pod's lifetime.public java.lang.String toString()
toString
in class java.lang.Object