Class HPAScalingPolicy

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class HPAScalingPolicy
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    HPAScalingPolicy is a single policy which must hold true for a specified past interval.
    • Constructor Summary

      Constructors 
      Constructor Description
      HPAScalingPolicy()  
      HPAScalingPolicy​(@NonNull java.lang.Number periodSeconds, @NonNull java.lang.String type, @NonNull java.lang.Number value)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static HPAScalingPolicy.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      @NonNull java.lang.Number getPeriodSeconds()
      periodSeconds specifies the window of time for which the policy should hold true.
      @NonNull java.lang.String getType()
      type is used to specify the scaling policy.
      @NonNull java.lang.Number getValue()
      value contains the amount of change which is permitted by the policy.
      int hashCode()  
      void setPeriodSeconds​(@NonNull java.lang.Number periodSeconds)
      periodSeconds specifies the window of time for which the policy should hold true.
      void setType​(@NonNull java.lang.String type)
      type is used to specify the scaling policy.
      void setValue​(@NonNull java.lang.Number value)
      value contains the amount of change which is permitted by the policy.
      HPAScalingPolicy.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HPAScalingPolicy

        public HPAScalingPolicy​(@NonNull
                                @NonNull java.lang.Number periodSeconds,
                                @NonNull
                                @NonNull java.lang.String type,
                                @NonNull
                                @NonNull java.lang.Number value)
      • HPAScalingPolicy

        public HPAScalingPolicy()
    • Method Detail

      • getPeriodSeconds

        @NonNull
        public @NonNull java.lang.Number 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).
      • getType

        @NonNull
        public @NonNull java.lang.String getType()
        type is used to specify the scaling policy.
      • getValue

        @NonNull
        public @NonNull java.lang.Number getValue()
        value contains the amount of change which is permitted by the policy. It must be greater than zero
      • setPeriodSeconds

        public void setPeriodSeconds​(@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).
      • setType

        public void setType​(@NonNull
                            @NonNull java.lang.String type)
        type is used to specify the scaling policy.
      • setValue

        public void setValue​(@NonNull
                             @NonNull java.lang.Number value)
        value contains the amount of change which is permitted by the policy. It must be greater than zero
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

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