Class V1CustomResourceDefinitionCondition
java.lang.Object
io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-01-21T21:30:13.305152Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V1CustomResourceDefinitionCondition
extends Object
CustomResourceDefinitionCondition contains details for the current condition of this pod.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of V1CustomResourceDefinitionCondition given an JSON stringlastTransitionTime last time the condition transitioned from one status to another.message is a human-readable message indicating details about last transition.observedGeneration represents the .metadata.generation that the condition was set based upon.reason is a unique, one-word, CamelCase reason for the condition's last transition.status is the status of the condition.getType()type is the type of the condition.inthashCode()lastTransitionTime(OffsetDateTime lastTransitionTime) observedGeneration(Long observedGeneration) voidsetLastTransitionTime(OffsetDateTime lastTransitionTime) voidsetMessage(String message) voidsetObservedGeneration(Long observedGeneration) voidvoidvoidtoJson()Convert an instance of V1CustomResourceDefinitionCondition to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element 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
-
V1CustomResourceDefinitionCondition
public V1CustomResourceDefinitionCondition()
-
-
Method Details
-
lastTransitionTime
public V1CustomResourceDefinitionCondition lastTransitionTime(@Nullable OffsetDateTime lastTransitionTime) -
getLastTransitionTime
lastTransitionTime last time the condition transitioned from one status to another.- Returns:
- lastTransitionTime
-
setLastTransitionTime
-
message
-
getMessage
message is a human-readable message indicating details about last transition.- 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 is a unique, one-word, CamelCase reason for the condition's last transition.- Returns:
- reason
-
setReason
-
status
-
getStatus
status is the status of the condition. Can be True, False, Unknown.- Returns:
- status
-
setStatus
-
type
-
getType
type is the type of the condition. Types include Established, NamesAccepted and Terminating.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 V1CustomResourceDefinitionCondition
-
fromJson
Create an instance of V1CustomResourceDefinitionCondition given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1CustomResourceDefinitionCondition
- Throws:
IOException- if the JSON string is invalid with respect to V1CustomResourceDefinitionCondition
-
toJson
Convert an instance of V1CustomResourceDefinitionCondition to an JSON string- Returns:
- JSON string
-