Class CloudbuildTriggerGithubPush.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_trigger.CloudbuildTriggerGithubPush.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildTriggerGithubPush>
- Enclosing interface:
- CloudbuildTriggerGithubPush
@Stability(Stable) public static final class CloudbuildTriggerGithubPush.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildTriggerGithubPush>
A builder forCloudbuildTriggerGithubPush
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudbuildTriggerGithubPush.Builderbranch(String branch)Sets the value ofCloudbuildTriggerGithubPush.getBranch()CloudbuildTriggerGithubPushbuild()Builds the configured instance.CloudbuildTriggerGithubPush.BuilderinvertRegex(com.hashicorp.cdktf.IResolvable invertRegex)Sets the value ofCloudbuildTriggerGithubPush.getInvertRegex()CloudbuildTriggerGithubPush.BuilderinvertRegex(Boolean invertRegex)Sets the value ofCloudbuildTriggerGithubPush.getInvertRegex()CloudbuildTriggerGithubPush.Buildertag(String tag)Sets the value ofCloudbuildTriggerGithubPush.getTag()
-
-
-
Method Detail
-
branch
@Stability(Stable) public CloudbuildTriggerGithubPush.Builder branch(String branch)
Sets the value ofCloudbuildTriggerGithubPush.getBranch()- Parameters:
branch- Regex of branches to match. Specify only one of branch or tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#branch CloudbuildTrigger#branch}- Returns:
this
-
invertRegex
@Stability(Stable) public CloudbuildTriggerGithubPush.Builder invertRegex(Boolean invertRegex)
Sets the value ofCloudbuildTriggerGithubPush.getInvertRegex()- Parameters:
invertRegex- When true, only trigger a build if the revision regex does NOT match the git_ref 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 CloudbuildTriggerGithubPush.Builder invertRegex(com.hashicorp.cdktf.IResolvable invertRegex)
Sets the value ofCloudbuildTriggerGithubPush.getInvertRegex()- Parameters:
invertRegex- When true, only trigger a build if the revision regex does NOT match the git_ref 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
-
tag
@Stability(Stable) public CloudbuildTriggerGithubPush.Builder tag(String tag)
Sets the value ofCloudbuildTriggerGithubPush.getTag()- Parameters:
tag- Regex of tags to match. Specify only one of branch or tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#tag CloudbuildTrigger#tag}- Returns:
this
-
build
@Stability(Stable) public CloudbuildTriggerGithubPush build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildTriggerGithubPush>- Returns:
- a new instance of
CloudbuildTriggerGithubPush - Throws:
NullPointerException- if any required attribute was not provided
-
-