Class CloudbuildTriggerTriggerTemplate.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • branchName

        @Stability(Stable)
        public CloudbuildTriggerTriggerTemplate.Builder branchName​(String branchName)
        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)
        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)
        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)
        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)
        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)
        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)
        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)
        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