Class CloudRunServiceTemplateSpecContainersResources.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_service.CloudRunServiceTemplateSpecContainersResources.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunServiceTemplateSpecContainersResources>
- Enclosing interface:
- CloudRunServiceTemplateSpecContainersResources
@Stability(Stable) public static final class CloudRunServiceTemplateSpecContainersResources.Builder extends Object implements software.amazon.jsii.Builder<CloudRunServiceTemplateSpecContainersResources>
A builder forCloudRunServiceTemplateSpecContainersResources
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudRunServiceTemplateSpecContainersResourcesbuild()Builds the configured instance.CloudRunServiceTemplateSpecContainersResources.Builderlimits(Map<String,String> limits)Sets the value ofCloudRunServiceTemplateSpecContainersResources.getLimits()CloudRunServiceTemplateSpecContainersResources.Builderrequests(Map<String,String> requests)Sets the value ofCloudRunServiceTemplateSpecContainersResources.getRequests()
-
-
-
Method Detail
-
limits
@Stability(Stable) public CloudRunServiceTemplateSpecContainersResources.Builder limits(Map<String,String> limits)
Sets the value ofCloudRunServiceTemplateSpecContainersResources.getLimits()- Parameters:
limits- Limits describes the maximum amount of compute resources allowed. 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_service#limits CloudRunService#limits}- Returns:
this
-
requests
@Stability(Stable) public CloudRunServiceTemplateSpecContainersResources.Builder requests(Map<String,String> requests)
Sets the value ofCloudRunServiceTemplateSpecContainersResources.getRequests()- Parameters:
requests- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. 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_service#requests CloudRunService#requests}- Returns:
this
-
build
@Stability(Stable) public CloudRunServiceTemplateSpecContainersResources build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunServiceTemplateSpecContainersResources>- Returns:
- a new instance of
CloudRunServiceTemplateSpecContainersResources - Throws:
NullPointerException- if any required attribute was not provided
-
-