Class ClouddeployTargetExecutionConfigs.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.clouddeploy_target.ClouddeployTargetExecutionConfigs.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClouddeployTargetExecutionConfigs>
- Enclosing interface:
- ClouddeployTargetExecutionConfigs
@Stability(Stable) public static final class ClouddeployTargetExecutionConfigs.Builder extends Object implements software.amazon.jsii.Builder<ClouddeployTargetExecutionConfigs>
A builder forClouddeployTargetExecutionConfigs
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
usages
@Stability(Stable) public ClouddeployTargetExecutionConfigs.Builder usages(List<String> usages)
Sets the value ofClouddeployTargetExecutionConfigs.getUsages()- Parameters:
usages- Required. Usages when this configuration should be applied. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#usages ClouddeployTarget#usages}- Returns:
this
-
artifactStorage
@Stability(Stable) public ClouddeployTargetExecutionConfigs.Builder artifactStorage(String artifactStorage)
Sets the value ofClouddeployTargetExecutionConfigs.getArtifactStorage()- Parameters:
artifactStorage- Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#artifact_storage ClouddeployTarget#artifact_storage}- Returns:
this
-
executionTimeout
@Stability(Stable) public ClouddeployTargetExecutionConfigs.Builder executionTimeout(String executionTimeout)
Sets the value ofClouddeployTargetExecutionConfigs.getExecutionTimeout()- Parameters:
executionTimeout- Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#execution_timeout ClouddeployTarget#execution_timeout}- Returns:
this
-
serviceAccount
@Stability(Stable) public ClouddeployTargetExecutionConfigs.Builder serviceAccount(String serviceAccount)
Sets the value ofClouddeployTargetExecutionConfigs.getServiceAccount()- Parameters:
serviceAccount- Optional. Google service account to use for execution. If unspecified, the project execution service account (-compute@developer.gserviceaccount.com) is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#service_account ClouddeployTarget#service_account}- Returns:
this
-
verbose
@Stability(Stable) public ClouddeployTargetExecutionConfigs.Builder verbose(Boolean verbose)
Sets the value ofClouddeployTargetExecutionConfigs.getVerbose()- Parameters:
verbose- Optional. If true, additional logging will be enabled when running builds in this execution environment. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#verbose ClouddeployTarget#verbose}- Returns:
this
-
verbose
@Stability(Stable) public ClouddeployTargetExecutionConfigs.Builder verbose(com.hashicorp.cdktf.IResolvable verbose)
Sets the value ofClouddeployTargetExecutionConfigs.getVerbose()- Parameters:
verbose- Optional. If true, additional logging will be enabled when running builds in this execution environment. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#verbose ClouddeployTarget#verbose}- Returns:
this
-
workerPool
@Stability(Stable) public ClouddeployTargetExecutionConfigs.Builder workerPool(String workerPool)
Sets the value ofClouddeployTargetExecutionConfigs.getWorkerPool()- Parameters:
workerPool- Optional. The resource name of the `WorkerPool`, with the format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. If this optional field is unspecified, the default Cloud Build pool will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#worker_pool ClouddeployTarget#worker_pool}- Returns:
this
-
build
@Stability(Stable) public ClouddeployTargetExecutionConfigs build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClouddeployTargetExecutionConfigs>- Returns:
- a new instance of
ClouddeployTargetExecutionConfigs - Throws:
NullPointerException- if any required attribute was not provided
-
-