Class LinuxIDMapping
java.lang.Object
io.github.alersrt.pod4j.openapi.model.LinuxIDMapping
@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 LinuxIDMapping
extends Object
LinuxIDMapping specifies UID/GID mappings
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontainerID(Integer containerID) booleanstatic LinuxIDMappingCreate an instance of LinuxIDMapping given an JSON stringContainerID is the starting UID/GID in the containerHostID is the starting UID/GID on the host to be mapped to 'ContainerID'getSize()Size is the number of IDs to be mappedinthashCode()voidsetContainerID(Integer containerID) voidvoidtoJson()Convert an instance of LinuxIDMapping 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_CONTAINER_I_D
- See Also:
-
SERIALIZED_NAME_HOST_I_D
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LinuxIDMapping
public LinuxIDMapping()
-
-
Method Details
-
containerID
-
getContainerID
ContainerID is the starting UID/GID in the container- Returns:
- containerID
-
setContainerID
-
hostID
-
getHostID
HostID is the starting UID/GID on the host to be mapped to 'ContainerID'- Returns:
- hostID
-
setHostID
-
size
-
getSize
Size is the number of IDs to be mapped- Returns:
- size
-
setSize
-
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 LinuxIDMapping
-
fromJson
Create an instance of LinuxIDMapping given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LinuxIDMapping
- Throws:
IOException- if the JSON string is invalid with respect to LinuxIDMapping
-
toJson
Convert an instance of LinuxIDMapping to an JSON string- Returns:
- JSON string
-