Class CloudbuildTriggerTriggerTemplate.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_trigger.CloudbuildTriggerTriggerTemplate.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildTriggerTriggerTemplate>
- Enclosing interface:
- CloudbuildTriggerTriggerTemplate
@Stability(Stable) public static final class CloudbuildTriggerTriggerTemplate.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildTriggerTriggerTemplate>
A builder forCloudbuildTriggerTriggerTemplate
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
branchName
@Stability(Stable) public CloudbuildTriggerTriggerTemplate.Builder branchName(String branchName)
Sets the value ofCloudbuildTriggerTriggerTemplate.getBranchName()- Parameters:
branchName- Name of the branch to build. Exactly one a of branch name, tag, or commit SHA must be provided. This field is a regular expression. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#branch_name CloudbuildTrigger#branch_name}- Returns:
this
-
commitSha
@Stability(Stable) public CloudbuildTriggerTriggerTemplate.Builder commitSha(String commitSha)
Sets the value ofCloudbuildTriggerTriggerTemplate.getCommitSha()- Parameters:
commitSha- Explicit commit SHA to build. Exactly one of a branch name, tag, or commit SHA must be provided. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#commit_sha CloudbuildTrigger#commit_sha}- Returns:
this
-
dir
@Stability(Stable) public CloudbuildTriggerTriggerTemplate.Builder dir(String dir)
Sets the value ofCloudbuildTriggerTriggerTemplate.getDir()- Parameters:
dir- Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#dir CloudbuildTrigger#dir}- Returns:
this
-
invertRegex
@Stability(Stable) public CloudbuildTriggerTriggerTemplate.Builder invertRegex(Boolean invertRegex)
Sets the value ofCloudbuildTriggerTriggerTemplate.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/cloudbuild_trigger#invert_regex CloudbuildTrigger#invert_regex}- Returns:
this
-
invertRegex
@Stability(Stable) public CloudbuildTriggerTriggerTemplate.Builder invertRegex(com.hashicorp.cdktf.IResolvable invertRegex)
Sets the value ofCloudbuildTriggerTriggerTemplate.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/cloudbuild_trigger#invert_regex CloudbuildTrigger#invert_regex}- Returns:
this
-
projectId
@Stability(Stable) public CloudbuildTriggerTriggerTemplate.Builder projectId(String projectId)
Sets the value ofCloudbuildTriggerTriggerTemplate.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/cloudbuild_trigger#project_id CloudbuildTrigger#project_id}- Returns:
this
-
repoName
@Stability(Stable) public CloudbuildTriggerTriggerTemplate.Builder repoName(String repoName)
Sets the value ofCloudbuildTriggerTriggerTemplate.getRepoName()- Parameters:
repoName- Name of the Cloud Source Repository. If omitted, the name "default" is assumed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#repo_name CloudbuildTrigger#repo_name}- Returns:
this
-
tagName
@Stability(Stable) public CloudbuildTriggerTriggerTemplate.Builder tagName(String tagName)
Sets the value ofCloudbuildTriggerTriggerTemplate.getTagName()- Parameters:
tagName- Name of the tag to build. Exactly one of a branch name, tag, or commit SHA must be provided. This field is a regular expression. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#tag_name CloudbuildTrigger#tag_name}- Returns:
this
-
build
@Stability(Stable) public CloudbuildTriggerTriggerTemplate build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildTriggerTriggerTemplate>- Returns:
- a new instance of
CloudbuildTriggerTriggerTemplate - Throws:
NullPointerException- if any required attribute was not provided
-
-