Class CloudbuildTriggerBuild.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_trigger.CloudbuildTriggerBuild.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildTriggerBuild>
- Enclosing interface:
- CloudbuildTriggerBuild
@Stability(Stable) public static final class CloudbuildTriggerBuild.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildTriggerBuild>
A builder forCloudbuildTriggerBuild
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
step
@Stability(Stable) public CloudbuildTriggerBuild.Builder step(com.hashicorp.cdktf.IResolvable step)
Sets the value ofCloudbuildTriggerBuild.getStep()- 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
-
step
@Stability(Stable) public CloudbuildTriggerBuild.Builder step(List<? extends CloudbuildTriggerBuildStep> step)
Sets the value ofCloudbuildTriggerBuild.getStep()- 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
-
artifacts
@Stability(Stable) public CloudbuildTriggerBuild.Builder artifacts(CloudbuildTriggerBuildArtifacts artifacts)
Sets the value ofCloudbuildTriggerBuild.getArtifacts()- Parameters:
artifacts- artifacts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#artifacts CloudbuildTrigger#artifacts}- Returns:
this
-
availableSecrets
@Stability(Stable) public CloudbuildTriggerBuild.Builder availableSecrets(CloudbuildTriggerBuildAvailableSecrets availableSecrets)
Sets the value ofCloudbuildTriggerBuild.getAvailableSecrets()- Parameters:
availableSecrets- available_secrets block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#available_secrets CloudbuildTrigger#available_secrets}- Returns:
this
-
images
@Stability(Stable) public CloudbuildTriggerBuild.Builder images(List<String> images)
Sets the value ofCloudbuildTriggerBuild.getImages()- 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)
Sets the value ofCloudbuildTriggerBuild.getLogsBucket()- 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
-
options
@Stability(Stable) public CloudbuildTriggerBuild.Builder options(CloudbuildTriggerBuildOptions options)
Sets the value ofCloudbuildTriggerBuild.getOptions()- Parameters:
options- options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#options CloudbuildTrigger#options}- Returns:
this
-
queueTtl
@Stability(Stable) public CloudbuildTriggerBuild.Builder queueTtl(String queueTtl)
Sets the value ofCloudbuildTriggerBuild.getQueueTtl()- 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)
Sets the value ofCloudbuildTriggerBuild.getSecret()- 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
-
secret
@Stability(Stable) public CloudbuildTriggerBuild.Builder secret(List<? extends CloudbuildTriggerBuildSecret> secret)
Sets the value ofCloudbuildTriggerBuild.getSecret()- 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
-
source
@Stability(Stable) public CloudbuildTriggerBuild.Builder source(CloudbuildTriggerBuildSource source)
Sets the value ofCloudbuildTriggerBuild.getSource()- Parameters:
source- source block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#source CloudbuildTrigger#source}- Returns:
this
-
substitutions
@Stability(Stable) public CloudbuildTriggerBuild.Builder substitutions(Map<String,String> substitutions)
Sets the value ofCloudbuildTriggerBuild.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 CloudbuildTriggerBuild.Builder tags(List<String> tags)
Sets the value ofCloudbuildTriggerBuild.getTags()- 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)
Sets the value ofCloudbuildTriggerBuild.getTimeout()- 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
-
build
@Stability(Stable) public CloudbuildTriggerBuild build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildTriggerBuild>- Returns:
- a new instance of
CloudbuildTriggerBuild - Throws:
NullPointerException- if any required attribute was not provided
-
-