Class V1Condition

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1Condition extends Object
Condition contains details for one aspect of the current state of this API Resource.
  • Field Details

  • Constructor Details

    • V1Condition

      public V1Condition()
  • Method Details

    • lastTransitionTime

      public V1Condition lastTransitionTime(OffsetDateTime lastTransitionTime)
    • getLastTransitionTime

      @Nonnull public OffsetDateTime getLastTransitionTime()
      lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
      Returns:
      lastTransitionTime
    • setLastTransitionTime

      public void setLastTransitionTime(OffsetDateTime lastTransitionTime)
    • message

      public V1Condition message(String message)
    • getMessage

      @Nonnull public String getMessage()
      message is a human readable message indicating details about the transition. This may be an empty string.
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • observedGeneration

      public V1Condition observedGeneration(Long observedGeneration)
    • getObservedGeneration

      @Nullable public Long getObservedGeneration()
      observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
      Returns:
      observedGeneration
    • setObservedGeneration

      public void setObservedGeneration(Long observedGeneration)
    • reason

      public V1Condition reason(String reason)
    • getReason

      @Nonnull public String getReason()
      reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
      Returns:
      reason
    • setReason

      public void setReason(String reason)
    • status

      public V1Condition status(String status)
    • getStatus

      @Nonnull public String getStatus()
      status of the condition, one of True, False, Unknown.
      Returns:
      status
    • setStatus

      public void setStatus(String status)
    • type

      public V1Condition type(String type)
    • getType

      @Nonnull public String getType()
      type of condition in CamelCase or in foo.example.com/CamelCase.
      Returns:
      type
    • setType

      public void setType(String type)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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 V1Condition
    • fromJson

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

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