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).
  • Field Details

  • Constructor Details

    • V2HorizontalPodAutoscalerBehavior

      public V2HorizontalPodAutoscalerBehavior()
  • Method Details

    • scaleDown

    • getScaleDown

      @Nullable public V2HPAScalingRules getScaleDown()
      Get scaleDown
      Returns:
      scaleDown
    • setScaleDown

      public void setScaleDown(V2HPAScalingRules scaleDown)
    • scaleUp

    • getScaleUp

      @Nullable public V2HPAScalingRules getScaleUp()
      Get scaleUp
      Returns:
      scaleUp
    • setScaleUp

      public void setScaleUp(V2HPAScalingRules scaleUp)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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

      public static V2HorizontalPodAutoscalerBehavior fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of V2HorizontalPodAutoscalerBehavior to an JSON string
      Returns:
      JSON string