Class LinuxDevice
java.lang.Object
io.github.alersrt.pod4j.openapi.model.LinuxDevice
@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 LinuxDevice
extends Object
LinuxDevice represents the mknod information for a Linux special device file
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LinuxDeviceCreate an instance of LinuxDevice given an JSON stringThe bits have the same definition on all systems, so that information about files can be moved from one system to another portably.getGid()Gid of the device.getMajor()Major is the device's major number.getMinor()Minor is the device's minor number.getPath()Path to the device.getType()Device type, block, char, etc.getUid()UID of the device.inthashCode()voidsetFileMode(Integer fileMode) voidvoidvoidvoidvoidvoidtoJson()Convert an instance of LinuxDevice 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_FILE_MODE
- See Also:
-
SERIALIZED_NAME_GID
- See Also:
-
SERIALIZED_NAME_MAJOR
- See Also:
-
SERIALIZED_NAME_MINOR
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_UID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LinuxDevice
public LinuxDevice()
-
-
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 LinuxDevice
-
fromJson
Create an instance of LinuxDevice given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LinuxDevice
- Throws:
IOException- if the JSON string is invalid with respect to LinuxDevice
-
fileMode
-
getFileMode
The bits have the same definition on all systems, so that information about files can be moved from one system to another portably. Not all bits apply to all systems. The only required bit is [ModeDir] for directories.- Returns:
- fileMode
-
setFileMode
-
gid
-
getGid
Gid of the device.- Returns:
- gid
-
setGid
-
major
-
getMajor
Major is the device's major number.- Returns:
- major
-
setMajor
-
minor
-
getMinor
Minor is the device's minor number.- Returns:
- minor
-
setMinor
-
path
-
getPath
Path to the device.- Returns:
- path
-
setPath
-
type
-
getType
Device type, block, char, etc.- Returns:
- type
-
setType
-
uid
-
getUid
UID of the device.- Returns:
- uid
-
setUid
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of LinuxDevice to an JSON string- Returns:
- JSON string
-