Class PodStorageConfig

java.lang.Object
io.github.alersrt.pod4j.openapi.model.PodStorageConfig

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class PodStorageConfig extends Object
PodStorageConfig
  • Field Details

  • Constructor Details

    • PodStorageConfig

      public PodStorageConfig()
  • Method Details

    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to PodStorageConfig
    • fromJson

      public static PodStorageConfig fromJson(String jsonString) throws IOException
      Create an instance of PodStorageConfig given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of PodStorageConfig
      Throws:
      IOException - if the JSON string is invalid with respect to PodStorageConfig
    • imageVolumes

      public PodStorageConfig imageVolumes(List<@Valid ImageVolume> imageVolumes)
    • addImageVolumesItem

      public PodStorageConfig addImageVolumesItem(ImageVolume imageVolumesItem)
    • getImageVolumes

      @Nullable @Valid public @Valid List<@Valid ImageVolume> getImageVolumes()
      Image volumes bind-mount a container-image mount into the pod's infra container. Optional.
      Returns:
      imageVolumes
    • setImageVolumes

      public void setImageVolumes(List<@Valid ImageVolume> imageVolumes)
    • mounts

      public PodStorageConfig mounts(List<@Valid Mount> mounts)
    • addMountsItem

      public PodStorageConfig addMountsItem(Mount mountsItem)
    • getMounts

      @Nullable @Valid public @Valid List<@Valid Mount> getMounts()
      Mounts are mounts that will be added to the pod. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional.
      Returns:
      mounts
    • setMounts

      public void setMounts(List<@Valid Mount> mounts)
    • overlayVolumes

      public PodStorageConfig overlayVolumes(List<@Valid OverlayVolume> overlayVolumes)
    • addOverlayVolumesItem

      public PodStorageConfig addOverlayVolumesItem(OverlayVolume overlayVolumesItem)
    • getOverlayVolumes

      @Nullable @Valid public @Valid List<@Valid OverlayVolume> getOverlayVolumes()
      Overlay volumes are named volumes that will be added to the pod. Optional.
      Returns:
      overlayVolumes
    • setOverlayVolumes

      public void setOverlayVolumes(List<@Valid OverlayVolume> overlayVolumes)
    • shmSize

      public PodStorageConfig shmSize(Long shmSize)
    • getShmSize

      @Nullable public Long getShmSize()
      ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes. Conflicts with ShmSize if IpcNS is not private. Optional.
      Returns:
      shmSize
    • setShmSize

      public void setShmSize(Long shmSize)
    • shmSizeSystemd

      public PodStorageConfig shmSizeSystemd(Long shmSizeSystemd)
    • getShmSizeSystemd

      @Nullable public Long getShmSizeSystemd()
      ShmSizeSystemd is the size of systemd-specific tmpfs mounts specifically /run, /run/lock, /var/log/journal and /tmp. Optional
      Returns:
      shmSizeSystemd
    • setShmSizeSystemd

      public void setShmSizeSystemd(Long shmSizeSystemd)
    • volumes

      public PodStorageConfig volumes(List<@Valid NamedVolume> volumes)
    • addVolumesItem

      public PodStorageConfig addVolumesItem(NamedVolume volumesItem)
    • getVolumes

      @Nullable @Valid public @Valid List<@Valid NamedVolume> getVolumes()
      Volumes are named volumes that will be added to the pod. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional.
      Returns:
      volumes
    • setVolumes

      public void setVolumes(List<@Valid NamedVolume> volumes)
    • volumesFrom

      public PodStorageConfig volumesFrom(List<String> volumesFrom)
    • addVolumesFromItem

      public PodStorageConfig addVolumesFromItem(String volumesFromItem)
    • getVolumesFrom

      @Nullable public List<String> getVolumesFrom()
      VolumesFrom is a set of containers whose volumes will be added to this pod. The name or ID of the container must be provided, and may optionally be followed by a : and then one or more comma-separated options. Valid options are 'ro', 'rw', and 'z'. Options will be used for all volumes sourced from the container.
      Returns:
      volumesFrom
    • setVolumesFrom

      public void setVolumesFrom(List<String> volumesFrom)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toJson

      public String toJson()
      Convert an instance of PodStorageConfig to an JSON string
      Returns:
      JSON string