Class VolumeCreateOptions
java.lang.Object
io.github.alersrt.pod4j.openapi.model.VolumeCreateOptions
@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 VolumeCreateOptions
extends Object
VolumeCreateOptions
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic VolumeCreateOptionsCreate an instance of VolumeCreateOptions given an JSON stringVolume driver to useIgnore existing volumesgetLabel()User-defined key/value metadata.User-defined key/value metadata.getName()New volume's name.Mapping of driver options and values.inthashCode()ignoreIfExists(Boolean ignoreIfExists) putLabelItem(String key, String labelItem) putLabelsItem(String key, String labelsItem) putOptionsItem(String key, String optionsItem) voidvoidsetIgnoreIfExists(Boolean ignoreIfExists) voidvoidvoidvoidsetOptions(Map<String, String> options) toJson()Convert an instance of VolumeCreateOptions 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_DRIVER
- See Also:
-
SERIALIZED_NAME_IGNORE_IF_EXISTS
- See Also:
-
SERIALIZED_NAME_LABEL
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VolumeCreateOptions
public VolumeCreateOptions()
-
-
Method Details
-
driver
-
getDriver
Volume driver to use- Returns:
- driver
-
setDriver
-
ignoreIfExists
-
getIgnoreIfExists
Ignore existing volumes- Returns:
- ignoreIfExists
-
setIgnoreIfExists
-
label
-
putLabelItem
-
getLabel
User-defined key/value metadata. Provided for compatibility- Returns:
- label
-
setLabel
-
labels
-
putLabelsItem
-
getLabels
User-defined key/value metadata. Preferred field, will override Label- Returns:
- labels
-
setLabels
-
name
-
getName
New volume's name. Can be left blank- Returns:
- name
-
setName
-
options
-
putOptionsItem
-
getOptions
Mapping of driver options and values.- Returns:
- options
-
setOptions
-
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 VolumeCreateOptions
-
fromJson
Create an instance of VolumeCreateOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VolumeCreateOptions
- Throws:
IOException- if the JSON string is invalid with respect to VolumeCreateOptions
-
toJson
Convert an instance of VolumeCreateOptions to an JSON string- Returns:
- JSON string
-