public class PodVolume extends AbstractModel
Constructor and Description |
---|
PodVolume() |
PodVolume(PodVolume source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
HostVolumeContext |
getHostVolume()
Get This field will take effect if `VolumeType` is `hostpath`.
|
PersistentVolumeContext |
getPVCVolume()
Get This field will take effect if `VolumeType` is `pvc`.
|
String |
getVolumeType()
Get Storage type.
|
void |
setHostVolume(HostVolumeContext HostVolume)
Set This field will take effect if `VolumeType` is `hostpath`.
|
void |
setPVCVolume(PersistentVolumeContext PVCVolume)
Set This field will take effect if `VolumeType` is `pvc`.
|
void |
setVolumeType(String VolumeType)
Set Storage type.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public PodVolume()
public PodVolume(PodVolume source)
public String getVolumeType()
public void setVolumeType(String VolumeType)
VolumeType
- Storage type. Valid values: `pvc` and `hostpath`.
Note: This field may return null, indicating that no valid values can be obtained.public PersistentVolumeContext getPVCVolume()
public void setPVCVolume(PersistentVolumeContext PVCVolume)
PVCVolume
- This field will take effect if `VolumeType` is `pvc`.
Note: This field may return null, indicating that no valid values can be obtained.public HostVolumeContext getHostVolume()
public void setHostVolume(HostVolumeContext HostVolume)
HostVolume
- This field will take effect if `VolumeType` is `hostpath`.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.