Class V1NodeSwapStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1NodeSwapStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1NodeSwapStatus
extends Object
NodeSwapStatus represents swap memory information.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1NodeSwapStatus
Create an instance of V1NodeSwapStatus given an JSON stringTotal amount of swap memory in bytes.int
hashCode()
void
setCapacity
(Long capacity) toJson()
Convert an instance of V1NodeSwapStatus to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CAPACITY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1NodeSwapStatus
public V1NodeSwapStatus()
-
-
Method Details
-
capacity
-
getCapacity
Total amount of swap memory in bytes.- Returns:
- capacity
-
setCapacity
-
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 V1NodeSwapStatus
-
fromJson
Create an instance of V1NodeSwapStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1NodeSwapStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V1NodeSwapStatus
-
toJson
Convert an instance of V1NodeSwapStatus to an JSON string- Returns:
- JSON string
-