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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1Condition
Create an instance of V1Condition given an JSON stringlastTransitionTime is the last time the condition transitioned from one status to another.message is a human readable message indicating details about the transition.observedGeneration represents the .metadata.generation that the condition was set based upon.reason contains a programmatic identifier indicating the reason for the condition's last transition.status of the condition, one of True, False, Unknown.getType()
type of condition in CamelCase or in foo.example.com/CamelCase.int
hashCode()
lastTransitionTime
(OffsetDateTime lastTransitionTime) observedGeneration
(Long observedGeneration) void
setLastTransitionTime
(OffsetDateTime lastTransitionTime) void
setMessage
(String message) void
setObservedGeneration
(Long observedGeneration) void
void
void
toJson()
Convert an instance of V1Condition to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_LAST_TRANSITION_TIME
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_OBSERVED_GENERATION
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1Condition
public V1Condition()
-
-
Method Details
-
lastTransitionTime
-
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
-
message
-
getMessage
message is a human readable message indicating details about the transition. This may be an empty string.- Returns:
- message
-
setMessage
-
observedGeneration
-
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
-
reason
-
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
-
status
-
getStatus
status of the condition, one of True, False, Unknown.- Returns:
- status
-
setStatus
-
type
-
getType
type of condition in CamelCase or in foo.example.com/CamelCase.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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
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
Convert an instance of V1Condition to an JSON string- Returns:
- JSON string
-