@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-07-29T18:17:00.375Z[Etc/UTC]") public class V1HorizontalPodAutoscalerSpec extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_MAX_REPLICAS |
static String |
SERIALIZED_NAME_MIN_REPLICAS |
static String |
SERIALIZED_NAME_SCALE_TARGET_REF |
static String |
SERIALIZED_NAME_TARGET_C_P_U_UTILIZATION_PERCENTAGE |
Constructor and Description |
---|
V1HorizontalPodAutoscalerSpec() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Integer |
getMaxReplicas()
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than
MinReplicas.
|
Integer |
getMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler can scale
down.
|
V1CrossVersionObjectReference |
getScaleTargetRef()
Get scaleTargetRef
|
Integer |
getTargetCPUUtilizationPercentage()
target average CPU utilization (represented as a percentage of requested CPU) over all the
pods; if not specified the default autoscaling policy will be used.
|
int |
hashCode() |
V1HorizontalPodAutoscalerSpec |
maxReplicas(Integer maxReplicas) |
V1HorizontalPodAutoscalerSpec |
minReplicas(Integer minReplicas) |
V1HorizontalPodAutoscalerSpec |
scaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) |
void |
setMaxReplicas(Integer maxReplicas) |
void |
setMinReplicas(Integer minReplicas) |
void |
setScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) |
void |
setTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) |
V1HorizontalPodAutoscalerSpec |
targetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) |
String |
toString() |
public static final String SERIALIZED_NAME_MAX_REPLICAS
public static final String SERIALIZED_NAME_MIN_REPLICAS
public static final String SERIALIZED_NAME_SCALE_TARGET_REF
public static final String SERIALIZED_NAME_TARGET_C_P_U_UTILIZATION_PERCENTAGE
public V1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas)
public Integer getMaxReplicas()
public void setMaxReplicas(Integer maxReplicas)
public V1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas)
@Nullable public Integer getMinReplicas()
public void setMinReplicas(Integer minReplicas)
public V1HorizontalPodAutoscalerSpec scaleTargetRef(V1CrossVersionObjectReference scaleTargetRef)
public V1CrossVersionObjectReference getScaleTargetRef()
public void setScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef)
public V1HorizontalPodAutoscalerSpec targetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage)
@Nullable public Integer getTargetCPUUtilizationPercentage()
public void setTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage)
Copyright © 2020. All rights reserved.