Class NamedVolume
java.lang.Object
io.github.alersrt.pod4j.openapi.model.NamedVolume
@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 NamedVolume
extends Object
NamedVolume holds information about a named 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) booleanstatic NamedVolumeCreate an instance of NamedVolume given an JSON stringgetDest()Destination to mount the named volume within the container.IsAnonymous sets the named volume as anonymous even if it has a name This is used for emptyDir volumes from a kube yamlgetName()Name is the name of the named volume to be mounted.Options are options that the named volume will be mounted with.SubPath stores the sub directory of the named volume to be mounted in the containerinthashCode()isAnonymous(Boolean isAnonymous) voidvoidsetIsAnonymous(Boolean isAnonymous) voidvoidsetOptions(List<String> options) voidsetSubPath(String subPath) toJson()Convert an instance of NamedVolume 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_DEST
- See Also:
-
SERIALIZED_NAME_IS_ANONYMOUS
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_SUB_PATH
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
NamedVolume
public NamedVolume()
-
-
Method Details
-
dest
-
getDest
Destination to mount the named volume within the container. Must be an absolute path. Path will be created if it does not exist.- Returns:
- dest
-
setDest
-
isAnonymous
-
getIsAnonymous
IsAnonymous sets the named volume as anonymous even if it has a name This is used for emptyDir volumes from a kube yaml- Returns:
- isAnonymous
-
setIsAnonymous
-
name
-
getName
Name is the name of the named volume to be mounted. May be empty. If empty, a new named volume with a pseudorandomly generated name will be mounted at the given destination.- Returns:
- name
-
setName
-
options
-
addOptionsItem
-
getOptions
Options are options that the named volume will be mounted with.- Returns:
- options
-
setOptions
-
subPath
-
getSubPath
SubPath stores the sub directory of the named volume to be mounted in the container- 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 NamedVolume
-
fromJson
Create an instance of NamedVolume given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NamedVolume
- Throws:
IOException- if the JSON string is invalid with respect to NamedVolume
-
toJson
Convert an instance of NamedVolume to an JSON string- Returns:
- JSON string
-