Class CloudSchedulerJobRetryConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_scheduler_job.CloudSchedulerJobRetryConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudSchedulerJobRetryConfig>
- Enclosing interface:
- CloudSchedulerJobRetryConfig
@Stability(Stable) public static final class CloudSchedulerJobRetryConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudSchedulerJobRetryConfig>
A builder forCloudSchedulerJobRetryConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudSchedulerJobRetryConfigbuild()Builds the configured instance.CloudSchedulerJobRetryConfig.BuildermaxBackoffDuration(String maxBackoffDuration)Sets the value ofCloudSchedulerJobRetryConfig.getMaxBackoffDuration()CloudSchedulerJobRetryConfig.BuildermaxDoublings(Number maxDoublings)Sets the value ofCloudSchedulerJobRetryConfig.getMaxDoublings()CloudSchedulerJobRetryConfig.BuildermaxRetryDuration(String maxRetryDuration)Sets the value ofCloudSchedulerJobRetryConfig.getMaxRetryDuration()CloudSchedulerJobRetryConfig.BuilderminBackoffDuration(String minBackoffDuration)Sets the value ofCloudSchedulerJobRetryConfig.getMinBackoffDuration()CloudSchedulerJobRetryConfig.BuilderretryCount(Number retryCount)Sets the value ofCloudSchedulerJobRetryConfig.getRetryCount()
-
-
-
Method Detail
-
maxBackoffDuration
@Stability(Stable) public CloudSchedulerJobRetryConfig.Builder maxBackoffDuration(String maxBackoffDuration)
Sets the value ofCloudSchedulerJobRetryConfig.getMaxBackoffDuration()- Parameters:
maxBackoffDuration- The maximum amount of time to wait before retrying a job after it fails. A duration in seconds with up to nine fractional digits, terminated by 's'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#max_backoff_duration CloudSchedulerJob#max_backoff_duration}- Returns:
this
-
maxDoublings
@Stability(Stable) public CloudSchedulerJobRetryConfig.Builder maxDoublings(Number maxDoublings)
Sets the value ofCloudSchedulerJobRetryConfig.getMaxDoublings()- Parameters:
maxDoublings- The time between retries will double maxDoublings times. A job's retry interval starts at minBackoffDuration, then doubles maxDoublings times, then increases linearly, and finally retries retries at intervals of maxBackoffDuration up to retryCount times. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#max_doublings CloudSchedulerJob#max_doublings}- Returns:
this
-
maxRetryDuration
@Stability(Stable) public CloudSchedulerJobRetryConfig.Builder maxRetryDuration(String maxRetryDuration)
Sets the value ofCloudSchedulerJobRetryConfig.getMaxRetryDuration()- Parameters:
maxRetryDuration- The time limit for retrying a failed job, measured from time when an execution was first attempted. If specified with retryCount, the job will be retried until both limits are reached. A duration in seconds with up to nine fractional digits, terminated by 's'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#max_retry_duration CloudSchedulerJob#max_retry_duration}- Returns:
this
-
minBackoffDuration
@Stability(Stable) public CloudSchedulerJobRetryConfig.Builder minBackoffDuration(String minBackoffDuration)
Sets the value ofCloudSchedulerJobRetryConfig.getMinBackoffDuration()- Parameters:
minBackoffDuration- The minimum amount of time to wait before retrying a job after it fails. A duration in seconds with up to nine fractional digits, terminated by 's'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#min_backoff_duration CloudSchedulerJob#min_backoff_duration}- Returns:
this
-
retryCount
@Stability(Stable) public CloudSchedulerJobRetryConfig.Builder retryCount(Number retryCount)
Sets the value ofCloudSchedulerJobRetryConfig.getRetryCount()- Parameters:
retryCount- The number of attempts that the system will make to run a job using the exponential backoff procedure described by maxDoublings. Values greater than 5 and negative values are not allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#retry_count CloudSchedulerJob#retry_count}- Returns:
this
-
build
@Stability(Stable) public CloudSchedulerJobRetryConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudSchedulerJobRetryConfig>- Returns:
- a new instance of
CloudSchedulerJobRetryConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-