Class ImageVolume
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ImageVolume
@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 ImageVolume
extends Object
ImageVolume is a volume based on a container image. The container image is first mounted on the
host and is then bind-mounted into the container. An ImageVolume is always mounted read-only.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondestination(String destination) booleanstatic ImageVolumeCreate an instance of ImageVolume given an JSON stringDestination is the absolute path of the mount in the container.ReadWrite sets the volume writable.Source is the source of the image volume.SubPath mounts a particular path within the image.inthashCode()voidsetDestination(String destination) voidsetReadWrite(Boolean readWrite) voidvoidsetSubPath(String subPath) toJson()Convert an instance of ImageVolume 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_DESTINATION
- See Also:
-
SERIALIZED_NAME_READ_WRITE
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
SERIALIZED_NAME_SUB_PATH
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ImageVolume
public ImageVolume()
-
-
Method Details
-
destination
-
getDestination
Destination is the absolute path of the mount in the container.- Returns:
- destination
-
setDestination
-
readWrite
-
getReadWrite
ReadWrite sets the volume writable.- Returns:
- readWrite
-
setReadWrite
-
source
-
getSource
Source is the source of the image volume. The image can be referred to by name and by ID.- Returns:
- source
-
setSource
-
subPath
-
getSubPath
SubPath mounts a particular path within the image. If empty, the whole image is mounted.- Returns:
- subPath
-
setSubPath
-
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 ImageVolume
-
fromJson
Create an instance of ImageVolume given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ImageVolume
- Throws:
IOException- if the JSON string is invalid with respect to ImageVolume
-
toJson
Convert an instance of ImageVolume to an JSON string- Returns:
- JSON string
-