Class LinuxThrottleDevice
java.lang.Object
io.github.alersrt.pod4j.openapi.model.LinuxThrottleDevice
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LinuxThrottleDevice
extends Object
implements Serializable
LinuxThrottleDevice struct holds a `major:minor rate_per_second` pair
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LinuxThrottleDeviceCreate an instance of LinuxThrottleDevice given an JSON stringgetMajor()Major is the device's major number.getMinor()Minor is the device's minor number.getRate()Rate is the IO rate limit per cgroup per deviceinthashCode()voidvoidvoidtoJson()Convert an instance of LinuxThrottleDevice to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_MAJOR
- See Also:
-
SERIALIZED_NAME_MINOR
- See Also:
-
SERIALIZED_NAME_RATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LinuxThrottleDevice
public LinuxThrottleDevice()
-
-
Method Details
-
major
-
getMajor
Major is the device's major number.- Returns:
- major
-
setMajor
-
minor
-
getMinor
Minor is the device's minor number.- Returns:
- minor
-
setMinor
-
rate
-
getRate
Rate is the IO rate limit per cgroup per device- Returns:
- rate
-
setRate
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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 LinuxThrottleDevice
-
fromJson
Create an instance of LinuxThrottleDevice given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LinuxThrottleDevice
- Throws:
IOException- if the JSON string is invalid with respect to LinuxThrottleDevice
-
toJson
Convert an instance of LinuxThrottleDevice to an JSON string- Returns:
- JSON string
-