Class TmpfsOptions

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

@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 TmpfsOptions extends Object
TmpfsOptions
  • Field Details

  • Constructor Details

    • TmpfsOptions

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

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

      public TmpfsOptions mode(Integer mode)
    • getMode

      @Nullable public Integer getMode()
      The bits have the same definition on all systems, so that information about files can be moved from one system to another portably. Not all bits apply to all systems. The only required bit is [ModeDir] for directories.
      Returns:
      mode
    • setMode

      public void setMode(Integer mode)
    • options

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

      public TmpfsOptions addOptionsItem(List<String> optionsItem)
    • getOptions

      @Nullable @Valid public @Valid List<List<String>> getOptions()
      Options to be passed to the tmpfs mount. An array of arrays. Flag options should be provided as 1-length arrays. Other types should be provided as 2-length arrays, where the first item is the key and the second the value.
      Returns:
      options
    • setOptions

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

      public TmpfsOptions sizeBytes(Long sizeBytes)
    • getSizeBytes

      @Nullable public Long getSizeBytes()
      Size sets the size of the tmpfs, in bytes. This will be converted to an operating system specific value depending on the host. For example, on linux, it will be converted to use a 'k', 'm' or 'g' syntax. BSD, though not widely supported with docker, uses a straight byte value. Percentages are not supported.
      Returns:
      sizeBytes
    • setSizeBytes

      public void setSizeBytes(Long sizeBytes)
    • 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 TmpfsOptions to an JSON string
      Returns:
      JSON string