Class CloudbuildTriggerSourceToBuild.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • ref

        @Stability(Stable)
        public CloudbuildTriggerSourceToBuild.Builder ref​(String ref)
        Parameters:
        ref - The branch or tag to use. Must start with "refs/" (required). This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#ref CloudbuildTrigger#ref}
        Returns:
        this
      • repoType

        @Stability(Stable)
        public CloudbuildTriggerSourceToBuild.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 CloudbuildTriggerSourceToBuild.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 CloudbuildTriggerSourceToBuild.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 CloudbuildTriggerSourceToBuild.Builder repository​(String repository)
        Parameters:
        repository - The qualified resource name of the Repo API repository. Either uri or repository can be specified and is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#repository CloudbuildTrigger#repository}
        Returns:
        this