Class V2HorizontalPodAutoscalerCondition
java.lang.Object
io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V2HorizontalPodAutoscalerCondition
extends Object
HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Create an instance of V2HorizontalPodAutoscalerCondition given an JSON stringlastTransitionTime is the last time the condition transitioned from one status to anothermessage is a human-readable explanation containing details about the transitionreason is the reason for the condition's last transition.status is the status of the condition (True, False, Unknown)getType()
type describes the current conditionint
hashCode()
lastTransitionTime
(OffsetDateTime lastTransitionTime) void
setLastTransitionTime
(OffsetDateTime lastTransitionTime) void
setMessage
(String message) void
void
void
toJson()
Convert an instance of V2HorizontalPodAutoscalerCondition to an JSON stringtoString()
static void
validateJsonElement
(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_REASON
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2HorizontalPodAutoscalerCondition
public V2HorizontalPodAutoscalerCondition()
-
-
Method Details
-
lastTransitionTime
-
getLastTransitionTime
lastTransitionTime is the last time the condition transitioned from one status to another- Returns:
- lastTransitionTime
-
setLastTransitionTime
-
message
-
getMessage
message is a human-readable explanation containing details about the transition- Returns:
- message
-
setMessage
-
reason
-
getReason
reason is the reason for the condition's last transition.- Returns:
- reason
-
setReason
-
status
-
getStatus
status is the status of the condition (True, False, Unknown)- Returns:
- status
-
setStatus
-
type
-
getType
type describes the current condition- 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 V2HorizontalPodAutoscalerCondition
-
fromJson
Create an instance of V2HorizontalPodAutoscalerCondition given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V2HorizontalPodAutoscalerCondition
- Throws:
IOException
- if the JSON string is invalid with respect to V2HorizontalPodAutoscalerCondition
-
toJson
Convert an instance of V2HorizontalPodAutoscalerCondition to an JSON string- Returns:
- JSON string
-