Class LinuxIDMapping
java.lang.Object
io.github.alersrt.pod4j.openapi.model.LinuxIDMapping
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LinuxIDMapping
extends Object
implements Serializable
LinuxIDMapping specifies UID/GID mappings
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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 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
-