Class CloudRunServiceTemplateSpec.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_service.CloudRunServiceTemplateSpec.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunServiceTemplateSpec>
- Enclosing interface:
- CloudRunServiceTemplateSpec
@Stability(Stable) public static final class CloudRunServiceTemplateSpec.Builder extends Object implements software.amazon.jsii.Builder<CloudRunServiceTemplateSpec>
A builder forCloudRunServiceTemplateSpec
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
containerConcurrency
@Stability(Stable) public CloudRunServiceTemplateSpec.Builder containerConcurrency(Number containerConcurrency)
Sets the value ofCloudRunServiceTemplateSpec.getContainerConcurrency()- Parameters:
containerConcurrency- ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. If not specified or 0, defaults to 80 when requested CPU >= 1 and defaults to 1 when requested CPU < 1. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#container_concurrency CloudRunService#container_concurrency}- Returns:
this
-
containers
@Stability(Stable) public CloudRunServiceTemplateSpec.Builder containers(com.hashicorp.cdktf.IResolvable containers)
Sets the value ofCloudRunServiceTemplateSpec.getContainers()- Parameters:
containers- containers block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#containers CloudRunService#containers}- Returns:
this
-
containers
@Stability(Stable) public CloudRunServiceTemplateSpec.Builder containers(List<? extends CloudRunServiceTemplateSpecContainers> containers)
Sets the value ofCloudRunServiceTemplateSpec.getContainers()- Parameters:
containers- containers block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#containers CloudRunService#containers}- Returns:
this
-
serviceAccountName
@Stability(Stable) public CloudRunServiceTemplateSpec.Builder serviceAccountName(String serviceAccountName)
Sets the value ofCloudRunServiceTemplateSpec.getServiceAccountName()- Parameters:
serviceAccountName- Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#service_account_name CloudRunService#service_account_name}- Returns:
this
-
timeoutSeconds
@Stability(Stable) public CloudRunServiceTemplateSpec.Builder timeoutSeconds(Number timeoutSeconds)
Sets the value ofCloudRunServiceTemplateSpec.getTimeoutSeconds()- Parameters:
timeoutSeconds- TimeoutSeconds holds the max duration the instance is allowed for responding to a request. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#timeout_seconds CloudRunService#timeout_seconds}- Returns:
this
-
volumes
@Stability(Stable) public CloudRunServiceTemplateSpec.Builder volumes(com.hashicorp.cdktf.IResolvable volumes)
Sets the value ofCloudRunServiceTemplateSpec.getVolumes()- Parameters:
volumes- volumes block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#volumes CloudRunService#volumes}- Returns:
this
-
volumes
@Stability(Stable) public CloudRunServiceTemplateSpec.Builder volumes(List<? extends CloudRunServiceTemplateSpecVolumes> volumes)
Sets the value ofCloudRunServiceTemplateSpec.getVolumes()- Parameters:
volumes- volumes block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#volumes CloudRunService#volumes}- Returns:
this
-
build
@Stability(Stable) public CloudRunServiceTemplateSpec build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunServiceTemplateSpec>- Returns:
- a new instance of
CloudRunServiceTemplateSpec - Throws:
NullPointerException- if any required attribute was not provided
-
-