Class CloudbuildTriggerBuild.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • step

        @Stability(Stable)
        public CloudbuildTriggerBuild.Builder step​(com.hashicorp.cdktf.IResolvable step)
        Parameters:
        step - step block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#step CloudbuildTrigger#step}
        Returns:
        this
      • images

        @Stability(Stable)
        public CloudbuildTriggerBuild.Builder images​(List<String> images)
        Parameters:
        images - A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build status is marked FAILURE. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#images CloudbuildTrigger#images}
        Returns:
        this
      • logsBucket

        @Stability(Stable)
        public CloudbuildTriggerBuild.Builder logsBucket​(String logsBucket)
        Parameters:
        logsBucket - Google Cloud Storage bucket where logs should be written. Logs file names will be of the format ${logsBucket}/log-${build_id}.txt. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#logs_bucket CloudbuildTrigger#logs_bucket}
        Returns:
        this
      • queueTtl

        @Stability(Stable)
        public CloudbuildTriggerBuild.Builder queueTtl​(String queueTtl)
        Parameters:
        queueTtl - TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be EXPIRED. The TTL starts ticking from createTime. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#queue_ttl CloudbuildTrigger#queue_ttl}
        Returns:
        this
      • secret

        @Stability(Stable)
        public CloudbuildTriggerBuild.Builder secret​(com.hashicorp.cdktf.IResolvable secret)
        Parameters:
        secret - secret block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#secret CloudbuildTrigger#secret}
        Returns:
        this
      • substitutions

        @Stability(Stable)
        public CloudbuildTriggerBuild.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 CloudbuildTriggerBuild.Builder tags​(List<String> tags)
        Parameters:
        tags - Tags for annotation of a Build. These are not docker tags. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#tags CloudbuildTrigger#tags}
        Returns:
        this
      • timeout

        @Stability(Stable)
        public CloudbuildTriggerBuild.Builder timeout​(String timeout)
        Parameters:
        timeout - Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be TIMEOUT. This timeout must be equal to or greater than the sum of the timeouts for build steps within the build. The expected format is the number of seconds followed by s. Default time is ten minutes (600s). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#timeout CloudbuildTrigger#timeout}
        Returns:
        this