Class CloudRunV2ServiceTemplateContainers.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_v2_service.CloudRunV2ServiceTemplateContainers.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunV2ServiceTemplateContainers>
- Enclosing interface:
- CloudRunV2ServiceTemplateContainers
@Stability(Stable) public static final class CloudRunV2ServiceTemplateContainers.Builder extends Object implements software.amazon.jsii.Builder<CloudRunV2ServiceTemplateContainers>
A builder forCloudRunV2ServiceTemplateContainers
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
image
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder image(String image)
Sets the value ofCloudRunV2ServiceTemplateContainers.getImage()- Parameters:
image- URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#image CloudRunV2Service#image}- Returns:
this
-
args
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder args(List<String> args)
Sets the value ofCloudRunV2ServiceTemplateContainers.getArgs()- Parameters:
args- Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#args CloudRunV2Service#args}- Returns:
this
-
command
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder command(List<String> command)
Sets the value ofCloudRunV2ServiceTemplateContainers.getCommand()- Parameters:
command- Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#command CloudRunV2Service#command}- Returns:
this
-
dependsOn
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder dependsOn(List<String> dependsOn)
Sets the value ofCloudRunV2ServiceTemplateContainers.getDependsOn()- Parameters:
dependsOn- Containers which should be started before this container. If specified the container will wait to start until all containers with the listed names are healthy. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#depends_on CloudRunV2Service#depends_on}- Returns:
this
-
env
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder env(com.hashicorp.cdktf.IResolvable env)
Sets the value ofCloudRunV2ServiceTemplateContainers.getEnv()- Parameters:
env- env block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#env CloudRunV2Service#env}- Returns:
this
-
env
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder env(List<? extends CloudRunV2ServiceTemplateContainersEnv> env)
Sets the value ofCloudRunV2ServiceTemplateContainers.getEnv()- Parameters:
env- env block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#env CloudRunV2Service#env}- Returns:
this
-
livenessProbe
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder livenessProbe(CloudRunV2ServiceTemplateContainersLivenessProbe livenessProbe)
Sets the value ofCloudRunV2ServiceTemplateContainers.getLivenessProbe()- Parameters:
livenessProbe- liveness_probe block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#liveness_probe CloudRunV2Service#liveness_probe}- Returns:
this
-
name
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder name(String name)
Sets the value ofCloudRunV2ServiceTemplateContainers.getName()- Parameters:
name- Name of the container specified as a DNS_LABEL. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#name CloudRunV2Service#name}- Returns:
this
-
ports
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder ports(CloudRunV2ServiceTemplateContainersPorts ports)
Sets the value ofCloudRunV2ServiceTemplateContainers.getPorts()- Parameters:
ports- ports block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#ports CloudRunV2Service#ports}- Returns:
this
-
resources
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder resources(CloudRunV2ServiceTemplateContainersResources resources)
Sets the value ofCloudRunV2ServiceTemplateContainers.getResources()- Parameters:
resources- resources block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#resources CloudRunV2Service#resources}- Returns:
this
-
startupProbe
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder startupProbe(CloudRunV2ServiceTemplateContainersStartupProbe startupProbe)
Sets the value ofCloudRunV2ServiceTemplateContainers.getStartupProbe()- Parameters:
startupProbe- startup_probe block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#startup_probe CloudRunV2Service#startup_probe}- Returns:
this
-
volumeMounts
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder volumeMounts(com.hashicorp.cdktf.IResolvable volumeMounts)
Sets the value ofCloudRunV2ServiceTemplateContainers.getVolumeMounts()- Parameters:
volumeMounts- volume_mounts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#volume_mounts CloudRunV2Service#volume_mounts}- Returns:
this
-
volumeMounts
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder volumeMounts(List<? extends CloudRunV2ServiceTemplateContainersVolumeMounts> volumeMounts)
Sets the value ofCloudRunV2ServiceTemplateContainers.getVolumeMounts()- Parameters:
volumeMounts- volume_mounts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#volume_mounts CloudRunV2Service#volume_mounts}- Returns:
this
-
workingDir
@Stability(Stable) public CloudRunV2ServiceTemplateContainers.Builder workingDir(String workingDir)
Sets the value ofCloudRunV2ServiceTemplateContainers.getWorkingDir()- Parameters:
workingDir- Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#working_dir CloudRunV2Service#working_dir}- Returns:
this
-
build
@Stability(Stable) public CloudRunV2ServiceTemplateContainers build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunV2ServiceTemplateContainers>- Returns:
- a new instance of
CloudRunV2ServiceTemplateContainers - Throws:
NullPointerException- if any required attribute was not provided
-
-