Class CloudRunV2JobTemplateTemplateContainers.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_v2_job.CloudRunV2JobTemplateTemplateContainers.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunV2JobTemplateTemplateContainers>
- Enclosing interface:
- CloudRunV2JobTemplateTemplateContainers
@Stability(Stable) public static final class CloudRunV2JobTemplateTemplateContainers.Builder extends Object implements software.amazon.jsii.Builder<CloudRunV2JobTemplateTemplateContainers>
A builder forCloudRunV2JobTemplateTemplateContainers
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
image
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers.Builder image(String image)
Sets the value ofCloudRunV2JobTemplateTemplateContainers.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_job#image CloudRunV2Job#image}- Returns:
this
-
args
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers.Builder args(List<String> args)
Sets the value ofCloudRunV2JobTemplateTemplateContainers.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_job#args CloudRunV2Job#args}- Returns:
this
-
command
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers.Builder command(List<String> command)
Sets the value ofCloudRunV2JobTemplateTemplateContainers.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_job#command CloudRunV2Job#command}- Returns:
this
-
env
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers.Builder env(com.hashicorp.cdktf.IResolvable env)
Sets the value ofCloudRunV2JobTemplateTemplateContainers.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_job#env CloudRunV2Job#env}- Returns:
this
-
env
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers.Builder env(List<? extends CloudRunV2JobTemplateTemplateContainersEnv> env)
Sets the value ofCloudRunV2JobTemplateTemplateContainers.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_job#env CloudRunV2Job#env}- Returns:
this
-
name
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers.Builder name(String name)
Sets the value ofCloudRunV2JobTemplateTemplateContainers.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_job#name CloudRunV2Job#name}- Returns:
this
-
ports
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers.Builder ports(com.hashicorp.cdktf.IResolvable ports)
Sets the value ofCloudRunV2JobTemplateTemplateContainers.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_job#ports CloudRunV2Job#ports}- Returns:
this
-
ports
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers.Builder ports(List<? extends CloudRunV2JobTemplateTemplateContainersPorts> ports)
Sets the value ofCloudRunV2JobTemplateTemplateContainers.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_job#ports CloudRunV2Job#ports}- Returns:
this
-
resources
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers.Builder resources(CloudRunV2JobTemplateTemplateContainersResources resources)
Sets the value ofCloudRunV2JobTemplateTemplateContainers.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_job#resources CloudRunV2Job#resources}- Returns:
this
-
volumeMounts
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers.Builder volumeMounts(com.hashicorp.cdktf.IResolvable volumeMounts)
Sets the value ofCloudRunV2JobTemplateTemplateContainers.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_job#volume_mounts CloudRunV2Job#volume_mounts}- Returns:
this
-
volumeMounts
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers.Builder volumeMounts(List<? extends CloudRunV2JobTemplateTemplateContainersVolumeMounts> volumeMounts)
Sets the value ofCloudRunV2JobTemplateTemplateContainers.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_job#volume_mounts CloudRunV2Job#volume_mounts}- Returns:
this
-
workingDir
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers.Builder workingDir(String workingDir)
Sets the value ofCloudRunV2JobTemplateTemplateContainers.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_job#working_dir CloudRunV2Job#working_dir}- Returns:
this
-
build
@Stability(Stable) public CloudRunV2JobTemplateTemplateContainers build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunV2JobTemplateTemplateContainers>- Returns:
- a new instance of
CloudRunV2JobTemplateTemplateContainers - Throws:
NullPointerException- if any required attribute was not provided
-
-