Class LinuxWeightDevice
java.lang.Object
io.github.alersrt.pod4j.openapi.model.LinuxWeightDevice
@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 LinuxWeightDevice
extends Object
LinuxWeightDevice struct holds a `major:minor weight` pair for weightDevice
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LinuxWeightDeviceCreate an instance of LinuxWeightDevice given an JSON stringLeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler onlygetMajor()Major is the device's major number.getMinor()Minor is the device's minor number.Weight is the bandwidth rate for the device.inthashCode()leafWeight(Integer leafWeight) voidsetLeafWeight(Integer leafWeight) voidvoidvoidtoJson()Convert an instance of LinuxWeightDevice 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_LEAF_WEIGHT
- See Also:
-
SERIALIZED_NAME_MAJOR
- See Also:
-
SERIALIZED_NAME_MINOR
- See Also:
-
SERIALIZED_NAME_WEIGHT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LinuxWeightDevice
public LinuxWeightDevice()
-
-
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 LinuxWeightDevice
-
fromJson
Create an instance of LinuxWeightDevice given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LinuxWeightDevice
- Throws:
IOException- if the JSON string is invalid with respect to LinuxWeightDevice
-
leafWeight
-
getLeafWeight
LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only- Returns:
- leafWeight
-
setLeafWeight
-
major
-
getMajor
Major is the device's major number.- Returns:
- major
-
setMajor
-
minor
-
getMinor
Minor is the device's minor number.- Returns:
- minor
-
setMinor
-
weight
-
getWeight
Weight is the bandwidth rate for the device.- Returns:
- weight
-
setWeight
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of LinuxWeightDevice to an JSON string- Returns:
- JSON string
-