Class CloudbuildTriggerRepositoryEventConfigPullRequest.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_trigger.CloudbuildTriggerRepositoryEventConfigPullRequest.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildTriggerRepositoryEventConfigPullRequest>
- Enclosing interface:
- CloudbuildTriggerRepositoryEventConfigPullRequest
@Stability(Stable) public static final class CloudbuildTriggerRepositoryEventConfigPullRequest.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildTriggerRepositoryEventConfigPullRequest>
A builder forCloudbuildTriggerRepositoryEventConfigPullRequest
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudbuildTriggerRepositoryEventConfigPullRequest.Builderbranch(String branch)Sets the value ofCloudbuildTriggerRepositoryEventConfigPullRequest.getBranch()CloudbuildTriggerRepositoryEventConfigPullRequestbuild()Builds the configured instance.CloudbuildTriggerRepositoryEventConfigPullRequest.BuildercommentControl(String commentControl)Sets the value ofCloudbuildTriggerRepositoryEventConfigPullRequest.getCommentControl()CloudbuildTriggerRepositoryEventConfigPullRequest.BuilderinvertRegex(com.hashicorp.cdktf.IResolvable invertRegex)Sets the value ofCloudbuildTriggerRepositoryEventConfigPullRequest.getInvertRegex()CloudbuildTriggerRepositoryEventConfigPullRequest.BuilderinvertRegex(Boolean invertRegex)Sets the value ofCloudbuildTriggerRepositoryEventConfigPullRequest.getInvertRegex()
-
-
-
Method Detail
-
branch
@Stability(Stable) public CloudbuildTriggerRepositoryEventConfigPullRequest.Builder branch(String branch)
Sets the value ofCloudbuildTriggerRepositoryEventConfigPullRequest.getBranch()- Parameters:
branch- Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax 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 CloudbuildTriggerRepositoryEventConfigPullRequest.Builder commentControl(String commentControl)
Sets the value ofCloudbuildTriggerRepositoryEventConfigPullRequest.getCommentControl()- Parameters:
commentControl- Configure builds to run whether a repository owner or collaborator need to comment '/gcbrun'. 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 CloudbuildTriggerRepositoryEventConfigPullRequest.Builder invertRegex(Boolean invertRegex)
Sets the value ofCloudbuildTriggerRepositoryEventConfigPullRequest.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 CloudbuildTriggerRepositoryEventConfigPullRequest.Builder invertRegex(com.hashicorp.cdktf.IResolvable invertRegex)
Sets the value ofCloudbuildTriggerRepositoryEventConfigPullRequest.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 CloudbuildTriggerRepositoryEventConfigPullRequest build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildTriggerRepositoryEventConfigPullRequest>- Returns:
- a new instance of
CloudbuildTriggerRepositoryEventConfigPullRequest - Throws:
NullPointerException- if any required attribute was not provided
-
-