Class LinuxDevice
java.lang.Object
io.github.alersrt.pod4j.openapi.model.LinuxDevice
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LinuxDevice
extends Object
implements Serializable
LinuxDevice represents the mknod information for a Linux special device file
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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
-
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 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
-
toJson
Convert an instance of LinuxDevice to an JSON string- Returns:
- JSON string
-