Class UsageData

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UsageData extends Object implements Serializable
UsageData Usage details about the volume. This information is used by the `GET /system/df` endpoint, and omitted in other endpoints.
See Also:
  • Field Details

  • Constructor Details

    • UsageData

      public UsageData()
  • Method Details

    • refCount

      public UsageData refCount(Long refCount)
    • getRefCount

      @Nonnull @NotNull public @NotNull Long getRefCount()
      The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available.
      Returns:
      refCount
    • setRefCount

      public void setRefCount(Long refCount)
    • size

      public UsageData size(Long size)
    • getSize

      @Nonnull @NotNull public @NotNull Long getSize()
      Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\"local\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\"not available\")
      Returns:
      size
    • setSize

      public void setSize(Long size)
    • 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 UsageData
    • fromJson

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

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