Class HPAScalingPolicy.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy.Builder
-
- Enclosing class:
- HPAScalingPolicy
public static class HPAScalingPolicy.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HPAScalingPolicy
build()
HPAScalingPolicy.Builder
periodSeconds(@NonNull java.lang.Number periodSeconds)
PeriodSeconds specifies the window of time for which the policy should hold true.java.lang.String
toString()
HPAScalingPolicy.Builder
type(@NonNull java.lang.String type)
Type is used to specify the scaling policy.HPAScalingPolicy.Builder
value(@NonNull java.lang.Number value)
Value contains the amount of change which is permitted by the policy.
-
-
-
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
.
-
build
public HPAScalingPolicy build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-