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.FlagsAbstractMap.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.
|
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.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic 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 AutoscalingPolicy set(String fieldName, Object value)
set in class GenericJsonpublic AutoscalingPolicy clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.