Class CloudbuildTriggerRepositoryEventConfigPush.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_trigger.CloudbuildTriggerRepositoryEventConfigPush.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildTriggerRepositoryEventConfigPush>
- Enclosing interface:
- CloudbuildTriggerRepositoryEventConfigPush
@Stability(Stable) public static final class CloudbuildTriggerRepositoryEventConfigPush.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildTriggerRepositoryEventConfigPush>
A builder forCloudbuildTriggerRepositoryEventConfigPush
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudbuildTriggerRepositoryEventConfigPush.Builderbranch(String branch)Sets the value ofCloudbuildTriggerRepositoryEventConfigPush.getBranch()CloudbuildTriggerRepositoryEventConfigPushbuild()Builds the configured instance.CloudbuildTriggerRepositoryEventConfigPush.BuilderinvertRegex(com.hashicorp.cdktf.IResolvable invertRegex)Sets the value ofCloudbuildTriggerRepositoryEventConfigPush.getInvertRegex()CloudbuildTriggerRepositoryEventConfigPush.BuilderinvertRegex(Boolean invertRegex)Sets the value ofCloudbuildTriggerRepositoryEventConfigPush.getInvertRegex()CloudbuildTriggerRepositoryEventConfigPush.Buildertag(String tag)Sets the value ofCloudbuildTriggerRepositoryEventConfigPush.getTag()
-
-
-
Method Detail
-
branch
@Stability(Stable) public CloudbuildTriggerRepositoryEventConfigPush.Builder branch(String branch)
Sets the value ofCloudbuildTriggerRepositoryEventConfigPush.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
-
invertRegex
@Stability(Stable) public CloudbuildTriggerRepositoryEventConfigPush.Builder invertRegex(Boolean invertRegex)
Sets the value ofCloudbuildTriggerRepositoryEventConfigPush.getInvertRegex()- Parameters:
invertRegex- If 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 CloudbuildTriggerRepositoryEventConfigPush.Builder invertRegex(com.hashicorp.cdktf.IResolvable invertRegex)
Sets the value ofCloudbuildTriggerRepositoryEventConfigPush.getInvertRegex()- Parameters:
invertRegex- If 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 CloudbuildTriggerRepositoryEventConfigPush.Builder tag(String tag)
Sets the value ofCloudbuildTriggerRepositoryEventConfigPush.getTag()- Parameters:
tag- Regex of tags 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#tag CloudbuildTrigger#tag}- Returns:
this
-
build
@Stability(Stable) public CloudbuildTriggerRepositoryEventConfigPush build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildTriggerRepositoryEventConfigPush>- Returns:
- a new instance of
CloudbuildTriggerRepositoryEventConfigPush - Throws:
NullPointerException- if any required attribute was not provided
-
-