Class ThrottleDevice

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ThrottleDevice extends Object implements Serializable
ThrottleDevice is a structure that holds device:rate_per_second pair
See Also:
  • Field Details

  • Constructor Details

    • ThrottleDevice

      public ThrottleDevice()
  • Method Details

    • path

      public ThrottleDevice path(String path)
    • getPath

      @Nullable public String getPath()
      Get path
      Returns:
      path
    • setPath

      public void setPath(String path)
    • rate

      public ThrottleDevice rate(Integer rate)
    • getRate

      @Nullable public Integer getRate()
      Get rate
      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 ThrottleDevice
    • fromJson

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

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