Class HPAScalingPolicy
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.autoscaling.v2beta2.HPAScalingPolicy
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<HPAScalingPolicyBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class HPAScalingPolicy extends Object implements io.fabric8.kubernetes.api.builder.Editable<HPAScalingPolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
HPAScalingPolicy is a single policy which must hold true for a specified past interval.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HPAScalingPolicy()No args constructor for use in serializationHPAScalingPolicy(Integer periodSeconds, String type, Integer value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HPAScalingPolicyBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetPeriodSeconds()PeriodSeconds specifies the window of time for which the policy should hold true.StringgetType()Type is used to specify the scaling policy.IntegergetValue()Value contains the amount of change which is permitted by the policy.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetPeriodSeconds(Integer periodSeconds)PeriodSeconds specifies the window of time for which the policy should hold true.voidsetType(String type)Type is used to specify the scaling policy.voidsetValue(Integer value)Value contains the amount of change which is permitted by the policy.HPAScalingPolicyBuildertoBuilder()
-
-
-
Method Detail
-
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).
-
setPeriodSeconds
public void setPeriodSeconds(Integer 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).
-
getType
public String getType()
Type is used to specify the scaling policy.
-
setType
public void setType(String type)
Type is used to specify the scaling policy.
-
getValue
public Integer getValue()
Value contains the amount of change which is permitted by the policy. It must be greater than zero
-
setValue
public void setValue(Integer value)
Value contains the amount of change which is permitted by the policy. It must be greater than zero
-
edit
public HPAScalingPolicyBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<HPAScalingPolicyBuilder>
-
toBuilder
public HPAScalingPolicyBuilder toBuilder()
-
-