Class VolumeCreate
java.lang.Object
io.github.alersrt.pod4j.openapi.model.VolumeCreate
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class VolumeCreate
extends Object
Details for creating a volume
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondriverOpts(Map<String, String> driverOpts) booleanstatic VolumeCreateCreate an instance of VolumeCreate given an JSON string@NotNull StringName of the volume driver to use.A mapping of driver options and values.User-defined key/value metadata.@NotNull StringgetName()The new volume's name.inthashCode()putDriverOptsItem(String key, String driverOptsItem) putLabelsItem(String key, String labelsItem) voidvoidsetDriverOpts(Map<String, String> driverOpts) voidvoidtoJson()Convert an instance of VolumeCreate 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_DRIVER_OPTS
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VolumeCreate
public VolumeCreate()
-
-
Method Details
-
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 VolumeCreate
-
fromJson
Create an instance of VolumeCreate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VolumeCreate
- Throws:
IOException- if the JSON string is invalid with respect to VolumeCreate
-
driver
-
getDriver
Name of the volume driver to use.- Returns:
- driver
-
setDriver
-
driverOpts
-
putDriverOptsItem
-
getDriverOpts
A mapping of driver options and values. These options are passed directly to the driver and are driver specific.- Returns:
- driverOpts
-
setDriverOpts
-
labels
-
putLabelsItem
-
getLabels
User-defined key/value metadata.- Returns:
- labels
-
setLabels
-
name
-
getName
The new volume's name. If not specified, Docker generates a name.- Returns:
- name
-
setName
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of VolumeCreate to an JSON string- Returns:
- JSON string
-