Class Cloudfunctions2FunctionBuildConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudfunctions2_function.Cloudfunctions2FunctionBuildConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<Cloudfunctions2FunctionBuildConfig>
- Enclosing interface:
- Cloudfunctions2FunctionBuildConfig
@Stability(Stable) public static final class Cloudfunctions2FunctionBuildConfig.Builder extends Object implements software.amazon.jsii.Builder<Cloudfunctions2FunctionBuildConfig>
A builder forCloudfunctions2FunctionBuildConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
automaticUpdatePolicy
@Stability(Stable) public Cloudfunctions2FunctionBuildConfig.Builder automaticUpdatePolicy(Cloudfunctions2FunctionBuildConfigAutomaticUpdatePolicy automaticUpdatePolicy)
Sets the value ofCloudfunctions2FunctionBuildConfig.getAutomaticUpdatePolicy()- Parameters:
automaticUpdatePolicy- automatic_update_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#automatic_update_policy Cloudfunctions2Function#automatic_update_policy}- Returns:
this
-
dockerRepository
@Stability(Stable) public Cloudfunctions2FunctionBuildConfig.Builder dockerRepository(String dockerRepository)
Sets the value ofCloudfunctions2FunctionBuildConfig.getDockerRepository()- Parameters:
dockerRepository- User managed repository created in Artifact Registry optionally with a customer managed encryption key. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#docker_repository Cloudfunctions2Function#docker_repository}- Returns:
this
-
entryPoint
@Stability(Stable) public Cloudfunctions2FunctionBuildConfig.Builder entryPoint(String entryPoint)
Sets the value ofCloudfunctions2FunctionBuildConfig.getEntryPoint()- Parameters:
entryPoint- The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#entry_point Cloudfunctions2Function#entry_point}- Returns:
this
-
environmentVariables
@Stability(Stable) public Cloudfunctions2FunctionBuildConfig.Builder environmentVariables(Map<String,String> environmentVariables)
Sets the value ofCloudfunctions2FunctionBuildConfig.getEnvironmentVariables()- Parameters:
environmentVariables- User-provided build-time environment variables for the function. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#environment_variables Cloudfunctions2Function#environment_variables}- Returns:
this
-
onDeployUpdatePolicy
@Stability(Stable) public Cloudfunctions2FunctionBuildConfig.Builder onDeployUpdatePolicy(Cloudfunctions2FunctionBuildConfigOnDeployUpdatePolicy onDeployUpdatePolicy)
Sets the value ofCloudfunctions2FunctionBuildConfig.getOnDeployUpdatePolicy()- Parameters:
onDeployUpdatePolicy- on_deploy_update_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#on_deploy_update_policy Cloudfunctions2Function#on_deploy_update_policy}- Returns:
this
-
runtime
@Stability(Stable) public Cloudfunctions2FunctionBuildConfig.Builder runtime(String runtime)
Sets the value ofCloudfunctions2FunctionBuildConfig.getRuntime()- Parameters:
runtime- The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#runtime Cloudfunctions2Function#runtime}- Returns:
this
-
serviceAccount
@Stability(Stable) public Cloudfunctions2FunctionBuildConfig.Builder serviceAccount(String serviceAccount)
Sets the value ofCloudfunctions2FunctionBuildConfig.getServiceAccount()- Parameters:
serviceAccount- The fully-qualified name of the service account to be used for building the container. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#service_account Cloudfunctions2Function#service_account}- Returns:
this
-
source
@Stability(Stable) public Cloudfunctions2FunctionBuildConfig.Builder source(Cloudfunctions2FunctionBuildConfigSource source)
Sets the value ofCloudfunctions2FunctionBuildConfig.getSource()- Parameters:
source- source block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#source Cloudfunctions2Function#source}- Returns:
this
-
workerPool
@Stability(Stable) public Cloudfunctions2FunctionBuildConfig.Builder workerPool(String workerPool)
Sets the value ofCloudfunctions2FunctionBuildConfig.getWorkerPool()- Parameters:
workerPool- Name of the Cloud Build Custom Worker Pool that should be used to build the function. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#worker_pool Cloudfunctions2Function#worker_pool}- Returns:
this
-
build
@Stability(Stable) public Cloudfunctions2FunctionBuildConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Cloudfunctions2FunctionBuildConfig>- Returns:
- a new instance of
Cloudfunctions2FunctionBuildConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-