Class V2HorizontalPodAutoscalerCondition
java.lang.Object
io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
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 TypeMethodDescriptionbooleanCreate 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 conditioninthashCode()lastTransitionTime(OffsetDateTime lastTransitionTime) voidsetLastTransitionTime(OffsetDateTime lastTransitionTime) voidsetMessage(String message) voidvoidvoidtoJson()Convert an instance of V2HorizontalPodAutoscalerCondition to an JSON stringtoString()static voidvalidateJsonObject(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_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
-
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 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
-