Class ComputeAutoscalerAutoscalingPolicyScalingSchedules.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_autoscaler.ComputeAutoscalerAutoscalingPolicyScalingSchedules.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeAutoscalerAutoscalingPolicyScalingSchedules>
- Enclosing interface:
- ComputeAutoscalerAutoscalingPolicyScalingSchedules
@Stability(Stable) public static final class ComputeAutoscalerAutoscalingPolicyScalingSchedules.Builder extends Object implements software.amazon.jsii.Builder<ComputeAutoscalerAutoscalingPolicyScalingSchedules>
A builder forComputeAutoscalerAutoscalingPolicyScalingSchedules
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
durationSec
@Stability(Stable) public ComputeAutoscalerAutoscalingPolicyScalingSchedules.Builder durationSec(Number durationSec)
Sets the value ofComputeAutoscalerAutoscalingPolicyScalingSchedules.getDurationSec()- Parameters:
durationSec- The duration of time intervals (in seconds) for which this scaling schedule will be running. This parameter is required. The minimum allowed value is 300. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#duration_sec ComputeAutoscaler#duration_sec}- Returns:
this
-
minRequiredReplicas
@Stability(Stable) public ComputeAutoscalerAutoscalingPolicyScalingSchedules.Builder minRequiredReplicas(Number minRequiredReplicas)
- Parameters:
minRequiredReplicas- Minimum number of VM instances that autoscaler will recommend in time intervals starting according to schedule. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#min_required_replicas ComputeAutoscaler#min_required_replicas}- Returns:
this
-
name
@Stability(Stable) public ComputeAutoscalerAutoscalingPolicyScalingSchedules.Builder name(String name)
Sets the value ofComputeAutoscalerAutoscalingPolicyScalingSchedules.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#name ComputeAutoscaler#name}. This parameter is required.- Returns:
this
-
schedule
@Stability(Stable) public ComputeAutoscalerAutoscalingPolicyScalingSchedules.Builder schedule(String schedule)
Sets the value ofComputeAutoscalerAutoscalingPolicyScalingSchedules.getSchedule()- Parameters:
schedule- The start timestamps of time intervals when this scaling schedule should provide a scaling signal. This parameter is required. This field uses the extended cron format (with an optional year field). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#schedule ComputeAutoscaler#schedule}- Returns:
this
-
description
@Stability(Stable) public ComputeAutoscalerAutoscalingPolicyScalingSchedules.Builder description(String description)
Sets the value ofComputeAutoscalerAutoscalingPolicyScalingSchedules.getDescription()- Parameters:
description- A description of a scaling schedule. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#description ComputeAutoscaler#description}- Returns:
this
-
disabled
@Stability(Stable) public ComputeAutoscalerAutoscalingPolicyScalingSchedules.Builder disabled(Boolean disabled)
Sets the value ofComputeAutoscalerAutoscalingPolicyScalingSchedules.getDisabled()- Parameters:
disabled- A boolean value that specifies if a scaling schedule can influence autoscaler recommendations. If set to true, then a scaling schedule has no effect. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#disabled ComputeAutoscaler#disabled}- Returns:
this
-
disabled
@Stability(Stable) public ComputeAutoscalerAutoscalingPolicyScalingSchedules.Builder disabled(com.hashicorp.cdktf.IResolvable disabled)
Sets the value ofComputeAutoscalerAutoscalingPolicyScalingSchedules.getDisabled()- Parameters:
disabled- A boolean value that specifies if a scaling schedule can influence autoscaler recommendations. If set to true, then a scaling schedule has no effect. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#disabled ComputeAutoscaler#disabled}- Returns:
this
-
timeZone
@Stability(Stable) public ComputeAutoscalerAutoscalingPolicyScalingSchedules.Builder timeZone(String timeZone)
Sets the value ofComputeAutoscalerAutoscalingPolicyScalingSchedules.getTimeZone()- Parameters:
timeZone- The time zone to be used when interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#time_zone ComputeAutoscaler#time_zone}- Returns:
this
-
build
@Stability(Stable) public ComputeAutoscalerAutoscalingPolicyScalingSchedules build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeAutoscalerAutoscalingPolicyScalingSchedules>- Returns:
- a new instance of
ComputeAutoscalerAutoscalingPolicyScalingSchedules - Throws:
NullPointerException- if any required attribute was not provided
-
-