Class UsageData
java.lang.Object
io.github.alersrt.pod4j.openapi.model.UsageData
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class UsageData
extends Object
implements Serializable
UsageData Usage details about the volume. This information is used by the `GET /system/df` endpoint, and omitted in other endpoints.
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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
-
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 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
-
toJson
Convert an instance of UsageData to an JSON string- Returns:
- JSON string
-