Class MountPoint
java.lang.Object
io.github.alersrt.pod4j.openapi.model.MountPoint
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class MountPoint
extends Object
implements Serializable
This is used for reporting the mountpoints in use by a container.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondestination(String destination) booleanstatic MountPointCreate an instance of MountPoint given an JSON stringDestination is the path relative to the container root (`/`) where the Source is mounted inside the container.Driver is the volume driver used to create the volume (if it is a volume).getMode()Mode is a comma separated list of options supplied by the user when creating the bind/volume mount.getName()Name is the name reference to the underlying data defined by `Source` e.g., the volume name.Get propagationgetRW()RW indicates whether the mount is mounted writable (read-write).Source is the source location of the mount.getType()Get typeinthashCode()propagation(String propagation) voidsetDestination(String destination) voidvoidvoidvoidsetPropagation(String propagation) voidvoidvoidtoJson()Convert an instance of MountPoint 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_DESTINATION
- See Also:
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_MODE
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_PROPAGATION
- See Also:
-
SERIALIZED_NAME_R_W
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
MountPoint
public MountPoint()
-
-
Method Details
-
destination
-
getDestination
Destination is the path relative to the container root (`/`) where the Source is mounted inside the container.- Returns:
- destination
-
setDestination
-
driver
-
getDriver
Driver is the volume driver used to create the volume (if it is a volume).- Returns:
- driver
-
setDriver
-
mode
-
getMode
Mode is a comma separated list of options supplied by the user when creating the bind/volume mount. The default is platform-specific (`\"z\"` on Linux, empty on Windows).- Returns:
- mode
-
setMode
-
name
-
getName
Name is the name reference to the underlying data defined by `Source` e.g., the volume name.- Returns:
- name
-
setName
-
propagation
-
getPropagation
Get propagation- Returns:
- propagation
-
setPropagation
-
RW
-
getRW
RW indicates whether the mount is mounted writable (read-write).- Returns:
- RW
-
setRW
-
source
-
getSource
Source is the source location of the mount. For volumes, this contains the storage location of the volume (within `/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains the source (host) part of the bind-mount. For `tmpfs` mount points, this field is empty.- Returns:
- source
-
setSource
-
type
-
getType
Get type- Returns:
- type
-
setType
-
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 MountPoint
-
fromJson
Create an instance of MountPoint given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MountPoint
- Throws:
IOException- if the JSON string is invalid with respect to MountPoint
-
toJson
Convert an instance of MountPoint to an JSON string- Returns:
- JSON string
-