Class CloudbuildTriggerGitFileSource.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_trigger.CloudbuildTriggerGitFileSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildTriggerGitFileSource>
- Enclosing interface:
- CloudbuildTriggerGitFileSource
@Stability(Stable) public static final class CloudbuildTriggerGitFileSource.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildTriggerGitFileSource>
A builder forCloudbuildTriggerGitFileSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
path
@Stability(Stable) public CloudbuildTriggerGitFileSource.Builder path(String path)
Sets the value ofCloudbuildTriggerGitFileSource.getPath()- 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)
Sets the value ofCloudbuildTriggerGitFileSource.getRepoType()- 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)
Sets the value ofCloudbuildTriggerGitFileSource.getBitbucketServerConfig()- 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)
Sets the value ofCloudbuildTriggerGitFileSource.getGithubEnterpriseConfig()- 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)
Sets the value ofCloudbuildTriggerGitFileSource.getRepository()- 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)
Sets the value ofCloudbuildTriggerGitFileSource.getRevision()- 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)
Sets the value ofCloudbuildTriggerGitFileSource.getUri()- 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
-
build
@Stability(Stable) public CloudbuildTriggerGitFileSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildTriggerGitFileSource>- Returns:
- a new instance of
CloudbuildTriggerGitFileSource - Throws:
NullPointerException- if any required attribute was not provided
-
-