Class HPAScalingPolicy.Builder

  • Enclosing class:
    HPAScalingPolicy

    public static class HPAScalingPolicy.Builder
    extends java.lang.Object
    • Method Detail

      • periodSeconds

        public HPAScalingPolicy.Builder periodSeconds​(@NonNull
                                                      @NonNull java.lang.Number periodSeconds)
        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:
        this.
      • type

        public HPAScalingPolicy.Builder type​(@NonNull
                                             @NonNull java.lang.String type)
        Type is used to specify the scaling policy.
        Returns:
        this.
      • value

        public HPAScalingPolicy.Builder value​(@NonNull
                                              @NonNull java.lang.Number value)
        Value contains the amount of change which is permitted by the policy. It must be greater than zero
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object