Package com.pulumi.gcp.compute.inputs
Class AutoscalerAutoscalingPolicyArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.compute.inputs.AutoscalerAutoscalingPolicyArgs.Builder
-
- Enclosing class:
- AutoscalerAutoscalingPolicyArgs
public static final class AutoscalerAutoscalingPolicyArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(AutoscalerAutoscalingPolicyArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(AutoscalerAutoscalingPolicyArgs defaults)
-
-
Method Detail
-
cooldownPeriod
public AutoscalerAutoscalingPolicyArgs.Builder cooldownPeriod(@Nullable com.pulumi.core.Output<java.lang.Integer> cooldownPeriod)
- Parameters:
cooldownPeriod
- The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds. Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.- Returns:
- builder
-
cooldownPeriod
public AutoscalerAutoscalingPolicyArgs.Builder cooldownPeriod(java.lang.Integer cooldownPeriod)
- Parameters:
cooldownPeriod
- The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds. Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.- Returns:
- builder
-
cpuUtilization
public AutoscalerAutoscalingPolicyArgs.Builder cpuUtilization(@Nullable com.pulumi.core.Output<AutoscalerAutoscalingPolicyCpuUtilizationArgs> cpuUtilization)
- Parameters:
cpuUtilization
- Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group. Structure is documented below.- Returns:
- builder
-
cpuUtilization
public AutoscalerAutoscalingPolicyArgs.Builder cpuUtilization(AutoscalerAutoscalingPolicyCpuUtilizationArgs cpuUtilization)
- Parameters:
cpuUtilization
- Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group. Structure is documented below.- Returns:
- builder
-
loadBalancingUtilization
public AutoscalerAutoscalingPolicyArgs.Builder loadBalancingUtilization(@Nullable com.pulumi.core.Output<AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgs> loadBalancingUtilization)
- Parameters:
loadBalancingUtilization
- Configuration parameters of autoscaling based on a load balancer. Structure is documented below.- Returns:
- builder
-
loadBalancingUtilization
public AutoscalerAutoscalingPolicyArgs.Builder loadBalancingUtilization(AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgs loadBalancingUtilization)
- Parameters:
loadBalancingUtilization
- Configuration parameters of autoscaling based on a load balancer. Structure is documented below.- Returns:
- builder
-
maxReplicas
public AutoscalerAutoscalingPolicyArgs.Builder maxReplicas(com.pulumi.core.Output<java.lang.Integer> maxReplicas)
- Parameters:
maxReplicas
- The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.- Returns:
- builder
-
maxReplicas
public AutoscalerAutoscalingPolicyArgs.Builder maxReplicas(java.lang.Integer maxReplicas)
- Parameters:
maxReplicas
- The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.- Returns:
- builder
-
metrics
public AutoscalerAutoscalingPolicyArgs.Builder metrics(@Nullable com.pulumi.core.Output<java.util.List<AutoscalerAutoscalingPolicyMetricArgs>> metrics)
- Parameters:
metrics
- Configuration parameters of autoscaling based on a custom metric. Structure is documented below.- Returns:
- builder
-
metrics
public AutoscalerAutoscalingPolicyArgs.Builder metrics(java.util.List<AutoscalerAutoscalingPolicyMetricArgs> metrics)
- Parameters:
metrics
- Configuration parameters of autoscaling based on a custom metric. Structure is documented below.- Returns:
- builder
-
metrics
public AutoscalerAutoscalingPolicyArgs.Builder metrics(AutoscalerAutoscalingPolicyMetricArgs... metrics)
- Parameters:
metrics
- Configuration parameters of autoscaling based on a custom metric. Structure is documented below.- Returns:
- builder
-
minReplicas
public AutoscalerAutoscalingPolicyArgs.Builder minReplicas(com.pulumi.core.Output<java.lang.Integer> minReplicas)
- Parameters:
minReplicas
- The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.- Returns:
- builder
-
minReplicas
public AutoscalerAutoscalingPolicyArgs.Builder minReplicas(java.lang.Integer minReplicas)
- Parameters:
minReplicas
- The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.- Returns:
- builder
-
mode
public AutoscalerAutoscalingPolicyArgs.Builder mode(@Nullable com.pulumi.core.Output<java.lang.String> mode)
- Parameters:
mode
- Defines operating mode for this policy. Default value is `ON`. Possible values are: `OFF`, `ONLY_UP`, `ON`.- Returns:
- builder
-
mode
public AutoscalerAutoscalingPolicyArgs.Builder mode(java.lang.String mode)
- Parameters:
mode
- Defines operating mode for this policy. Default value is `ON`. Possible values are: `OFF`, `ONLY_UP`, `ON`.- Returns:
- builder
-
scaleDownControl
public AutoscalerAutoscalingPolicyArgs.Builder scaleDownControl(@Nullable com.pulumi.core.Output<AutoscalerAutoscalingPolicyScaleDownControlArgs> scaleDownControl)
- Parameters:
scaleDownControl
- Defines scale down controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.- Returns:
- builder
-
scaleDownControl
public AutoscalerAutoscalingPolicyArgs.Builder scaleDownControl(AutoscalerAutoscalingPolicyScaleDownControlArgs scaleDownControl)
- Parameters:
scaleDownControl
- Defines scale down controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.- Returns:
- builder
-
scaleInControl
public AutoscalerAutoscalingPolicyArgs.Builder scaleInControl(@Nullable com.pulumi.core.Output<AutoscalerAutoscalingPolicyScaleInControlArgs> scaleInControl)
- Parameters:
scaleInControl
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.- Returns:
- builder
-
scaleInControl
public AutoscalerAutoscalingPolicyArgs.Builder scaleInControl(AutoscalerAutoscalingPolicyScaleInControlArgs scaleInControl)
- Parameters:
scaleInControl
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.- Returns:
- builder
-
scalingSchedules
public AutoscalerAutoscalingPolicyArgs.Builder scalingSchedules(@Nullable com.pulumi.core.Output<java.util.List<AutoscalerAutoscalingPolicyScalingScheduleArgs>> scalingSchedules)
- Parameters:
scalingSchedules
- Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler and they can overlap. Structure is documented below.- Returns:
- builder
-
scalingSchedules
public AutoscalerAutoscalingPolicyArgs.Builder scalingSchedules(java.util.List<AutoscalerAutoscalingPolicyScalingScheduleArgs> scalingSchedules)
- Parameters:
scalingSchedules
- Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler and they can overlap. Structure is documented below.- Returns:
- builder
-
scalingSchedules
public AutoscalerAutoscalingPolicyArgs.Builder scalingSchedules(AutoscalerAutoscalingPolicyScalingScheduleArgs... scalingSchedules)
- Parameters:
scalingSchedules
- Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler and they can overlap. Structure is documented below.- Returns:
- builder
-
build
public AutoscalerAutoscalingPolicyArgs build()
-
-