Class CloudRunV2JobTemplate.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_v2_job.CloudRunV2JobTemplate.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunV2JobTemplate>
- Enclosing interface:
- CloudRunV2JobTemplate
@Stability(Stable) public static final class CloudRunV2JobTemplate.Builder extends Object implements software.amazon.jsii.Builder<CloudRunV2JobTemplate>
A builder forCloudRunV2JobTemplate
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudRunV2JobTemplate.Builderannotations(Map<String,String> annotations)Sets the value ofCloudRunV2JobTemplate.getAnnotations()CloudRunV2JobTemplatebuild()Builds the configured instance.CloudRunV2JobTemplate.Builderlabels(Map<String,String> labels)Sets the value ofCloudRunV2JobTemplate.getLabels()CloudRunV2JobTemplate.Builderparallelism(Number parallelism)Sets the value ofCloudRunV2JobTemplate.getParallelism()CloudRunV2JobTemplate.BuildertaskCount(Number taskCount)Sets the value ofCloudRunV2JobTemplate.getTaskCount()CloudRunV2JobTemplate.Buildertemplate(CloudRunV2JobTemplateTemplate template)Sets the value ofCloudRunV2JobTemplate.getTemplate()
-
-
-
Method Detail
-
template
@Stability(Stable) public CloudRunV2JobTemplate.Builder template(CloudRunV2JobTemplateTemplate template)
Sets the value ofCloudRunV2JobTemplate.getTemplate()- Parameters:
template- template block. 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#template CloudRunV2Job#template}- Returns:
this
-
annotations
@Stability(Stable) public CloudRunV2JobTemplate.Builder annotations(Map<String,String> annotations)
Sets the value ofCloudRunV2JobTemplate.getAnnotations()- Parameters:
annotations- Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_job#annotations CloudRunV2Job#annotations}- Returns:
this
-
labels
@Stability(Stable) public CloudRunV2JobTemplate.Builder labels(Map<String,String> labels)
Sets the value ofCloudRunV2JobTemplate.getLabels()- Parameters:
labels- Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_job#labels CloudRunV2Job#labels}- Returns:
this
-
parallelism
@Stability(Stable) public CloudRunV2JobTemplate.Builder parallelism(Number parallelism)
Sets the value ofCloudRunV2JobTemplate.getParallelism()- Parameters:
parallelism- Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_job#parallelism CloudRunV2Job#parallelism}- Returns:
this
-
taskCount
@Stability(Stable) public CloudRunV2JobTemplate.Builder taskCount(Number taskCount)
Sets the value ofCloudRunV2JobTemplate.getTaskCount()- Parameters:
taskCount- Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_job#task_count CloudRunV2Job#task_count}- Returns:
this
-
build
@Stability(Stable) public CloudRunV2JobTemplate build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunV2JobTemplate>- Returns:
- a new instance of
CloudRunV2JobTemplate - Throws:
NullPointerException- if any required attribute was not provided
-
-