Class CloudTasksQueueRateLimits.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_tasks_queue.CloudTasksQueueRateLimits.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudTasksQueueRateLimits>
- Enclosing interface:
- CloudTasksQueueRateLimits
@Stability(Stable) public static final class CloudTasksQueueRateLimits.Builder extends Object implements software.amazon.jsii.Builder<CloudTasksQueueRateLimits>
A builder forCloudTasksQueueRateLimits
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudTasksQueueRateLimitsbuild()Builds the configured instance.CloudTasksQueueRateLimits.BuildermaxConcurrentDispatches(Number maxConcurrentDispatches)Sets the value ofCloudTasksQueueRateLimits.getMaxConcurrentDispatches()CloudTasksQueueRateLimits.BuildermaxDispatchesPerSecond(Number maxDispatchesPerSecond)Sets the value ofCloudTasksQueueRateLimits.getMaxDispatchesPerSecond()
-
-
-
Method Detail
-
maxConcurrentDispatches
@Stability(Stable) public CloudTasksQueueRateLimits.Builder maxConcurrentDispatches(Number maxConcurrentDispatches)
Sets the value ofCloudTasksQueueRateLimits.getMaxConcurrentDispatches()- Parameters:
maxConcurrentDispatches- The maximum number of concurrent tasks that Cloud Tasks allows to be dispatched for this queue. After this threshold has been reached, Cloud Tasks stops dispatching tasks until the number of concurrent requests decreases. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_tasks_queue#max_concurrent_dispatches CloudTasksQueue#max_concurrent_dispatches}- Returns:
this
-
maxDispatchesPerSecond
@Stability(Stable) public CloudTasksQueueRateLimits.Builder maxDispatchesPerSecond(Number maxDispatchesPerSecond)
Sets the value ofCloudTasksQueueRateLimits.getMaxDispatchesPerSecond()- Parameters:
maxDispatchesPerSecond- The maximum rate at which tasks are dispatched from this queue. If unspecified when the queue is created, Cloud Tasks will pick the default. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_tasks_queue#max_dispatches_per_second CloudTasksQueue#max_dispatches_per_second}- Returns:
this
-
build
@Stability(Stable) public CloudTasksQueueRateLimits build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudTasksQueueRateLimits>- Returns:
- a new instance of
CloudTasksQueueRateLimits - Throws:
NullPointerException- if any required attribute was not provided
-
-