Class Cloudfunctions2FunctionBuildConfigSourceRepoSource.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudfunctions2_function.Cloudfunctions2FunctionBuildConfigSourceRepoSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<Cloudfunctions2FunctionBuildConfigSourceRepoSource>
- Enclosing interface:
- Cloudfunctions2FunctionBuildConfigSourceRepoSource
@Stability(Stable) public static final class Cloudfunctions2FunctionBuildConfigSourceRepoSource.Builder extends Object implements software.amazon.jsii.Builder<Cloudfunctions2FunctionBuildConfigSourceRepoSource>
A builder forCloudfunctions2FunctionBuildConfigSourceRepoSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
branchName
@Stability(Stable) public Cloudfunctions2FunctionBuildConfigSourceRepoSource.Builder branchName(String branchName)
Sets the value ofCloudfunctions2FunctionBuildConfigSourceRepoSource.getBranchName()- Parameters:
branchName- Regex matching branches to build. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#branch_name Cloudfunctions2Function#branch_name}- Returns:
this
-
commitSha
@Stability(Stable) public Cloudfunctions2FunctionBuildConfigSourceRepoSource.Builder commitSha(String commitSha)
Sets the value ofCloudfunctions2FunctionBuildConfigSourceRepoSource.getCommitSha()- Parameters:
commitSha- Regex matching tags to build. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#commit_sha Cloudfunctions2Function#commit_sha}- Returns:
this
-
dir
@Stability(Stable) public Cloudfunctions2FunctionBuildConfigSourceRepoSource.Builder dir(String dir)
Sets the value ofCloudfunctions2FunctionBuildConfigSourceRepoSource.getDir()- Parameters:
dir- Directory, relative to the source root, in which to run the build. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#dir Cloudfunctions2Function#dir}- Returns:
this
-
invertRegex
@Stability(Stable) public Cloudfunctions2FunctionBuildConfigSourceRepoSource.Builder invertRegex(Boolean invertRegex)
Sets the value ofCloudfunctions2FunctionBuildConfigSourceRepoSource.getInvertRegex()- Parameters:
invertRegex- Only trigger a build if the revision regex does NOT match the revision regex. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#invert_regex Cloudfunctions2Function#invert_regex}- Returns:
this
-
invertRegex
@Stability(Stable) public Cloudfunctions2FunctionBuildConfigSourceRepoSource.Builder invertRegex(com.hashicorp.cdktf.IResolvable invertRegex)
Sets the value ofCloudfunctions2FunctionBuildConfigSourceRepoSource.getInvertRegex()- Parameters:
invertRegex- Only trigger a build if the revision regex does NOT match the revision regex. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#invert_regex Cloudfunctions2Function#invert_regex}- Returns:
this
-
projectId
@Stability(Stable) public Cloudfunctions2FunctionBuildConfigSourceRepoSource.Builder projectId(String projectId)
Sets the value ofCloudfunctions2FunctionBuildConfigSourceRepoSource.getProjectId()- Parameters:
projectId- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed. 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
-
repoName
@Stability(Stable) public Cloudfunctions2FunctionBuildConfigSourceRepoSource.Builder repoName(String repoName)
Sets the value ofCloudfunctions2FunctionBuildConfigSourceRepoSource.getRepoName()- Parameters:
repoName- Name of the Cloud Source Repository. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#repo_name Cloudfunctions2Function#repo_name}- Returns:
this
-
tagName
@Stability(Stable) public Cloudfunctions2FunctionBuildConfigSourceRepoSource.Builder tagName(String tagName)
Sets the value ofCloudfunctions2FunctionBuildConfigSourceRepoSource.getTagName()- Parameters:
tagName- Regex matching tags to build. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#tag_name Cloudfunctions2Function#tag_name}- Returns:
this
-
build
@Stability(Stable) public Cloudfunctions2FunctionBuildConfigSourceRepoSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Cloudfunctions2FunctionBuildConfigSourceRepoSource>- Returns:
- a new instance of
Cloudfunctions2FunctionBuildConfigSourceRepoSource - Throws:
NullPointerException- if any required attribute was not provided
-
-