Class CloudbuildTriggerGitFileSource.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • path

        @Stability(Stable)
        public CloudbuildTriggerGitFileSource.Builder path​(String path)
        Parameters:
        path - The path of the file, with the repo root as the root of the path. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#path CloudbuildTrigger#path}
        Returns:
        this
      • repoType

        @Stability(Stable)
        public CloudbuildTriggerGitFileSource.Builder repoType​(String repoType)
        Parameters:
        repoType - The type of the repo, since it may not be explicit from the repo field (e.g from a URL). Values can be UNKNOWN, CLOUD_SOURCE_REPOSITORIES, GITHUB, BITBUCKET_SERVER Possible values: ["UNKNOWN", "CLOUD_SOURCE_REPOSITORIES", "GITHUB", "BITBUCKET_SERVER"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#repo_type CloudbuildTrigger#repo_type}
        Returns:
        this
      • bitbucketServerConfig

        @Stability(Stable)
        public CloudbuildTriggerGitFileSource.Builder bitbucketServerConfig​(String bitbucketServerConfig)
        Parameters:
        bitbucketServerConfig - The full resource name of the bitbucket server config. Format: projects/{project}/locations/{location}/bitbucketServerConfigs/{id}. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#bitbucket_server_config CloudbuildTrigger#bitbucket_server_config}
        Returns:
        this
      • githubEnterpriseConfig

        @Stability(Stable)
        public CloudbuildTriggerGitFileSource.Builder githubEnterpriseConfig​(String githubEnterpriseConfig)
        Parameters:
        githubEnterpriseConfig - The full resource name of the github enterprise config. Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#github_enterprise_config CloudbuildTrigger#github_enterprise_config}
        Returns:
        this
      • repository

        @Stability(Stable)
        public CloudbuildTriggerGitFileSource.Builder repository​(String repository)
        Parameters:
        repository - The fully qualified resource name of the Repo API repository. The fully qualified resource name of the Repo API repository. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#repository CloudbuildTrigger#repository}
        Returns:
        this
      • revision

        @Stability(Stable)
        public CloudbuildTriggerGitFileSource.Builder revision​(String revision)
        Parameters:
        revision - The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#revision CloudbuildTrigger#revision}
        Returns:
        this
      • uri

        @Stability(Stable)
        public CloudbuildTriggerGitFileSource.Builder uri​(String uri)
        Parameters:
        uri - The URI of the repo (optional). If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#uri CloudbuildTrigger#uri}
        Returns:
        this