Class V2HPAScalingPolicy

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V2HPAScalingPolicy

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") 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(Integer periodSeconds, String type, Integer value)
  • Method Details

    • getPeriodSeconds

      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:
      the periodSeconds property value
    • setPeriodSeconds

      public void setPeriodSeconds(Integer periodSeconds)
      Set the periodSeconds property value
    • periodSeconds

      public V2HPAScalingPolicy periodSeconds(Integer periodSeconds)
      Set periodSeconds in a chainable fashion.
      Returns:
      The same instance of V2HPAScalingPolicy for chaining.
    • getType

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

      public void setType(String type)
      Set the type property value
    • type

      public V2HPAScalingPolicy type(String type)
      Set type in a chainable fashion.
      Returns:
      The same instance of V2HPAScalingPolicy for chaining.
    • getValue

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

      public void setValue(Integer value)
      Set the value property value
    • value

      public V2HPAScalingPolicy value(Integer value)
      Set value in a chainable fashion.
      Returns:
      The same instance of V2HPAScalingPolicy for chaining.
    • 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