Class LinuxThrottleDevice

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LinuxThrottleDevice extends Object implements Serializable
LinuxThrottleDevice struct holds a `major:minor rate_per_second` pair
See Also:
  • Field Details

  • Constructor Details

    • LinuxThrottleDevice

      public LinuxThrottleDevice()
  • Method Details

    • major

      public LinuxThrottleDevice 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 LinuxThrottleDevice minor(Long minor)
    • getMinor

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

      public void setMinor(Long minor)
    • rate

      public LinuxThrottleDevice rate(Integer rate)
    • getRate

      @Nullable public Integer getRate()
      Rate is the IO rate limit per cgroup per device
      Returns:
      rate
    • setRate

      public void setRate(Integer rate)
    • 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 LinuxThrottleDevice
    • fromJson

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

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