Class LinuxBlockIODevice

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LinuxBlockIODevice extends Object implements Serializable
LinuxBlockIODevice holds major:minor format supported in blkio cgroup
See Also:
  • Field Details

  • Constructor Details

    • LinuxBlockIODevice

      public LinuxBlockIODevice()
  • Method Details

    • major

      public LinuxBlockIODevice major(Long major)
    • getMajor

      @Nullable public Long getMajor()
      Major is the device's major number.
      Returns:
      major
    • setMajor

      public void setMajor(Long major)
    • minor

      public LinuxBlockIODevice minor(Long minor)
    • getMinor

      @Nullable public Long getMinor()
      Minor is the device's minor number.
      Returns:
      minor
    • setMinor

      public void setMinor(Long minor)
    • 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 LinuxBlockIODevice
    • fromJson

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

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