Class V2HorizontalPodAutoscalerBehavior
java.lang.Object
io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V2HorizontalPodAutoscalerBehavior
extends Object
HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Create an instance of V2HorizontalPodAutoscalerBehavior given an JSON stringGet scaleDownGet scaleUpint
hashCode()
scaleDown
(V2HPAScalingRules scaleDown) scaleUp
(V2HPAScalingRules scaleUp) void
setScaleDown
(V2HPAScalingRules scaleDown) void
setScaleUp
(V2HPAScalingRules scaleUp) toJson()
Convert an instance of V2HorizontalPodAutoscalerBehavior 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_SCALE_DOWN
- See Also:
-
SERIALIZED_NAME_SCALE_UP
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2HorizontalPodAutoscalerBehavior
public V2HorizontalPodAutoscalerBehavior()
-
-
Method Details
-
scaleDown
-
getScaleDown
Get scaleDown- Returns:
- scaleDown
-
setScaleDown
-
scaleUp
-
getScaleUp
Get scaleUp- Returns:
- scaleUp
-
setScaleUp
-
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 V2HorizontalPodAutoscalerBehavior
-
fromJson
Create an instance of V2HorizontalPodAutoscalerBehavior given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V2HorizontalPodAutoscalerBehavior
- Throws:
IOException
- if the JSON string is invalid with respect to V2HorizontalPodAutoscalerBehavior
-
toJson
Convert an instance of V2HorizontalPodAutoscalerBehavior to an JSON string- Returns:
- JSON string
-