Class OverlayVolume

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

@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 OverlayVolume extends Object
OverlayVolume holds information about an overlay volume that will be mounted into the container.
  • Field Details

  • Constructor Details

    • OverlayVolume

      public OverlayVolume()
  • Method Details

    • destination

      public OverlayVolume destination(String destination)
    • getDestination

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

      public void setDestination(String destination)
    • options

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

      public OverlayVolume addOptionsItem(String optionsItem)
    • getOptions

      @Nullable public List<String> getOptions()
      Options holds overlay volume options.
      Returns:
      options
    • setOptions

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

      public OverlayVolume source(String source)
    • getSource

      @Nullable public String getSource()
      Source specifies the source path of the mount.
      Returns:
      source
    • setSource

      public void setSource(String source)
    • 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 OverlayVolume
    • fromJson

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

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