public class PodVolume extends AbstractModel
header, skipSign| 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 当VolumeType为"hostpath"时,该字段生效。
注意:此字段可能返回 null,表示取不到有效值。 | 
| PersistentVolumeContext | getPVCVolume()Get 当VolumeType为"pvc"时,该字段生效。
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getVolumeType()Get 存储类型,可为"pvc","hostpath"。 | 
| void | setHostVolume(HostVolumeContext HostVolume)Set 当VolumeType为"hostpath"时,该字段生效。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setPVCVolume(PersistentVolumeContext PVCVolume)Set 当VolumeType为"pvc"时,该字段生效。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setVolumeType(String VolumeType)Set 存储类型,可为"pvc","hostpath"。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic PodVolume()
public PodVolume(PodVolume source)
public String getVolumeType()
public void setVolumeType(String VolumeType)
VolumeType - 存储类型,可为"pvc","hostpath"。public PersistentVolumeContext getPVCVolume()
public void setPVCVolume(PersistentVolumeContext PVCVolume)
PVCVolume - 当VolumeType为"pvc"时,该字段生效。
注意:此字段可能返回 null,表示取不到有效值。public HostVolumeContext getHostVolume()
public void setHostVolume(HostVolumeContext HostVolume)
HostVolume - 当VolumeType为"hostpath"时,该字段生效。
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.