Class CloudbuildTrigger.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_trigger.CloudbuildTrigger.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildTrigger>
- Enclosing class:
- CloudbuildTrigger
@Stability(Stable) public static final class CloudbuildTrigger.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildTrigger>
A fluent builder forCloudbuildTrigger.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudbuildTrigger.BuilderapprovalConfig(CloudbuildTriggerApprovalConfig approvalConfig)approval_config block.CloudbuildTrigger.BuilderbitbucketServerTriggerConfig(CloudbuildTriggerBitbucketServerTriggerConfig bitbucketServerTriggerConfig)bitbucket_server_trigger_config block.CloudbuildTriggerbuild()CloudbuildTrigger.BuilderbuildAttribute(CloudbuildTriggerBuild buildAttribute)build block.CloudbuildTrigger.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)CloudbuildTrigger.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)CloudbuildTrigger.Buildercount(com.hashicorp.cdktf.TerraformCount count)CloudbuildTrigger.Buildercount(Number count)static CloudbuildTrigger.Buildercreate(software.constructs.Construct scope, String id)CloudbuildTrigger.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)CloudbuildTrigger.Builderdescription(String description)Human-readable description of the trigger.CloudbuildTrigger.Builderdisabled(com.hashicorp.cdktf.IResolvable disabled)Whether the trigger is disabled or not.CloudbuildTrigger.Builderdisabled(Boolean disabled)Whether the trigger is disabled or not.CloudbuildTrigger.Builderfilename(String filename)Path, from the source root, to a file whose contents is used for the template.CloudbuildTrigger.Builderfilter(String filter)A Common Expression Language string.CloudbuildTrigger.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)CloudbuildTrigger.BuildergitFileSource(CloudbuildTriggerGitFileSource gitFileSource)git_file_source block.CloudbuildTrigger.Buildergithub(CloudbuildTriggerGithub github)github block.CloudbuildTrigger.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#id CloudbuildTrigger#id}.CloudbuildTrigger.BuilderignoredFiles(List<String> ignoredFiles)ignoredFiles and includedFiles are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for '**'.CloudbuildTrigger.BuilderincludeBuildLogs(String includeBuildLogs)Build logs will be sent back to GitHub as part of the checkrun result.CloudbuildTrigger.BuilderincludedFiles(List<String> includedFiles)ignoredFiles and includedFiles are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for '**'.CloudbuildTrigger.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)CloudbuildTrigger.Builderlocation(String location)The Cloud Build location for the trigger.CloudbuildTrigger.Buildername(String name)Name of the trigger.CloudbuildTrigger.Builderproject(String project)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#project CloudbuildTrigger#project}.CloudbuildTrigger.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)CloudbuildTrigger.Builderprovisioners(List<? extends Object> provisioners)CloudbuildTrigger.BuilderpubsubConfig(CloudbuildTriggerPubsubConfig pubsubConfig)pubsub_config block.CloudbuildTrigger.BuilderrepositoryEventConfig(CloudbuildTriggerRepositoryEventConfig repositoryEventConfig)repository_event_config block.CloudbuildTrigger.BuilderserviceAccount(String serviceAccount)The service account used for all user-controlled operations including triggers.patch, triggers.run, builds.create, and builds.cancel.CloudbuildTrigger.BuildersourceToBuild(CloudbuildTriggerSourceToBuild sourceToBuild)source_to_build block.CloudbuildTrigger.Buildersubstitutions(Map<String,String> substitutions)Substitutions data for Build resource.CloudbuildTrigger.Buildertags(List<String> tags)Tags for annotation of a BuildTrigger.CloudbuildTrigger.Buildertimeouts(CloudbuildTriggerTimeouts timeouts)timeouts block.CloudbuildTrigger.BuildertriggerTemplate(CloudbuildTriggerTriggerTemplate triggerTemplate)trigger_template block.CloudbuildTrigger.BuilderwebhookConfig(CloudbuildTriggerWebhookConfig webhookConfig)webhook_config block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static CloudbuildTrigger.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
CloudbuildTrigger.Builder.
-
connection
@Stability(Experimental) public CloudbuildTrigger.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public CloudbuildTrigger.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public CloudbuildTrigger.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public CloudbuildTrigger.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public CloudbuildTrigger.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public CloudbuildTrigger.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public CloudbuildTrigger.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public CloudbuildTrigger.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public CloudbuildTrigger.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
approvalConfig
@Stability(Stable) public CloudbuildTrigger.Builder approvalConfig(CloudbuildTriggerApprovalConfig approvalConfig)
approval_config block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#approval_config CloudbuildTrigger#approval_config}
- Parameters:
approvalConfig- approval_config block. This parameter is required.- Returns:
this
-
bitbucketServerTriggerConfig
@Stability(Stable) public CloudbuildTrigger.Builder bitbucketServerTriggerConfig(CloudbuildTriggerBitbucketServerTriggerConfig bitbucketServerTriggerConfig)
bitbucket_server_trigger_config block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#bitbucket_server_trigger_config CloudbuildTrigger#bitbucket_server_trigger_config}
- Parameters:
bitbucketServerTriggerConfig- bitbucket_server_trigger_config block. This parameter is required.- Returns:
this
-
buildAttribute
@Stability(Stable) public CloudbuildTrigger.Builder buildAttribute(CloudbuildTriggerBuild buildAttribute)
build block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#build CloudbuildTrigger#build}
- Parameters:
buildAttribute- build block. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public CloudbuildTrigger.Builder description(String description)
Human-readable description of the trigger.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#description CloudbuildTrigger#description}
- Parameters:
description- Human-readable description of the trigger. This parameter is required.- Returns:
this
-
disabled
@Stability(Stable) public CloudbuildTrigger.Builder disabled(Boolean disabled)
Whether the trigger is disabled or not. If true, the trigger will never result in a build.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#disabled CloudbuildTrigger#disabled}
- Parameters:
disabled- Whether the trigger is disabled or not. If true, the trigger will never result in a build. This parameter is required.- Returns:
this
-
disabled
@Stability(Stable) public CloudbuildTrigger.Builder disabled(com.hashicorp.cdktf.IResolvable disabled)
Whether the trigger is disabled or not. If true, the trigger will never result in a build.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#disabled CloudbuildTrigger#disabled}
- Parameters:
disabled- Whether the trigger is disabled or not. If true, the trigger will never result in a build. This parameter is required.- Returns:
this
-
filename
@Stability(Stable) public CloudbuildTrigger.Builder filename(String filename)
Path, from the source root, to a file whose contents is used for the template.Either a filename or build template must be provided. Set this only when using trigger_template or github. When using Pub/Sub, Webhook or Manual set the file name using git_file_source instead. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#filename CloudbuildTrigger#filename}
- Parameters:
filename- Path, from the source root, to a file whose contents is used for the template. This parameter is required.- Returns:
this
-
filter
@Stability(Stable) public CloudbuildTrigger.Builder filter(String filter)
A Common Expression Language string. Used only with Pub/Sub and Webhook.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#filter CloudbuildTrigger#filter}
- Parameters:
filter- A Common Expression Language string. Used only with Pub/Sub and Webhook. This parameter is required.- Returns:
this
-
gitFileSource
@Stability(Stable) public CloudbuildTrigger.Builder gitFileSource(CloudbuildTriggerGitFileSource gitFileSource)
git_file_source block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#git_file_source CloudbuildTrigger#git_file_source}
- Parameters:
gitFileSource- git_file_source block. This parameter is required.- Returns:
this
-
github
@Stability(Stable) public CloudbuildTrigger.Builder github(CloudbuildTriggerGithub github)
github block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#github CloudbuildTrigger#github}
- Parameters:
github- github block. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public CloudbuildTrigger.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#id CloudbuildTrigger#id}.Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#id CloudbuildTrigger#id}. This parameter is required.- Returns:
this
-
ignoredFiles
@Stability(Stable) public CloudbuildTrigger.Builder ignoredFiles(List<String> ignoredFiles)
ignoredFiles and includedFiles are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for '**'.If ignoredFiles and changed files are both empty, then they are not used to determine whether or not to trigger a build. If ignoredFiles is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignoredFiles globs, then we do not trigger a build. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#ignored_files CloudbuildTrigger#ignored_files}
- Parameters:
ignoredFiles- ignoredFiles and includedFiles are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for '**'. This parameter is required.- Returns:
this
-
includeBuildLogs
@Stability(Stable) public CloudbuildTrigger.Builder includeBuildLogs(String includeBuildLogs)
Build logs will be sent back to GitHub as part of the checkrun result.Values can be INCLUDE_BUILD_LOGS_UNSPECIFIED or INCLUDE_BUILD_LOGS_WITH_STATUS Possible values: ["INCLUDE_BUILD_LOGS_UNSPECIFIED", "INCLUDE_BUILD_LOGS_WITH_STATUS"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#include_build_logs CloudbuildTrigger#include_build_logs}
- Parameters:
includeBuildLogs- Build logs will be sent back to GitHub as part of the checkrun result. This parameter is required.- Returns:
this
-
includedFiles
@Stability(Stable) public CloudbuildTrigger.Builder includedFiles(List<String> includedFiles)
ignoredFiles and includedFiles are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for '**'.If any of the files altered in the commit pass the ignoredFiles filter and includedFiles is empty, then as far as this filter is concerned, we should trigger the build. If any of the files altered in the commit pass the ignoredFiles filter and includedFiles is not empty, then we make sure that at least one of those files matches a includedFiles glob. If not, then we do not trigger a build. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#included_files CloudbuildTrigger#included_files}
- Parameters:
includedFiles- ignoredFiles and includedFiles are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for '**'. This parameter is required.- Returns:
this
-
location
@Stability(Stable) public CloudbuildTrigger.Builder location(String location)
The Cloud Build location for the trigger. If not specified, "global" is used.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#location CloudbuildTrigger#location}
- Parameters:
location- The Cloud Build location for the trigger. If not specified, "global" is used. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public CloudbuildTrigger.Builder name(String name)
Name of the trigger. Must be unique within the project.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#name CloudbuildTrigger#name}
- Parameters:
name- Name of the trigger. Must be unique within the project. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public CloudbuildTrigger.Builder project(String project)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#project CloudbuildTrigger#project}.- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#project CloudbuildTrigger#project}. This parameter is required.- Returns:
this
-
pubsubConfig
@Stability(Stable) public CloudbuildTrigger.Builder pubsubConfig(CloudbuildTriggerPubsubConfig pubsubConfig)
pubsub_config block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#pubsub_config CloudbuildTrigger#pubsub_config}
- Parameters:
pubsubConfig- pubsub_config block. This parameter is required.- Returns:
this
-
repositoryEventConfig
@Stability(Stable) public CloudbuildTrigger.Builder repositoryEventConfig(CloudbuildTriggerRepositoryEventConfig repositoryEventConfig)
repository_event_config block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#repository_event_config CloudbuildTrigger#repository_event_config}
- Parameters:
repositoryEventConfig- repository_event_config block. This parameter is required.- Returns:
this
-
serviceAccount
@Stability(Stable) public CloudbuildTrigger.Builder serviceAccount(String serviceAccount)
The service account used for all user-controlled operations including triggers.patch, triggers.run, builds.create, and builds.cancel.If no service account is set, then the standard Cloud Build service account ([PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL} Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#service_account CloudbuildTrigger#service_account}
- Parameters:
serviceAccount- The service account used for all user-controlled operations including triggers.patch, triggers.run, builds.create, and builds.cancel. This parameter is required.- Returns:
this
-
sourceToBuild
@Stability(Stable) public CloudbuildTrigger.Builder sourceToBuild(CloudbuildTriggerSourceToBuild sourceToBuild)
source_to_build block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#source_to_build CloudbuildTrigger#source_to_build}
- Parameters:
sourceToBuild- source_to_build block. This parameter is required.- Returns:
this
-
substitutions
@Stability(Stable) public CloudbuildTrigger.Builder substitutions(Map<String,String> substitutions)
Substitutions data for Build resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#substitutions CloudbuildTrigger#substitutions}
- Parameters:
substitutions- Substitutions data for Build resource. This parameter is required.- Returns:
this
-
tags
@Stability(Stable) public CloudbuildTrigger.Builder tags(List<String> tags)
Tags for annotation of a BuildTrigger.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#tags CloudbuildTrigger#tags}
- Parameters:
tags- Tags for annotation of a BuildTrigger. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public CloudbuildTrigger.Builder timeouts(CloudbuildTriggerTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#timeouts CloudbuildTrigger#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
triggerTemplate
@Stability(Stable) public CloudbuildTrigger.Builder triggerTemplate(CloudbuildTriggerTriggerTemplate triggerTemplate)
trigger_template block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#trigger_template CloudbuildTrigger#trigger_template}
- Parameters:
triggerTemplate- trigger_template block. This parameter is required.- Returns:
this
-
webhookConfig
@Stability(Stable) public CloudbuildTrigger.Builder webhookConfig(CloudbuildTriggerWebhookConfig webhookConfig)
webhook_config block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#webhook_config CloudbuildTrigger#webhook_config}
- Parameters:
webhookConfig- webhook_config block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public CloudbuildTrigger build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildTrigger>- Returns:
- a newly built instance of
CloudbuildTrigger.
-
-