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 当VolumeType为"hostpath"时,该字段生效。
注意:此字段可能返回 null,表示取不到有效值。
|
PersistentVolumeContext |
getPVCVolume()
Get 当VolumeType为"pvc"时,该字段生效。
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getVolumeType()
Get 存储类型,可为"pvc","hostpath"。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setHostVolume(HostVolumeContext HostVolume)
Set 当VolumeType为"hostpath"时,该字段生效。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setPVCVolume(PersistentVolumeContext PVCVolume)
Set 当VolumeType为"pvc"时,该字段生效。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setVolumeType(String VolumeType)
Set 存储类型,可为"pvc","hostpath"。
注意:此字段可能返回 null,表示取不到有效值。
|
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
- 存储类型,可为"pvc","hostpath"。
注意:此字段可能返回 null,表示取不到有效值。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 © 2021. All rights reserved.