Class CloudRunV2ServiceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_v2_service.CloudRunV2ServiceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunV2ServiceConfig>
- Enclosing interface:
- CloudRunV2ServiceConfig
@Stability(Stable) public static final class CloudRunV2ServiceConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudRunV2ServiceConfig>
A builder forCloudRunV2ServiceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
location
@Stability(Stable) public CloudRunV2ServiceConfig.Builder location(String location)
Sets the value ofCloudRunV2ServiceConfig.getLocation()- Parameters:
location- The location of the cloud run service. 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#location CloudRunV2Service#location}- Returns:
this
-
name
@Stability(Stable) public CloudRunV2ServiceConfig.Builder name(String name)
Sets the value ofCloudRunV2ServiceConfig.getName()- Parameters:
name- Name of the Service. 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#name CloudRunV2Service#name}- Returns:
this
-
template
@Stability(Stable) public CloudRunV2ServiceConfig.Builder template(CloudRunV2ServiceTemplate template)
Sets the value ofCloudRunV2ServiceConfig.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_service#template CloudRunV2Service#template}- Returns:
this
-
annotations
@Stability(Stable) public CloudRunV2ServiceConfig.Builder annotations(Map<String,String> annotations)
Sets the value ofCloudRunV2ServiceConfig.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 in new resources. All system annotations in v1 now have a corresponding field in v2 Service. 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_service#annotations CloudRunV2Service#annotations}- Returns:
this
-
binaryAuthorization
@Stability(Stable) public CloudRunV2ServiceConfig.Builder binaryAuthorization(CloudRunV2ServiceBinaryAuthorization binaryAuthorization)
Sets the value ofCloudRunV2ServiceConfig.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_service#binary_authorization CloudRunV2Service#binary_authorization}- Returns:
this
-
client
@Stability(Stable) public CloudRunV2ServiceConfig.Builder client(String client)
Sets the value ofCloudRunV2ServiceConfig.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_service#client CloudRunV2Service#client}- Returns:
this
-
clientVersion
@Stability(Stable) public CloudRunV2ServiceConfig.Builder clientVersion(String clientVersion)
Sets the value ofCloudRunV2ServiceConfig.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_service#client_version CloudRunV2Service#client_version}- Returns:
this
-
customAudiences
@Stability(Stable) public CloudRunV2ServiceConfig.Builder customAudiences(List<String> customAudiences)
Sets the value ofCloudRunV2ServiceConfig.getCustomAudiences()- Parameters:
customAudiences- One or more custom audiences that you want this service to support. Specify each custom audience as the full URL in a string. The custom audiences are encoded in the token and used to authenticate requests. For more information, see https://cloud.google.com/run/docs/configuring/custom-audiences. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#custom_audiences CloudRunV2Service#custom_audiences}- Returns:
this
-
description
@Stability(Stable) public CloudRunV2ServiceConfig.Builder description(String description)
Sets the value ofCloudRunV2ServiceConfig.getDescription()- Parameters:
description- User-provided description of the Service. This field currently has a 512-character limit. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#description CloudRunV2Service#description}- Returns:
this
-
id
@Stability(Stable) public CloudRunV2ServiceConfig.Builder id(String id)
Sets the value ofCloudRunV2ServiceConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#id CloudRunV2Service#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
-
ingress
@Stability(Stable) public CloudRunV2ServiceConfig.Builder ingress(String ingress)
Sets the value ofCloudRunV2ServiceConfig.getIngress()- Parameters:
ingress- Provides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. Possible values: ["INGRESS_TRAFFIC_ALL", "INGRESS_TRAFFIC_INTERNAL_ONLY", "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#ingress CloudRunV2Service#ingress}- Returns:
this
-
labels
@Stability(Stable) public CloudRunV2ServiceConfig.Builder labels(Map<String,String> labels)
Sets the value ofCloudRunV2ServiceConfig.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 Service. **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_service#labels CloudRunV2Service#labels}- Returns:
this
-
launchStage
@Stability(Stable) public CloudRunV2ServiceConfig.Builder launchStage(String launchStage)
Sets the value ofCloudRunV2ServiceConfig.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_service#launch_stage CloudRunV2Service#launch_stage}- Returns:
this
-
project
@Stability(Stable) public CloudRunV2ServiceConfig.Builder project(String project)
Sets the value ofCloudRunV2ServiceConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#project CloudRunV2Service#project}.- Returns:
this
-
timeouts
@Stability(Stable) public CloudRunV2ServiceConfig.Builder timeouts(CloudRunV2ServiceTimeouts timeouts)
Sets the value ofCloudRunV2ServiceConfig.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_service#timeouts CloudRunV2Service#timeouts}- Returns:
this
-
traffic
@Stability(Stable) public CloudRunV2ServiceConfig.Builder traffic(com.hashicorp.cdktf.IResolvable traffic)
Sets the value ofCloudRunV2ServiceConfig.getTraffic()- Parameters:
traffic- traffic block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#traffic CloudRunV2Service#traffic}- Returns:
this
-
traffic
@Stability(Stable) public CloudRunV2ServiceConfig.Builder traffic(List<? extends CloudRunV2ServiceTraffic> traffic)
Sets the value ofCloudRunV2ServiceConfig.getTraffic()- Parameters:
traffic- traffic block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#traffic CloudRunV2Service#traffic}- Returns:
this
-
connection
@Stability(Experimental) public CloudRunV2ServiceConfig.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 CloudRunV2ServiceConfig.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 CloudRunV2ServiceConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudRunV2ServiceConfig.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 CloudRunV2ServiceConfig.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 CloudRunV2ServiceConfig.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 CloudRunV2ServiceConfig.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 CloudRunV2ServiceConfig.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 CloudRunV2ServiceConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public CloudRunV2ServiceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunV2ServiceConfig>- Returns:
- a new instance of
CloudRunV2ServiceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-