Class MountPoint

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

@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 MountPoint extends Object
This is used for reporting the mountpoints in use by a container.
  • Field Details

  • Constructor Details

    • MountPoint

      public MountPoint()
  • 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 MountPoint
    • fromJson

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

      public MountPoint destination(String destination)
    • getDestination

      @Nullable public String getDestination()
      Destination is the path relative to the container root (`/`) where the Source is mounted inside the container.
      Returns:
      destination
    • setDestination

      public void setDestination(String destination)
    • driver

      public MountPoint driver(String driver)
    • getDriver

      @Nullable public String getDriver()
      Driver is the volume driver used to create the volume (if it is a volume).
      Returns:
      driver
    • setDriver

      public void setDriver(String driver)
    • mode

      public MountPoint mode(String mode)
    • getMode

      @Nullable public String getMode()
      Mode is a comma separated list of options supplied by the user when creating the bind/volume mount. The default is platform-specific (`\"z\"` on Linux, empty on Windows).
      Returns:
      mode
    • setMode

      public void setMode(String mode)
    • name

      public MountPoint name(String name)
    • getName

      @Nullable public String getName()
      Name is the name reference to the underlying data defined by `Source` e.g., the volume name.
      Returns:
      name
    • setName

      public void setName(String name)
    • propagation

      public MountPoint propagation(String propagation)
    • getPropagation

      @Nullable public String getPropagation()
      Get propagation
      Returns:
      propagation
    • setPropagation

      public void setPropagation(String propagation)
    • RW

      public MountPoint RW(Boolean RW)
    • getRW

      @Nullable public Boolean getRW()
      RW indicates whether the mount is mounted writable (read-write).
      Returns:
      RW
    • setRW

      public void setRW(Boolean RW)
    • source

      public MountPoint source(String source)
    • getSource

      @Nullable public String getSource()
      Source is the source location of the mount. For volumes, this contains the storage location of the volume (within `/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains the source (host) part of the bind-mount. For `tmpfs` mount points, this field is empty.
      Returns:
      source
    • setSource

      public void setSource(String source)
    • type

      public MountPoint type(String type)
    • getType

      @Nullable public String getType()
      Get type
      Returns:
      type
    • setType

      public void setType(String type)
    • 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 MountPoint to an JSON string
      Returns:
      JSON string