Class CloudRunV2ServiceTemplateScaling.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_v2_service.CloudRunV2ServiceTemplateScaling.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunV2ServiceTemplateScaling>
- Enclosing interface:
- CloudRunV2ServiceTemplateScaling
@Stability(Stable) public static final class CloudRunV2ServiceTemplateScaling.Builder extends Object implements software.amazon.jsii.Builder<CloudRunV2ServiceTemplateScaling>
A builder forCloudRunV2ServiceTemplateScaling
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudRunV2ServiceTemplateScalingbuild()Builds the configured instance.CloudRunV2ServiceTemplateScaling.BuildermaxInstanceCount(Number maxInstanceCount)Sets the value ofCloudRunV2ServiceTemplateScaling.getMaxInstanceCount()CloudRunV2ServiceTemplateScaling.BuilderminInstanceCount(Number minInstanceCount)Sets the value ofCloudRunV2ServiceTemplateScaling.getMinInstanceCount()
-
-
-
Method Detail
-
maxInstanceCount
@Stability(Stable) public CloudRunV2ServiceTemplateScaling.Builder maxInstanceCount(Number maxInstanceCount)
Sets the value ofCloudRunV2ServiceTemplateScaling.getMaxInstanceCount()- Parameters:
maxInstanceCount- Maximum number of serving instances that this resource should have. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#max_instance_count CloudRunV2Service#max_instance_count}- Returns:
this
-
minInstanceCount
@Stability(Stable) public CloudRunV2ServiceTemplateScaling.Builder minInstanceCount(Number minInstanceCount)
Sets the value ofCloudRunV2ServiceTemplateScaling.getMinInstanceCount()- Parameters:
minInstanceCount- Minimum number of serving instances that this resource should have. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#min_instance_count CloudRunV2Service#min_instance_count}- Returns:
this
-
build
@Stability(Stable) public CloudRunV2ServiceTemplateScaling build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunV2ServiceTemplateScaling>- Returns:
- a new instance of
CloudRunV2ServiceTemplateScaling - Throws:
NullPointerException- if any required attribute was not provided
-
-