Class CloudRunV2JobConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_v2_job.CloudRunV2JobConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunV2JobConfig>
- Enclosing interface:
- CloudRunV2JobConfig
@Stability(Stable) public static final class CloudRunV2JobConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudRunV2JobConfig>
A builder forCloudRunV2JobConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudRunV2JobConfig.Builderannotations(Map<String,String> annotations)Sets the value ofCloudRunV2JobConfig.getAnnotations()CloudRunV2JobConfig.BuilderbinaryAuthorization(CloudRunV2JobBinaryAuthorization binaryAuthorization)Sets the value ofCloudRunV2JobConfig.getBinaryAuthorization()CloudRunV2JobConfigbuild()Builds the configured instance.CloudRunV2JobConfig.Builderclient(String client)Sets the value ofCloudRunV2JobConfig.getClient()CloudRunV2JobConfig.BuilderclientVersion(String clientVersion)Sets the value ofCloudRunV2JobConfig.getClientVersion()CloudRunV2JobConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()CloudRunV2JobConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()CloudRunV2JobConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()CloudRunV2JobConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()CloudRunV2JobConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()CloudRunV2JobConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()CloudRunV2JobConfig.Builderid(String id)Sets the value ofCloudRunV2JobConfig.getId()CloudRunV2JobConfig.Builderlabels(Map<String,String> labels)Sets the value ofCloudRunV2JobConfig.getLabels()CloudRunV2JobConfig.BuilderlaunchStage(String launchStage)Sets the value ofCloudRunV2JobConfig.getLaunchStage()CloudRunV2JobConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()CloudRunV2JobConfig.Builderlocation(String location)Sets the value ofCloudRunV2JobConfig.getLocation()CloudRunV2JobConfig.Buildername(String name)Sets the value ofCloudRunV2JobConfig.getName()CloudRunV2JobConfig.Builderproject(String project)Sets the value ofCloudRunV2JobConfig.getProject()CloudRunV2JobConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()CloudRunV2JobConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()CloudRunV2JobConfig.Buildertemplate(CloudRunV2JobTemplate template)Sets the value ofCloudRunV2JobConfig.getTemplate()CloudRunV2JobConfig.Buildertimeouts(CloudRunV2JobTimeouts timeouts)Sets the value ofCloudRunV2JobConfig.getTimeouts()
-
-
-
Method Detail
-
location
@Stability(Stable) public CloudRunV2JobConfig.Builder location(String location)
Sets the value ofCloudRunV2JobConfig.getLocation()- Parameters:
location- The location of the cloud run job. 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#location CloudRunV2Job#location}- Returns:
this
-
name
@Stability(Stable) public CloudRunV2JobConfig.Builder name(String name)
Sets the value ofCloudRunV2JobConfig.getName()- Parameters:
name- Name of the Job. 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#name CloudRunV2Job#name}- Returns:
this
-
template
@Stability(Stable) public CloudRunV2JobConfig.Builder template(CloudRunV2JobTemplate template)
Sets the value ofCloudRunV2JobConfig.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 CloudRunV2JobConfig.Builder annotations(Map<String,String> annotations)
Sets the value ofCloudRunV2JobConfig.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 on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource. 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
-
binaryAuthorization
@Stability(Stable) public CloudRunV2JobConfig.Builder binaryAuthorization(CloudRunV2JobBinaryAuthorization binaryAuthorization)
Sets the value ofCloudRunV2JobConfig.getBinaryAuthorization()- Parameters:
binaryAuthorization- binary_authorization block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_job#binary_authorization CloudRunV2Job#binary_authorization}- Returns:
this
-
client
@Stability(Stable) public CloudRunV2JobConfig.Builder client(String client)
Sets the value ofCloudRunV2JobConfig.getClient()- Parameters:
client- Arbitrary identifier for the API client. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_job#client CloudRunV2Job#client}- Returns:
this
-
clientVersion
@Stability(Stable) public CloudRunV2JobConfig.Builder clientVersion(String clientVersion)
Sets the value ofCloudRunV2JobConfig.getClientVersion()- Parameters:
clientVersion- Arbitrary version identifier for the API client. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_job#client_version CloudRunV2Job#client_version}- Returns:
this
-
id
@Stability(Stable) public CloudRunV2JobConfig.Builder id(String id)
Sets the value ofCloudRunV2JobConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_job#id CloudRunV2Job#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
labels
@Stability(Stable) public CloudRunV2JobConfig.Builder labels(Map<String,String> labels)
Sets the value ofCloudRunV2JobConfig.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 Job. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. 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
-
launchStage
@Stability(Stable) public CloudRunV2JobConfig.Builder launchStage(String launchStage)
Sets the value ofCloudRunV2JobConfig.getLaunchStage()- Parameters:
launchStage- The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_job#launch_stage CloudRunV2Job#launch_stage}- Returns:
this
-
project
@Stability(Stable) public CloudRunV2JobConfig.Builder project(String project)
Sets the value ofCloudRunV2JobConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_job#project CloudRunV2Job#project}.- Returns:
this
-
timeouts
@Stability(Stable) public CloudRunV2JobConfig.Builder timeouts(CloudRunV2JobTimeouts timeouts)
Sets the value ofCloudRunV2JobConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_job#timeouts CloudRunV2Job#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public CloudRunV2JobConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public CloudRunV2JobConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudRunV2JobConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudRunV2JobConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public CloudRunV2JobConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public CloudRunV2JobConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public CloudRunV2JobConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public CloudRunV2JobConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public CloudRunV2JobConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public CloudRunV2JobConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunV2JobConfig>- Returns:
- a new instance of
CloudRunV2JobConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-