Class V2HPAScalingPolicy

java.lang.Object
io.kubernetes.client.openapi.models.V2HPAScalingPolicy

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V2HPAScalingPolicy extends Object
HPAScalingPolicy is a single policy which must hold true for a specified past interval.
  • Field Details

  • Constructor Details

    • V2HPAScalingPolicy

      public V2HPAScalingPolicy()
  • Method Details

    • periodSeconds

      public V2HPAScalingPolicy periodSeconds(Integer periodSeconds)
    • getPeriodSeconds

      @Nonnull public Integer getPeriodSeconds()
      periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
      Returns:
      periodSeconds
    • setPeriodSeconds

      public void setPeriodSeconds(Integer periodSeconds)
    • type

      public V2HPAScalingPolicy type(String type)
    • getType

      @Nonnull public String getType()
      type is used to specify the scaling policy.
      Returns:
      type
    • setType

      public void setType(String type)
    • value

      public V2HPAScalingPolicy value(Integer value)
    • getValue

      @Nonnull public Integer getValue()
      value contains the amount of change which is permitted by the policy. It must be greater than zero
      Returns:
      value
    • setValue

      public void setValue(Integer value)
    • 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 V2HPAScalingPolicy
    • fromJson

      public static V2HPAScalingPolicy fromJson(String jsonString) throws IOException
      Create an instance of V2HPAScalingPolicy given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V2HPAScalingPolicy
      Throws:
      IOException - if the JSON string is invalid with respect to V2HPAScalingPolicy
    • toJson

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