Class CloudfunctionsFunctionSecretEnvironmentVariables.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudfunctions_function.CloudfunctionsFunctionSecretEnvironmentVariables.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudfunctionsFunctionSecretEnvironmentVariables>
- Enclosing interface:
- CloudfunctionsFunctionSecretEnvironmentVariables
@Stability(Stable) public static final class CloudfunctionsFunctionSecretEnvironmentVariables.Builder extends Object implements software.amazon.jsii.Builder<CloudfunctionsFunctionSecretEnvironmentVariables>
A builder forCloudfunctionsFunctionSecretEnvironmentVariables
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudfunctionsFunctionSecretEnvironmentVariablesbuild()Builds the configured instance.CloudfunctionsFunctionSecretEnvironmentVariables.Builderkey(String key)Sets the value ofCloudfunctionsFunctionSecretEnvironmentVariables.getKey()CloudfunctionsFunctionSecretEnvironmentVariables.BuilderprojectId(String projectId)Sets the value ofCloudfunctionsFunctionSecretEnvironmentVariables.getProjectId()CloudfunctionsFunctionSecretEnvironmentVariables.Buildersecret(String secret)Sets the value ofCloudfunctionsFunctionSecretEnvironmentVariables.getSecret()CloudfunctionsFunctionSecretEnvironmentVariables.Builderversion(String version)Sets the value ofCloudfunctionsFunctionSecretEnvironmentVariables.getVersion()
-
-
-
Method Detail
-
key
@Stability(Stable) public CloudfunctionsFunctionSecretEnvironmentVariables.Builder key(String key)
Sets the value ofCloudfunctionsFunctionSecretEnvironmentVariables.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/cloudfunctions_function#key CloudfunctionsFunction#key}- Returns:
this
-
secret
@Stability(Stable) public CloudfunctionsFunctionSecretEnvironmentVariables.Builder secret(String secret)
Sets the value ofCloudfunctionsFunctionSecretEnvironmentVariables.getSecret()- Parameters:
secret- ID 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/cloudfunctions_function#secret CloudfunctionsFunction#secret}- Returns:
this
-
version
@Stability(Stable) public CloudfunctionsFunctionSecretEnvironmentVariables.Builder version(String version)
Sets the value ofCloudfunctionsFunctionSecretEnvironmentVariables.getVersion()- 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 clones start. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions_function#version CloudfunctionsFunction#version}- Returns:
this
-
projectId
@Stability(Stable) public CloudfunctionsFunctionSecretEnvironmentVariables.Builder projectId(String projectId)
Sets the value ofCloudfunctionsFunctionSecretEnvironmentVariables.getProjectId()- Parameters:
projectId- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. 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/cloudfunctions_function#project_id CloudfunctionsFunction#project_id}- Returns:
this
-
build
@Stability(Stable) public CloudfunctionsFunctionSecretEnvironmentVariables build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudfunctionsFunctionSecretEnvironmentVariables>- Returns:
- a new instance of
CloudfunctionsFunctionSecretEnvironmentVariables - Throws:
NullPointerException- if any required attribute was not provided
-
-