public final class AutoscalingPolicy extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
AutoscalingPolicy() |
Modifier and Type | Method and Description |
---|---|
AutoscalingPolicy |
clone() |
Integer |
getCoolDownPeriodSec()
The number of seconds that the autoscaler should wait before it starts collecting information
from a new instance.
|
AutoscalingPolicyCpuUtilization |
getCpuUtilization()
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU
utilization of a managed instance group.
|
List<AutoscalingPolicyCustomMetricUtilization> |
getCustomMetricUtilizations()
Configuration parameters of autoscaling based on a custom metric.
|
AutoscalingPolicyLoadBalancingUtilization |
getLoadBalancingUtilization()
Configuration parameters of autoscaling based on load balancer.
|
Integer |
getMaxNumReplicas()
The maximum number of instances that the autoscaler can scale up to.
|
Integer |
getMinNumReplicas()
The minimum number of replicas that the autoscaler can scale down to.
|
String |
getMode()
Defines operating mode for this policy.
|
AutoscalingPolicyScaleDownControl |
getScaleDownControl() |
AutoscalingPolicy |
set(String fieldName,
Object value) |
AutoscalingPolicy |
setCoolDownPeriodSec(Integer coolDownPeriodSec)
The number of seconds that the autoscaler should wait before it starts collecting information
from a new instance.
|
AutoscalingPolicy |
setCpuUtilization(AutoscalingPolicyCpuUtilization cpuUtilization)
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU
utilization of a managed instance group.
|
AutoscalingPolicy |
setCustomMetricUtilizations(List<AutoscalingPolicyCustomMetricUtilization> customMetricUtilizations)
Configuration parameters of autoscaling based on a custom metric.
|
AutoscalingPolicy |
setLoadBalancingUtilization(AutoscalingPolicyLoadBalancingUtilization loadBalancingUtilization)
Configuration parameters of autoscaling based on load balancer.
|
AutoscalingPolicy |
setMaxNumReplicas(Integer maxNumReplicas)
The maximum number of instances that the autoscaler can scale up to.
|
AutoscalingPolicy |
setMinNumReplicas(Integer minNumReplicas)
The minimum number of replicas that the autoscaler can scale down to.
|
AutoscalingPolicy |
setMode(String mode)
Defines operating mode for this policy.
|
AutoscalingPolicy |
setScaleDownControl(AutoscalingPolicyScaleDownControl scaleDownControl) |
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Integer getCoolDownPeriodSec()
null
for nonepublic AutoscalingPolicy setCoolDownPeriodSec(Integer coolDownPeriodSec)
coolDownPeriodSec
- coolDownPeriodSec or null
for nonepublic AutoscalingPolicyCpuUtilization getCpuUtilization()
null
for nonepublic AutoscalingPolicy setCpuUtilization(AutoscalingPolicyCpuUtilization cpuUtilization)
cpuUtilization
- cpuUtilization or null
for nonepublic List<AutoscalingPolicyCustomMetricUtilization> getCustomMetricUtilizations()
null
for nonepublic AutoscalingPolicy setCustomMetricUtilizations(List<AutoscalingPolicyCustomMetricUtilization> customMetricUtilizations)
customMetricUtilizations
- customMetricUtilizations or null
for nonepublic AutoscalingPolicyLoadBalancingUtilization getLoadBalancingUtilization()
null
for nonepublic AutoscalingPolicy setLoadBalancingUtilization(AutoscalingPolicyLoadBalancingUtilization loadBalancingUtilization)
loadBalancingUtilization
- loadBalancingUtilization or null
for nonepublic Integer getMaxNumReplicas()
null
for nonepublic AutoscalingPolicy setMaxNumReplicas(Integer maxNumReplicas)
maxNumReplicas
- maxNumReplicas or null
for nonepublic Integer getMinNumReplicas()
null
for nonepublic AutoscalingPolicy setMinNumReplicas(Integer minNumReplicas)
minNumReplicas
- minNumReplicas or null
for nonepublic String getMode()
null
for nonepublic AutoscalingPolicy setMode(String mode)
mode
- mode or null
for nonepublic AutoscalingPolicyScaleDownControl getScaleDownControl()
null
for nonepublic AutoscalingPolicy setScaleDownControl(AutoscalingPolicyScaleDownControl scaleDownControl)
scaleDownControl
- scaleDownControl or null
for nonepublic AutoscalingPolicy set(String fieldName, Object value)
set
in class GenericJson
public AutoscalingPolicy clone()
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.