Class PodVolume

    • Constructor Detail

      • PodVolume

        public PodVolume()
      • PodVolume

        public 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.
    • Method Detail

      • getVolumeType

        public String getVolumeType()
        Get 存储类型,可为"pvc","hostpath"。 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        VolumeType 存储类型,可为"pvc","hostpath"。 注意:此字段可能返回 null,表示取不到有效值。
      • setVolumeType

        public void setVolumeType​(String VolumeType)
        Set 存储类型,可为"pvc","hostpath"。 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        VolumeType - 存储类型,可为"pvc","hostpath"。 注意:此字段可能返回 null,表示取不到有效值。
      • getPVCVolume

        public PersistentVolumeContext getPVCVolume()
        Get 当VolumeType为"pvc"时,该字段生效。 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        PVCVolume 当VolumeType为"pvc"时,该字段生效。 注意:此字段可能返回 null,表示取不到有效值。
      • setPVCVolume

        public void setPVCVolume​(PersistentVolumeContext PVCVolume)
        Set 当VolumeType为"pvc"时,该字段生效。 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        PVCVolume - 当VolumeType为"pvc"时,该字段生效。 注意:此字段可能返回 null,表示取不到有效值。
      • getHostVolume

        public HostVolumeContext getHostVolume()
        Get 当VolumeType为"hostpath"时,该字段生效。 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        HostVolume 当VolumeType为"hostpath"时,该字段生效。 注意:此字段可能返回 null,表示取不到有效值。
      • setHostVolume

        public void setHostVolume​(HostVolumeContext HostVolume)
        Set 当VolumeType为"hostpath"时,该字段生效。 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        HostVolume - 当VolumeType为"hostpath"时,该字段生效。 注意:此字段可能返回 null,表示取不到有效值。