Class LinuxThrottleDevice

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

@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 LinuxThrottleDevice extends Object
LinuxThrottleDevice struct holds a `major:minor rate_per_second` pair
  • 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
    • 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 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