Class Volume
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Volume
@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 Volume
extends Object
Volume volume
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclusterVolume(ClusterVolume clusterVolume) booleanstatic VolumeCreate an instance of Volume given an JSON stringGet clusterVolumeDate/Time the volume was created.Name of the volume driver used by the volume.User-defined key/value metadata.Mount path of the volume on the host.getName()Name of the volume.The driver specific options used when creating the volume.getScope()The level at which the volume exists.Low-level details about the volume, provided by the volume driver.Get usageDatainthashCode()mountpoint(String mountpoint) putLabelsItem(String key, String labelsItem) putOptionsItem(String key, String optionsItem) putStatusItem(String key, Object statusItem) voidsetClusterVolume(ClusterVolume clusterVolume) voidsetCreatedAt(String createdAt) voidvoidvoidsetMountpoint(String mountpoint) voidvoidsetOptions(Map<String, String> options) voidvoidvoidsetUsageData(UsageData usageData) toJson()Convert an instance of Volume 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_CLUSTER_VOLUME
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_MOUNTPOINT
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_SCOPE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_USAGE_DATA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Volume
public Volume()
-
-
Method Details
-
clusterVolume
-
getClusterVolume
Get clusterVolume- Returns:
- clusterVolume
-
setClusterVolume
-
createdAt
-
getCreatedAt
Date/Time the volume was created.- Returns:
- createdAt
-
setCreatedAt
-
driver
-
getDriver
Name of the volume driver used by the volume.- Returns:
- driver
-
setDriver
-
labels
-
putLabelsItem
-
getLabels
User-defined key/value metadata.- Returns:
- labels
-
setLabels
-
mountpoint
-
getMountpoint
Mount path of the volume on the host.- Returns:
- mountpoint
-
setMountpoint
-
name
-
getName
Name of the volume.- Returns:
- name
-
setName
-
options
-
putOptionsItem
-
getOptions
The driver specific options used when creating the volume.- Returns:
- options
-
setOptions
-
scope
-
getScope
The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level.- Returns:
- scope
-
setScope
-
status
-
putStatusItem
-
getStatus
Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{\"key\":\"value\",\"key2\":\"value2\"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature.- Returns:
- status
-
setStatus
-
usageData
-
getUsageData
Get usageData- Returns:
- usageData
-
setUsageData
-
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 Volume
-
fromJson
Create an instance of Volume given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Volume
- Throws:
IOException- if the JSON string is invalid with respect to Volume
-
toJson
Convert an instance of Volume to an JSON string- Returns:
- JSON string
-