Class InspectMount

java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectMount
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class InspectMount extends Object implements Serializable
InspectMount provides a record of a single mount in a container. It contains fields for both named and normal volumes. Only user-specified volumes will be included, and tmpfs volumes are not included even if the user specified them.
See Also:
  • Field Details

  • Constructor Details

    • InspectMount

      public InspectMount()
  • Method Details

    • destination

      public InspectMount destination(String destination)
    • getDestination

      @Nullable public String getDestination()
      The destination directory for the volume. Specified as a path within the container, as it would be passed into the OCI runtime.
      Returns:
      destination
    • setDestination

      public void setDestination(String destination)
    • driver

      public InspectMount driver(String driver)
    • getDriver

      @Nullable public String getDriver()
      The driver used for the named volume. Empty for bind mounts.
      Returns:
      driver
    • setDriver

      public void setDriver(String driver)
    • mode

      public InspectMount mode(String mode)
    • getMode

      @Nullable public String getMode()
      Contains SELinux :z/:Z mount options. Unclear what, if anything, else goes in here.
      Returns:
      mode
    • setMode

      public void setMode(String mode)
    • name

      public InspectMount name(String name)
    • getName

      @Nullable public String getName()
      The name of the volume. Empty for bind mounts.
      Returns:
      name
    • setName

      public void setName(String name)
    • options

      public InspectMount options(List<String> options)
    • addOptionsItem

      public InspectMount addOptionsItem(String optionsItem)
    • getOptions

      @Nullable public List<String> getOptions()
      All remaining mount options. Additional data, not present in the original output.
      Returns:
      options
    • setOptions

      public void setOptions(List<String> options)
    • propagation

      public InspectMount propagation(String propagation)
    • getPropagation

      @Nullable public String getPropagation()
      Mount propagation for the mount. Can be empty if not specified, but is always printed - no omitempty.
      Returns:
      propagation
    • setPropagation

      public void setPropagation(String propagation)
    • RW

      public InspectMount RW(Boolean RW)
    • getRW

      @Nullable public Boolean getRW()
      Whether the volume is read-write
      Returns:
      RW
    • setRW

      public void setRW(Boolean RW)
    • source

      public InspectMount source(String source)
    • getSource

      @Nullable public String getSource()
      The source directory for the volume.
      Returns:
      source
    • setSource

      public void setSource(String source)
    • subPath

      public InspectMount subPath(String subPath)
    • getSubPath

      @Nullable public String getSubPath()
      SubPath object from the volume. Specified as a path within the source volume to be mounted at the Destination.
      Returns:
      subPath
    • setSubPath

      public void setSubPath(String subPath)
    • type

      public InspectMount type(String type)
    • getType

      @Nullable public String getType()
      Whether the mount is a volume or bind mount. Allowed values are \"volume\" and \"bind\".
      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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to InspectMount
    • fromJson

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

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