Class InspectBlkioThrottleDevice

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class InspectBlkioThrottleDevice extends Object implements Serializable
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.
See Also:
  • 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
    • 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 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