Class CloudbuildTriggerBuildOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • diskSizeGb

        @Stability(Stable)
        public CloudbuildTriggerBuildOptions.Builder diskSizeGb​(Number diskSizeGb)
        Parameters:
        diskSizeGb - Requested disk size for the VM that runs the build. Note that this is NOT "disk free"; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#disk_size_gb CloudbuildTrigger#disk_size_gb}
        Returns:
        this
      • dynamicSubstitutions

        @Stability(Stable)
        public CloudbuildTriggerBuildOptions.Builder dynamicSubstitutions​(Boolean dynamicSubstitutions)
        Parameters:
        dynamicSubstitutions - Option to specify whether or not to apply bash style string operations to the substitutions. NOTE this is always enabled for triggered builds and cannot be overridden in the build configuration file. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#dynamic_substitutions CloudbuildTrigger#dynamic_substitutions}
        Returns:
        this
      • dynamicSubstitutions

        @Stability(Stable)
        public CloudbuildTriggerBuildOptions.Builder dynamicSubstitutions​(com.hashicorp.cdktf.IResolvable dynamicSubstitutions)
        Parameters:
        dynamicSubstitutions - Option to specify whether or not to apply bash style string operations to the substitutions. NOTE this is always enabled for triggered builds and cannot be overridden in the build configuration file. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#dynamic_substitutions CloudbuildTrigger#dynamic_substitutions}
        Returns:
        this
      • env

        @Stability(Stable)
        public CloudbuildTriggerBuildOptions.Builder env​(List<String> env)
        Parameters:
        env - A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#env CloudbuildTrigger#env}
        Returns:
        this
      • logging

        @Stability(Stable)
        public CloudbuildTriggerBuildOptions.Builder logging​(String logging)
        Parameters:
        logging - Option to specify the logging mode, which determines if and where build logs are stored. Possible values: ["LOGGING_UNSPECIFIED", "LEGACY", "GCS_ONLY", "STACKDRIVER_ONLY", "CLOUD_LOGGING_ONLY", "NONE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#logging CloudbuildTrigger#logging}
        Returns:
        this
      • logStreamingOption

        @Stability(Stable)
        public CloudbuildTriggerBuildOptions.Builder logStreamingOption​(String logStreamingOption)
        Parameters:
        logStreamingOption - Option to define build log streaming behavior to Google Cloud Storage. Possible values: ["STREAM_DEFAULT", "STREAM_ON", "STREAM_OFF"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#log_streaming_option CloudbuildTrigger#log_streaming_option}
        Returns:
        this
      • machineType

        @Stability(Stable)
        public CloudbuildTriggerBuildOptions.Builder machineType​(String machineType)
        Parameters:
        machineType - Compute Engine machine type on which to run the build. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#machine_type CloudbuildTrigger#machine_type}
        Returns:
        this
      • requestedVerifyOption

        @Stability(Stable)
        public CloudbuildTriggerBuildOptions.Builder requestedVerifyOption​(String requestedVerifyOption)
        Parameters:
        requestedVerifyOption - Requested verifiability options. Possible values: ["NOT_VERIFIED", "VERIFIED"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#requested_verify_option CloudbuildTrigger#requested_verify_option}
        Returns:
        this
      • secretEnv

        @Stability(Stable)
        public CloudbuildTriggerBuildOptions.Builder secretEnv​(List<String> secretEnv)
        Parameters:
        secretEnv - A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's Secret. These variables will be available to all build steps in this build. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#secret_env CloudbuildTrigger#secret_env}
        Returns:
        this
      • sourceProvenanceHash

        @Stability(Stable)
        public CloudbuildTriggerBuildOptions.Builder sourceProvenanceHash​(List<String> sourceProvenanceHash)
        Parameters:
        sourceProvenanceHash - Requested hash for SourceProvenance. Possible values: ["NONE", "SHA256", "MD5"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#source_provenance_hash CloudbuildTrigger#source_provenance_hash}
        Returns:
        this
      • substitutionOption

        @Stability(Stable)
        public CloudbuildTriggerBuildOptions.Builder substitutionOption​(String substitutionOption)
        Parameters:
        substitutionOption - Option to specify behavior when there is an error in the substitution checks. NOTE this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file. Possible values: ["MUST_MATCH", "ALLOW_LOOSE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#substitution_option CloudbuildTrigger#substitution_option}
        Returns:
        this
      • volumes

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

        @Stability(Stable)
        public CloudbuildTriggerBuildOptions.Builder workerPool​(String workerPool)
        Parameters:
        workerPool - Option to specify a WorkerPool for the build. Format projects/{project}/workerPools/{workerPool}. This field is experimental. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#worker_pool CloudbuildTrigger#worker_pool}
        Returns:
        this