Class CloudTasksQueueRetryConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_tasks_queue.CloudTasksQueueRetryConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudTasksQueueRetryConfig>
- Enclosing interface:
- CloudTasksQueueRetryConfig
@Stability(Stable) public static final class CloudTasksQueueRetryConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudTasksQueueRetryConfig>
A builder forCloudTasksQueueRetryConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudTasksQueueRetryConfigbuild()Builds the configured instance.CloudTasksQueueRetryConfig.BuildermaxAttempts(Number maxAttempts)Sets the value ofCloudTasksQueueRetryConfig.getMaxAttempts()CloudTasksQueueRetryConfig.BuildermaxBackoff(String maxBackoff)Sets the value ofCloudTasksQueueRetryConfig.getMaxBackoff()CloudTasksQueueRetryConfig.BuildermaxDoublings(Number maxDoublings)Sets the value ofCloudTasksQueueRetryConfig.getMaxDoublings()CloudTasksQueueRetryConfig.BuildermaxRetryDuration(String maxRetryDuration)Sets the value ofCloudTasksQueueRetryConfig.getMaxRetryDuration()CloudTasksQueueRetryConfig.BuilderminBackoff(String minBackoff)Sets the value ofCloudTasksQueueRetryConfig.getMinBackoff()
-
-
-
Method Detail
-
maxAttempts
@Stability(Stable) public CloudTasksQueueRetryConfig.Builder maxAttempts(Number maxAttempts)
Sets the value ofCloudTasksQueueRetryConfig.getMaxAttempts()- Parameters:
maxAttempts- Number of attempts per task. Cloud Tasks will attempt the task maxAttempts times (that is, if the first attempt fails, then there will be maxAttempts - 1 retries). Must be >= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_tasks_queue#max_attempts CloudTasksQueue#max_attempts}- Returns:
this
-
maxBackoff
@Stability(Stable) public CloudTasksQueueRetryConfig.Builder maxBackoff(String maxBackoff)
Sets the value ofCloudTasksQueueRetryConfig.getMaxBackoff()- Parameters:
maxBackoff- A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails, if the queue's RetryConfig specifies that the task should be retried. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_tasks_queue#max_backoff CloudTasksQueue#max_backoff}- Returns:
this
-
maxDoublings
@Stability(Stable) public CloudTasksQueueRetryConfig.Builder maxDoublings(Number maxDoublings)
Sets the value ofCloudTasksQueueRetryConfig.getMaxDoublings()- Parameters:
maxDoublings- The time between retries will double maxDoublings times. A task's retry interval starts at minBackoff, then doubles maxDoublings times, then increases linearly, and finally retries retries at intervals of maxBackoff up to maxAttempts times. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_tasks_queue#max_doublings CloudTasksQueue#max_doublings}- Returns:
this
-
maxRetryDuration
@Stability(Stable) public CloudTasksQueueRetryConfig.Builder maxRetryDuration(String maxRetryDuration)
Sets the value ofCloudTasksQueueRetryConfig.getMaxRetryDuration()- Parameters:
maxRetryDuration- If positive, maxRetryDuration specifies the time limit for retrying a failed task, measured from when the task was first attempted. Once maxRetryDuration time has passed and the task has been attempted maxAttempts times, no further attempts will be made and the task will be deleted. If zero, then the task age is unlimited. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_tasks_queue#max_retry_duration CloudTasksQueue#max_retry_duration}- Returns:
this
-
minBackoff
@Stability(Stable) public CloudTasksQueueRetryConfig.Builder minBackoff(String minBackoff)
Sets the value ofCloudTasksQueueRetryConfig.getMinBackoff()- Parameters:
minBackoff- A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails, if the queue's RetryConfig specifies that the task should be retried. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_tasks_queue#min_backoff CloudTasksQueue#min_backoff}- Returns:
this
-
build
@Stability(Stable) public CloudTasksQueueRetryConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudTasksQueueRetryConfig>- Returns:
- a new instance of
CloudTasksQueueRetryConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-