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.
  • Field Details

  • Constructor Details

    • V1NodeSwapStatus

      public V1NodeSwapStatus()
  • Method Details

    • capacity

      public V1NodeSwapStatus capacity(@Nullable Long capacity)
    • getCapacity

      @Nullable public Long getCapacity()
      Total amount of swap memory in bytes.
      Returns:
      capacity
    • setCapacity

      public void setCapacity(@Nullable Long capacity)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static V1NodeSwapStatus fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of V1NodeSwapStatus to an JSON string
      Returns:
      JSON string