Package com.pulumi.gcp.compute
Class RegionAutoscalerArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.compute.RegionAutoscalerArgs.Builder
-
- Enclosing class:
- RegionAutoscalerArgs
public static final class RegionAutoscalerArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(RegionAutoscalerArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(RegionAutoscalerArgs defaults)
-
-
Method Detail
-
autoscalingPolicy
public RegionAutoscalerArgs.Builder autoscalingPolicy(com.pulumi.core.Output<RegionAutoscalerAutoscalingPolicyArgs> autoscalingPolicy)
- Parameters:
autoscalingPolicy
- The configuration parameters for the autoscaling algorithm. You can define one or more of the policies for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%. Structure is documented below.- Returns:
- builder
-
autoscalingPolicy
public RegionAutoscalerArgs.Builder autoscalingPolicy(RegionAutoscalerAutoscalingPolicyArgs autoscalingPolicy)
- Parameters:
autoscalingPolicy
- The configuration parameters for the autoscaling algorithm. You can define one or more of the policies for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%. Structure is documented below.- Returns:
- builder
-
description
public RegionAutoscalerArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- An optional description of this resource.- Returns:
- builder
-
description
public RegionAutoscalerArgs.Builder description(java.lang.String description)
- Parameters:
description
- An optional description of this resource.- Returns:
- builder
-
name
public RegionAutoscalerArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- Name of the resource. The name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Returns:
- builder
-
name
public RegionAutoscalerArgs.Builder name(java.lang.String name)
- Parameters:
name
- Name of the resource. The name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Returns:
- builder
-
project
public RegionAutoscalerArgs.Builder project(@Nullable com.pulumi.core.Output<java.lang.String> project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
project
public RegionAutoscalerArgs.Builder project(java.lang.String project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
region
public RegionAutoscalerArgs.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region
- URL of the region where the instance group resides.- Returns:
- builder
-
region
public RegionAutoscalerArgs.Builder region(java.lang.String region)
- Parameters:
region
- URL of the region where the instance group resides.- Returns:
- builder
-
target
public RegionAutoscalerArgs.Builder target(com.pulumi.core.Output<java.lang.String> target)
- Parameters:
target
- URL of the managed instance group that this autoscaler will scale.- Returns:
- builder
-
target
public RegionAutoscalerArgs.Builder target(java.lang.String target)
- Parameters:
target
- URL of the managed instance group that this autoscaler will scale.- Returns:
- builder
-
build
public RegionAutoscalerArgs build()
-
-