public final class AutoscalingPolicy
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
AutoscalingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
AutoscalingPolicy |
clone() |
java.lang.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.
|
java.util.List<AutoscalingPolicyCustomMetricUtilization> |
getCustomMetricUtilizations()
Configuration parameters of autoscaling based on a custom metric.
|
AutoscalingPolicyLoadBalancingUtilization |
getLoadBalancingUtilization()
Configuration parameters of autoscaling based on load balancer.
|
java.lang.Integer |
getMaxNumReplicas()
The maximum number of instances that the autoscaler can scale up to.
|
java.lang.Integer |
getMinNumReplicas()
The minimum number of replicas that the autoscaler can scale down to.
|
java.lang.String |
getMode()
Defines operating mode for this policy.
|
AutoscalingPolicyQueueBasedScaling |
getQueueBasedScaling()
Configuration parameters of autoscaling based on queuing system.
|
AutoscalingPolicy |
set(java.lang.String fieldName,
java.lang.Object value) |
AutoscalingPolicy |
setCoolDownPeriodSec(java.lang.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(java.util.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(java.lang.Integer maxNumReplicas)
The maximum number of instances that the autoscaler can scale up to.
|
AutoscalingPolicy |
setMinNumReplicas(java.lang.Integer minNumReplicas)
The minimum number of replicas that the autoscaler can scale down to.
|
AutoscalingPolicy |
setMode(java.lang.String mode)
Defines operating mode for this policy.
|
AutoscalingPolicy |
setQueueBasedScaling(AutoscalingPolicyQueueBasedScaling queueBasedScaling)
Configuration parameters of autoscaling based on queuing system.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Integer getCoolDownPeriodSec()
null for nonepublic AutoscalingPolicy setCoolDownPeriodSec(java.lang.Integer coolDownPeriodSec)
coolDownPeriodSec - coolDownPeriodSec or null for nonepublic AutoscalingPolicyCpuUtilization getCpuUtilization()
null for nonepublic AutoscalingPolicy setCpuUtilization(AutoscalingPolicyCpuUtilization cpuUtilization)
cpuUtilization - cpuUtilization or null for nonepublic java.util.List<AutoscalingPolicyCustomMetricUtilization> getCustomMetricUtilizations()
null for nonepublic AutoscalingPolicy setCustomMetricUtilizations(java.util.List<AutoscalingPolicyCustomMetricUtilization> customMetricUtilizations)
customMetricUtilizations - customMetricUtilizations or null for nonepublic AutoscalingPolicyLoadBalancingUtilization getLoadBalancingUtilization()
null for nonepublic AutoscalingPolicy setLoadBalancingUtilization(AutoscalingPolicyLoadBalancingUtilization loadBalancingUtilization)
loadBalancingUtilization - loadBalancingUtilization or null for nonepublic java.lang.Integer getMaxNumReplicas()
null for nonepublic AutoscalingPolicy setMaxNumReplicas(java.lang.Integer maxNumReplicas)
maxNumReplicas - maxNumReplicas or null for nonepublic java.lang.Integer getMinNumReplicas()
null for nonepublic AutoscalingPolicy setMinNumReplicas(java.lang.Integer minNumReplicas)
minNumReplicas - minNumReplicas or null for nonepublic java.lang.String getMode()
null for nonepublic AutoscalingPolicy setMode(java.lang.String mode)
mode - mode or null for nonepublic AutoscalingPolicyQueueBasedScaling getQueueBasedScaling()
null for nonepublic AutoscalingPolicy setQueueBasedScaling(AutoscalingPolicyQueueBasedScaling queueBasedScaling)
queueBasedScaling - queueBasedScaling or null for nonepublic AutoscalingPolicy set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic AutoscalingPolicy clone()
clone in class com.google.api.client.json.GenericJson