Class CloudRunV2ServiceTemplateContainersResources.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_v2_service.CloudRunV2ServiceTemplateContainersResources.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunV2ServiceTemplateContainersResources>
- Enclosing interface:
- CloudRunV2ServiceTemplateContainersResources
@Stability(Stable) public static final class CloudRunV2ServiceTemplateContainersResources.Builder extends Object implements software.amazon.jsii.Builder<CloudRunV2ServiceTemplateContainersResources>
A builder forCloudRunV2ServiceTemplateContainersResources
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
cpuIdle
@Stability(Stable) public CloudRunV2ServiceTemplateContainersResources.Builder cpuIdle(Boolean cpuIdle)
Sets the value ofCloudRunV2ServiceTemplateContainersResources.getCpuIdle()- Parameters:
cpuIdle- Determines whether CPU is only allocated during requests. True by default if the parent 'resources' field is not set. However, if 'resources' is set, this field must be explicitly set to true to preserve the default behavior. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#cpu_idle CloudRunV2Service#cpu_idle}- Returns:
this
-
cpuIdle
@Stability(Stable) public CloudRunV2ServiceTemplateContainersResources.Builder cpuIdle(com.hashicorp.cdktf.IResolvable cpuIdle)
Sets the value ofCloudRunV2ServiceTemplateContainersResources.getCpuIdle()- Parameters:
cpuIdle- Determines whether CPU is only allocated during requests. True by default if the parent 'resources' field is not set. However, if 'resources' is set, this field must be explicitly set to true to preserve the default behavior. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#cpu_idle CloudRunV2Service#cpu_idle}- Returns:
this
-
limits
@Stability(Stable) public CloudRunV2ServiceTemplateContainersResources.Builder limits(Map<String,String> limits)
Sets the value ofCloudRunV2ServiceTemplateContainersResources.getLimits()- Parameters:
limits- Only memory and CPU are supported. Use key 'cpu' for CPU limit and 'memory' for memory limit. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#limits CloudRunV2Service#limits}- Returns:
this
-
startupCpuBoost
@Stability(Stable) public CloudRunV2ServiceTemplateContainersResources.Builder startupCpuBoost(Boolean startupCpuBoost)
Sets the value ofCloudRunV2ServiceTemplateContainersResources.getStartupCpuBoost()- Parameters:
startupCpuBoost- Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#startup_cpu_boost CloudRunV2Service#startup_cpu_boost}- Returns:
this
-
startupCpuBoost
@Stability(Stable) public CloudRunV2ServiceTemplateContainersResources.Builder startupCpuBoost(com.hashicorp.cdktf.IResolvable startupCpuBoost)
Sets the value ofCloudRunV2ServiceTemplateContainersResources.getStartupCpuBoost()- Parameters:
startupCpuBoost- Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#startup_cpu_boost CloudRunV2Service#startup_cpu_boost}- Returns:
this
-
build
@Stability(Stable) public CloudRunV2ServiceTemplateContainersResources build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunV2ServiceTemplateContainersResources>- Returns:
- a new instance of
CloudRunV2ServiceTemplateContainersResources - Throws:
NullPointerException- if any required attribute was not provided
-
-