Class CloudbuildTriggerGithubPullRequest.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_trigger.CloudbuildTriggerGithubPullRequest.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildTriggerGithubPullRequest>
- Enclosing interface:
- CloudbuildTriggerGithubPullRequest
@Stability(Stable) public static final class CloudbuildTriggerGithubPullRequest.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildTriggerGithubPullRequest>
A builder forCloudbuildTriggerGithubPullRequest
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudbuildTriggerGithubPullRequest.Builderbranch(String branch)Sets the value ofCloudbuildTriggerGithubPullRequest.getBranch()CloudbuildTriggerGithubPullRequestbuild()Builds the configured instance.CloudbuildTriggerGithubPullRequest.BuildercommentControl(String commentControl)Sets the value ofCloudbuildTriggerGithubPullRequest.getCommentControl()CloudbuildTriggerGithubPullRequest.BuilderinvertRegex(com.hashicorp.cdktf.IResolvable invertRegex)Sets the value ofCloudbuildTriggerGithubPullRequest.getInvertRegex()CloudbuildTriggerGithubPullRequest.BuilderinvertRegex(Boolean invertRegex)Sets the value ofCloudbuildTriggerGithubPullRequest.getInvertRegex()
-
-
-
Method Detail
-
branch
@Stability(Stable) public CloudbuildTriggerGithubPullRequest.Builder branch(String branch)
Sets the value ofCloudbuildTriggerGithubPullRequest.getBranch()- Parameters:
branch- Regex of branches to match. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#branch CloudbuildTrigger#branch}- Returns:
this
-
commentControl
@Stability(Stable) public CloudbuildTriggerGithubPullRequest.Builder commentControl(String commentControl)
Sets the value ofCloudbuildTriggerGithubPullRequest.getCommentControl()- Parameters:
commentControl- Whether to block builds on a "/gcbrun" comment from a repository owner or collaborator. Possible values: ["COMMENTS_DISABLED", "COMMENTS_ENABLED", "COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#comment_control CloudbuildTrigger#comment_control}- Returns:
this
-
invertRegex
@Stability(Stable) public CloudbuildTriggerGithubPullRequest.Builder invertRegex(Boolean invertRegex)
Sets the value ofCloudbuildTriggerGithubPullRequest.getInvertRegex()- Parameters:
invertRegex- If true, branches that do NOT match the git_ref will trigger a build. 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 CloudbuildTriggerGithubPullRequest.Builder invertRegex(com.hashicorp.cdktf.IResolvable invertRegex)
Sets the value ofCloudbuildTriggerGithubPullRequest.getInvertRegex()- Parameters:
invertRegex- If true, branches that do NOT match the git_ref will trigger a build. 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
-
build
@Stability(Stable) public CloudbuildTriggerGithubPullRequest build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildTriggerGithubPullRequest>- Returns:
- a new instance of
CloudbuildTriggerGithubPullRequest - Throws:
NullPointerException- if any required attribute was not provided
-
-