Class ImageVolume
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ImageVolume
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ImageVolume
extends Object
implements Serializable
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.
- See Also:
-
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 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_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
-
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 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
-