Class ImageVolume

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class ImageVolume extends Object
ImageVolume is a volume based on a container image. The container image is first mounted on the host and is then bind-mounted into the container. An ImageVolume is always mounted read-only.
  • Field Details

  • Constructor Details

    • ImageVolume

      public ImageVolume()
  • Method Details

    • destination

      public ImageVolume destination(String destination)
    • getDestination

      @Nullable public String getDestination()
      Destination is the absolute path of the mount in the container.
      Returns:
      destination
    • setDestination

      public void setDestination(String destination)
    • readWrite

      public ImageVolume readWrite(Boolean readWrite)
    • getReadWrite

      @Nullable public Boolean getReadWrite()
      ReadWrite sets the volume writable.
      Returns:
      readWrite
    • setReadWrite

      public void setReadWrite(Boolean readWrite)
    • source

      public ImageVolume source(String source)
    • getSource

      @Nullable public String getSource()
      Source is the source of the image volume. The image can be referred to by name and by ID.
      Returns:
      source
    • setSource

      public void setSource(String source)
    • subPath

      public ImageVolume subPath(String subPath)
    • getSubPath

      @Nullable public String getSubPath()
      SubPath mounts a particular path within the image. If empty, the whole image is mounted.
      Returns:
      subPath
    • setSubPath

      public void setSubPath(String subPath)
    • 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
    • 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 ImageVolume
    • fromJson

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

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