Class CloudbuildTriggerSourceToBuild.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_trigger.CloudbuildTriggerSourceToBuild.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildTriggerSourceToBuild>
- Enclosing interface:
- CloudbuildTriggerSourceToBuild
@Stability(Stable) public static final class CloudbuildTriggerSourceToBuild.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildTriggerSourceToBuild>
A builder forCloudbuildTriggerSourceToBuild
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudbuildTriggerSourceToBuild.BuilderbitbucketServerConfig(String bitbucketServerConfig)Sets the value ofCloudbuildTriggerSourceToBuild.getBitbucketServerConfig()CloudbuildTriggerSourceToBuildbuild()Builds the configured instance.CloudbuildTriggerSourceToBuild.BuildergithubEnterpriseConfig(String githubEnterpriseConfig)Sets the value ofCloudbuildTriggerSourceToBuild.getGithubEnterpriseConfig()CloudbuildTriggerSourceToBuild.Builderref(String ref)Sets the value ofCloudbuildTriggerSourceToBuild.getRef()CloudbuildTriggerSourceToBuild.Builderrepository(String repository)Sets the value ofCloudbuildTriggerSourceToBuild.getRepository()CloudbuildTriggerSourceToBuild.BuilderrepoType(String repoType)Sets the value ofCloudbuildTriggerSourceToBuild.getRepoType()CloudbuildTriggerSourceToBuild.Builderuri(String uri)Sets the value ofCloudbuildTriggerSourceToBuild.getUri()
-
-
-
Method Detail
-
ref
@Stability(Stable) public CloudbuildTriggerSourceToBuild.Builder ref(String ref)
Sets the value ofCloudbuildTriggerSourceToBuild.getRef()- 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)
Sets the value ofCloudbuildTriggerSourceToBuild.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 CloudbuildTriggerSourceToBuild.Builder bitbucketServerConfig(String bitbucketServerConfig)
Sets the value ofCloudbuildTriggerSourceToBuild.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 CloudbuildTriggerSourceToBuild.Builder githubEnterpriseConfig(String githubEnterpriseConfig)
Sets the value ofCloudbuildTriggerSourceToBuild.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 CloudbuildTriggerSourceToBuild.Builder repository(String repository)
Sets the value ofCloudbuildTriggerSourceToBuild.getRepository()- 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
-
uri
@Stability(Stable) public CloudbuildTriggerSourceToBuild.Builder uri(String uri)
Sets the value ofCloudbuildTriggerSourceToBuild.getUri()- Parameters:
uri- The URI of the repo. 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 CloudbuildTriggerSourceToBuild build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildTriggerSourceToBuild>- Returns:
- a new instance of
CloudbuildTriggerSourceToBuild - Throws:
NullPointerException- if any required attribute was not provided
-
-