Class UsageData
java.lang.Object
io.github.alersrt.pod4j.openapi.model.UsageData
@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 UsageData
extends Object
UsageData Usage details about the volume. This information is used by the `GET /system/df` endpoint, and omitted in other endpoints.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UsageDataCreate an instance of UsageData given an JSON string@NotNull LongThe number of containers referencing this volume.@NotNull LonggetSize()Amount of disk space used by the volume (in bytes).inthashCode()voidsetRefCount(Long refCount) voidtoJson()Convert an instance of UsageData 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_REF_COUNT
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UsageData
public UsageData()
-
-
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 UsageData
-
fromJson
Create an instance of UsageData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UsageData
- Throws:
IOException- if the JSON string is invalid with respect to UsageData
-
refCount
-
getRefCount
The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available.- Returns:
- refCount
-
setRefCount
-
size
-
getSize
Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\"local\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\"not available\")- Returns:
- size
-
setSize
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of UsageData to an JSON string- Returns:
- JSON string
-