Class VolumeCreate
java.lang.Object
io.github.alersrt.pod4j.openapi.model.VolumeCreate
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class VolumeCreate
extends Object
implements Serializable
Details for creating a volume
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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
-
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 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
-
toJson
Convert an instance of VolumeCreate to an JSON string- Returns:
- JSON string
-