Class ThrottleDevice
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ThrottleDevice
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class ThrottleDevice
extends Object
ThrottleDevice is a structure that holds device:rate_per_second pair
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ThrottleDeviceCreate an instance of ThrottleDevice given an JSON stringgetPath()Get pathgetRate()Get rateinthashCode()voidvoidtoJson()Convert an instance of ThrottleDevice to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_RATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ThrottleDevice
public ThrottleDevice()
-
-
Method Details
-
validateJsonElement
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 ThrottleDevice
-
fromJson
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
-
path
-
getPath
Get path- Returns:
- path
-
setPath
-
rate
-
getRate
Get rate- Returns:
- rate
-
setRate
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of ThrottleDevice to an JSON string- Returns:
- JSON string
-