Class OverlayVolume
java.lang.Object
io.github.alersrt.pod4j.openapi.model.OverlayVolume
@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 OverlayVolume
extends Object
OverlayVolume holds information about an overlay volume that will be mounted into the container.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOptionsItem(String optionsItem) destination(String destination) booleanstatic OverlayVolumeCreate an instance of OverlayVolume given an JSON stringDestination is the absolute path where the mount will be placed in the container.Options holds overlay volume options.Source specifies the source path of the mount.inthashCode()voidsetDestination(String destination) voidsetOptions(List<String> options) voidtoJson()Convert an instance of OverlayVolume 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_OPTIONS
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OverlayVolume
public OverlayVolume()
-
-
Method Details
-
destination
-
getDestination
Destination is the absolute path where the mount will be placed in the container.- Returns:
- destination
-
setDestination
-
options
-
addOptionsItem
-
getOptions
Options holds overlay volume options.- Returns:
- options
-
setOptions
-
source
-
getSource
Source specifies the source path of the mount.- Returns:
- source
-
setSource
-
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 OverlayVolume
-
fromJson
Create an instance of OverlayVolume given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OverlayVolume
- Throws:
IOException- if the JSON string is invalid with respect to OverlayVolume
-
toJson
Convert an instance of OverlayVolume to an JSON string- Returns:
- JSON string
-