Class Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudfunctions2_function.Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables>
- Enclosing interface:
- Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables
@Stability(Stable) public static final class Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.Builder extends Object implements software.amazon.jsii.Builder<Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariablesbuild()Builds the configured instance.Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.Builderkey(String key)Sets the value ofCloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.getKey()Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.BuilderprojectId(String projectId)Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.Buildersecret(String secret)Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.Builderversion(String version)
-
-
-
Method Detail
-
key
@Stability(Stable) public Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.Builder key(String key)
Sets the value ofCloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.getKey()- Parameters:
key- Name of the environment variable. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#key Cloudfunctions2Function#key}- Returns:
this
-
projectId
@Stability(Stable) public Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.Builder projectId(String projectId)
- Parameters:
projectId- Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. This parameter is required. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#project_id Cloudfunctions2Function#project_id}- Returns:
this
-
secret
@Stability(Stable) public Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.Builder secret(String secret)
- Parameters:
secret- Name of the secret in secret manager (not the full resource name). This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#secret Cloudfunctions2Function#secret}- Returns:
this
-
version
@Stability(Stable) public Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables.Builder version(String version)
- Parameters:
version- Version of the secret (version number or the string 'latest'). This parameter is required. It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#version Cloudfunctions2Function#version}- Returns:
this
-
build
@Stability(Stable) public Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables>- Returns:
- a new instance of
Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables - Throws:
NullPointerException- if any required attribute was not provided
-
-