Class CloudbuildTriggerConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • description

        @Stability(Stable)
        public CloudbuildTriggerConfig.Builder description​(String description)
        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)
        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)
        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)
        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)
        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
      • id

        @Stability(Stable)
        public CloudbuildTriggerConfig.Builder id​(String id)
        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)
        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)
        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)
        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
      • name

        @Stability(Stable)
        public CloudbuildTriggerConfig.Builder name​(String name)
        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
      • serviceAccount

        @Stability(Stable)
        public CloudbuildTriggerConfig.Builder serviceAccount​(String serviceAccount)
        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
      • substitutions

        @Stability(Stable)
        public CloudbuildTriggerConfig.Builder substitutions​(Map<String,​String> substitutions)
        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)
        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
      • connection

        @Stability(Experimental)
        public CloudbuildTriggerConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public CloudbuildTriggerConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public CloudbuildTriggerConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this