Class LinuxDeviceCgroup
java.lang.Object
io.github.alersrt.pod4j.openapi.model.LinuxDeviceCgroup
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class LinuxDeviceCgroup
extends Object
LinuxDeviceCgroup represents a device rule for the devices specified to the device controller
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LinuxDeviceCgroupCreate an instance of LinuxDeviceCgroup given an JSON stringCgroup access permissions format, rwm.getAllow()Allow or denygetMajor()Major is the device's major number.getMinor()Minor is the device's minor number.getType()Device type, block, char, etc.inthashCode()voidvoidvoidvoidvoidtoJson()Convert an instance of LinuxDeviceCgroup 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_ACCESS
- See Also:
-
SERIALIZED_NAME_ALLOW
- See Also:
-
SERIALIZED_NAME_MAJOR
- See Also:
-
SERIALIZED_NAME_MINOR
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LinuxDeviceCgroup
public LinuxDeviceCgroup()
-
-
Method Details
-
access
-
getAccess
Cgroup access permissions format, rwm.- Returns:
- access
-
setAccess
-
allow
-
getAllow
Allow or deny- Returns:
- allow
-
setAllow
-
major
-
getMajor
Major is the device's major number.- Returns:
- major
-
setMajor
-
minor
-
getMinor
Minor is the device's minor number.- Returns:
- minor
-
setMinor
-
type
-
getType
Device type, block, char, etc.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-
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 LinuxDeviceCgroup
-
fromJson
Create an instance of LinuxDeviceCgroup given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LinuxDeviceCgroup
- Throws:
IOException- if the JSON string is invalid with respect to LinuxDeviceCgroup
-
toJson
Convert an instance of LinuxDeviceCgroup to an JSON string- Returns:
- JSON string
-