Class CloudbuildTriggerConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_trigger.CloudbuildTriggerConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildTriggerConfig>
- Enclosing interface:
- CloudbuildTriggerConfig
@Stability(Stable) public static final class CloudbuildTriggerConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildTriggerConfig>
A builder forCloudbuildTriggerConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
approvalConfig
@Stability(Stable) public CloudbuildTriggerConfig.Builder approvalConfig(CloudbuildTriggerApprovalConfig approvalConfig)
Sets the value ofCloudbuildTriggerConfig.getApprovalConfig()- Parameters:
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}- Returns:
this
-
bitbucketServerTriggerConfig
@Stability(Stable) public CloudbuildTriggerConfig.Builder bitbucketServerTriggerConfig(CloudbuildTriggerBitbucketServerTriggerConfig bitbucketServerTriggerConfig)
Sets the value ofCloudbuildTriggerConfig.getBitbucketServerTriggerConfig()- Parameters:
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}- Returns:
this
-
buildAttribute
@Stability(Stable) public CloudbuildTriggerConfig.Builder buildAttribute(CloudbuildTriggerBuild buildAttribute)
Sets the value ofCloudbuildTriggerConfig.getBuildAttribute()- Parameters:
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}- Returns:
this
-
description
@Stability(Stable) public CloudbuildTriggerConfig.Builder description(String description)
Sets the value ofCloudbuildTriggerConfig.getDescription()- Parameters:
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}- Returns:
this
-
disabled
@Stability(Stable) public CloudbuildTriggerConfig.Builder disabled(Boolean disabled)
Sets the value ofCloudbuildTriggerConfig.getDisabled()- Parameters:
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}- Returns:
this
-
disabled
@Stability(Stable) public CloudbuildTriggerConfig.Builder disabled(com.hashicorp.cdktf.IResolvable disabled)
Sets the value ofCloudbuildTriggerConfig.getDisabled()- Parameters:
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}- Returns:
this
-
filename
@Stability(Stable) public CloudbuildTriggerConfig.Builder filename(String filename)
Sets the value ofCloudbuildTriggerConfig.getFilename()- Parameters:
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}- Returns:
this
-
filter
@Stability(Stable) public CloudbuildTriggerConfig.Builder filter(String filter)
Sets the value ofCloudbuildTriggerConfig.getFilter()- Parameters:
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}- Returns:
this
-
gitFileSource
@Stability(Stable) public CloudbuildTriggerConfig.Builder gitFileSource(CloudbuildTriggerGitFileSource gitFileSource)
Sets the value ofCloudbuildTriggerConfig.getGitFileSource()- Parameters:
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}- Returns:
this
-
github
@Stability(Stable) public CloudbuildTriggerConfig.Builder github(CloudbuildTriggerGithub github)
Sets the value ofCloudbuildTriggerConfig.getGithub()- Parameters:
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}- Returns:
this
-
id
@Stability(Stable) public CloudbuildTriggerConfig.Builder id(String id)
Sets the value ofCloudbuildTriggerConfig.getId()- Parameters:
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.- Returns:
this
-
ignoredFiles
@Stability(Stable) public CloudbuildTriggerConfig.Builder ignoredFiles(List<String> ignoredFiles)
Sets the value ofCloudbuildTriggerConfig.getIgnoredFiles()- Parameters:
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}- Returns:
this
-
includeBuildLogs
@Stability(Stable) public CloudbuildTriggerConfig.Builder includeBuildLogs(String includeBuildLogs)
Sets the value ofCloudbuildTriggerConfig.getIncludeBuildLogs()- Parameters:
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}- Returns:
this
-
includedFiles
@Stability(Stable) public CloudbuildTriggerConfig.Builder includedFiles(List<String> includedFiles)
Sets the value ofCloudbuildTriggerConfig.getIncludedFiles()- Parameters:
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}- Returns:
this
-
location
@Stability(Stable) public CloudbuildTriggerConfig.Builder location(String location)
Sets the value ofCloudbuildTriggerConfig.getLocation()- Parameters:
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}- Returns:
this
-
name
@Stability(Stable) public CloudbuildTriggerConfig.Builder name(String name)
Sets the value ofCloudbuildTriggerConfig.getName()- Parameters:
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}- Returns:
this
-
project
@Stability(Stable) public CloudbuildTriggerConfig.Builder project(String project)
Sets the value ofCloudbuildTriggerConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#project CloudbuildTrigger#project}.- Returns:
this
-
pubsubConfig
@Stability(Stable) public CloudbuildTriggerConfig.Builder pubsubConfig(CloudbuildTriggerPubsubConfig pubsubConfig)
Sets the value ofCloudbuildTriggerConfig.getPubsubConfig()- Parameters:
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}- Returns:
this
-
repositoryEventConfig
@Stability(Stable) public CloudbuildTriggerConfig.Builder repositoryEventConfig(CloudbuildTriggerRepositoryEventConfig repositoryEventConfig)
Sets the value ofCloudbuildTriggerConfig.getRepositoryEventConfig()- Parameters:
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}- Returns:
this
-
serviceAccount
@Stability(Stable) public CloudbuildTriggerConfig.Builder serviceAccount(String serviceAccount)
Sets the value ofCloudbuildTriggerConfig.getServiceAccount()- Parameters:
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}- Returns:
this
-
sourceToBuild
@Stability(Stable) public CloudbuildTriggerConfig.Builder sourceToBuild(CloudbuildTriggerSourceToBuild sourceToBuild)
Sets the value ofCloudbuildTriggerConfig.getSourceToBuild()- Parameters:
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}- Returns:
this
-
substitutions
@Stability(Stable) public CloudbuildTriggerConfig.Builder substitutions(Map<String,String> substitutions)
Sets the value ofCloudbuildTriggerConfig.getSubstitutions()- Parameters:
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}- Returns:
this
-
tags
@Stability(Stable) public CloudbuildTriggerConfig.Builder tags(List<String> tags)
Sets the value ofCloudbuildTriggerConfig.getTags()- Parameters:
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}- Returns:
this
-
timeouts
@Stability(Stable) public CloudbuildTriggerConfig.Builder timeouts(CloudbuildTriggerTimeouts timeouts)
Sets the value ofCloudbuildTriggerConfig.getTimeouts()- Parameters:
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}- Returns:
this
-
triggerTemplate
@Stability(Stable) public CloudbuildTriggerConfig.Builder triggerTemplate(CloudbuildTriggerTriggerTemplate triggerTemplate)
Sets the value ofCloudbuildTriggerConfig.getTriggerTemplate()- Parameters:
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}- Returns:
this
-
webhookConfig
@Stability(Stable) public CloudbuildTriggerConfig.Builder webhookConfig(CloudbuildTriggerWebhookConfig webhookConfig)
Sets the value ofCloudbuildTriggerConfig.getWebhookConfig()- Parameters:
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}- Returns:
this
-
connection
@Stability(Experimental) public CloudbuildTriggerConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public CloudbuildTriggerConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudbuildTriggerConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudbuildTriggerConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public CloudbuildTriggerConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public CloudbuildTriggerConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public CloudbuildTriggerConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public CloudbuildTriggerConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public CloudbuildTriggerConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public CloudbuildTriggerConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildTriggerConfig>- Returns:
- a new instance of
CloudbuildTriggerConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-