Class V1ResourceHealth

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ResourceHealth

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") 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 and historical health changes are planned to be added in future iterations of a KEP.
  • Field Details

  • Constructor Details

    • V1ResourceHealth

      public V1ResourceHealth(String resourceID)
  • Method Details

    • getResourceID

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

      public void setResourceID(String resourceID)
      Set the resourceID property value
      Parameters:
      resourceID - property value to set
    • resourceID

      public V1ResourceHealth resourceID(String resourceID)
      Set resourceID in a chainable fashion.
      Returns:
      The same instance of V1ResourceHealth for chaining.
    • getHealth

      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:
      the health property value
    • setHealth

      public void setHealth(String health)
      Set the health property value
      Parameters:
      health - property value to set
    • health

      public V1ResourceHealth health(String health)
      Set health in a chainable fashion.
      Returns:
      The same instance of V1ResourceHealth for chaining.
    • 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