Class LinuxWeightDevice

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

@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 LinuxWeightDevice extends Object
LinuxWeightDevice struct holds a `major:minor weight` pair for weightDevice
  • Field Details

  • Constructor Details

    • LinuxWeightDevice

      public LinuxWeightDevice()
  • Method Details

    • leafWeight

      public LinuxWeightDevice leafWeight(Integer leafWeight)
    • getLeafWeight

      @Nullable public Integer getLeafWeight()
      LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only
      Returns:
      leafWeight
    • setLeafWeight

      public void setLeafWeight(Integer leafWeight)
    • major

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

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

      public void setMinor(Long minor)
    • weight

      public LinuxWeightDevice weight(Integer weight)
    • getWeight

      @Nullable public Integer getWeight()
      Weight is the bandwidth rate for the device.
      Returns:
      weight
    • setWeight

      public void setWeight(Integer weight)
    • 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 LinuxWeightDevice
    • fromJson

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

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