Class CloudRunServiceMetadata.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_service.CloudRunServiceMetadata.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunServiceMetadata>
- Enclosing interface:
- CloudRunServiceMetadata
@Stability(Stable) public static final class CloudRunServiceMetadata.Builder extends Object implements software.amazon.jsii.Builder<CloudRunServiceMetadata>
A builder forCloudRunServiceMetadata
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudRunServiceMetadata.Builderannotations(Map<String,String> annotations)Sets the value ofCloudRunServiceMetadata.getAnnotations()CloudRunServiceMetadatabuild()Builds the configured instance.CloudRunServiceMetadata.Builderlabels(Map<String,String> labels)Sets the value ofCloudRunServiceMetadata.getLabels()CloudRunServiceMetadata.Buildernamespace(String namespace)Sets the value ofCloudRunServiceMetadata.getNamespace()
-
-
-
Method Detail
-
annotations
@Stability(Stable) public CloudRunServiceMetadata.Builder annotations(Map<String,String> annotations)
Sets the value ofCloudRunServiceMetadata.getAnnotations()- Parameters:
annotations- Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations **Note**: The Cloud Run API may add additional annotations that were not provided in your config. If terraform plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted. Use the following annotation keys to configure features on a Service: * 'run.googleapis.com/binary-authorization-breakglass' sets the [Binary Authorization breakglass](https://cloud.google.com/sdk/gcloud/reference/run/deploy#--breakglass). * 'run.googleapis.com/binary-authorization' sets the [Binary Authorization](https://cloud.google.com/sdk/gcloud/reference/run/deploy#--binary-authorization). * 'run.googleapis.com/client-name' sets the client name calling the Cloud Run API. * 'run.googleapis.com/custom-audiences' sets the [custom audiences](https://cloud.google.com/sdk/gcloud/reference/alpha/run/deploy#--add-custom-audiences) that can be used in the audience field of ID token for authenticated requests. * 'run.googleapis.com/description' sets a user defined description for the Service. * 'run.googleapis.com/ingress' sets the [ingress settings](https://cloud.google.com/sdk/gcloud/reference/run/deploy#--ingress) for the Service. For example, '"run.googleapis.com/ingress" = "all"'. * 'run.googleapis.com/launch-stage' sets the [launch stage](https://cloud.google.com/run/docs/troubleshooting#launch-stage-validation) when a preview feature is used. For example, '"run.googleapis.com/launch-stage": "BETA"' **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_service#annotations CloudRunService#annotations}- Returns:
this
-
labels
@Stability(Stable) public CloudRunServiceMetadata.Builder labels(Map<String,String> labels)
Sets the value ofCloudRunServiceMetadata.getLabels()- Parameters:
labels- Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. **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_service#labels CloudRunService#labels}- Returns:
this
-
namespace
@Stability(Stable) public CloudRunServiceMetadata.Builder namespace(String namespace)
Sets the value ofCloudRunServiceMetadata.getNamespace()- Parameters:
namespace- In Cloud Run the namespace must be equal to either the project ID or project number. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#namespace CloudRunService#namespace}- Returns:
this
-
build
@Stability(Stable) public CloudRunServiceMetadata build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunServiceMetadata>- Returns:
- a new instance of
CloudRunServiceMetadata - Throws:
NullPointerException- if any required attribute was not provided
-
-