Class V1ResourceHealth

java.lang.Object
io.kubernetes.client.openapi.models.V1ResourceHealth

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T21:15:49.397498Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1ResourceHealth extends Object
ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680.
  • Field Details

  • Constructor Details

    • V1ResourceHealth

      public V1ResourceHealth()
  • Method Details

    • health

      public V1ResourceHealth health(String health)
    • getHealth

      @Nullable public String getHealth()
      Health of the resource. can be one of: - Healthy: operates as normal - Unhealthy: reported unhealthy. We consider this a temporary health issue since we do not have a mechanism today to distinguish temporary and permanent issues. - Unknown: The status cannot be determined. For example, Device Plugin got unregistered and hasn't been re-registered since. In future we may want to introduce the PermanentlyUnhealthy Status.
      Returns:
      health
    • setHealth

      public void setHealth(String health)
    • resourceID

      public V1ResourceHealth resourceID(String resourceID)
    • getResourceID

      @Nonnull public String getResourceID()
      ResourceID is the unique identifier of the resource. See the ResourceID type for more information.
      Returns:
      resourceID
    • setResourceID

      public void setResourceID(String resourceID)
    • 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 V1ResourceHealth
    • fromJson

      public static V1ResourceHealth fromJson(String jsonString) throws IOException
      Create an instance of V1ResourceHealth given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1ResourceHealth
      Throws:
      IOException - if the JSON string is invalid with respect to V1ResourceHealth
    • toJson

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