Class InspectBlkioThrottleDevice

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

@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 InspectBlkioThrottleDevice extends Object
InspectBlkioThrottleDevice holds information about a speed cap for a device node. This cap applies to a specific operation (read, write, etc) on the given node.
  • Field Details

  • Constructor Details

    • InspectBlkioThrottleDevice

      public InspectBlkioThrottleDevice()
  • Method Details

    • path

      public InspectBlkioThrottleDevice path(String path)
    • getPath

      @Nullable public String getPath()
      Path is the path to the device this applies to.
      Returns:
      path
    • setPath

      public void setPath(String path)
    • rate

      public InspectBlkioThrottleDevice rate(Integer rate)
    • getRate

      @Nullable public Integer getRate()
      Rate is the maximum rate. It is in either bytes per second or iops per second, determined by where it is used - documentation will indicate which is appropriate.
      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 InspectBlkioThrottleDevice
    • fromJson

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

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