Class CloudSchedulerJobRetryConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • maxBackoffDuration

        @Stability(Stable)
        public CloudSchedulerJobRetryConfig.Builder maxBackoffDuration​(String maxBackoffDuration)
        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)
        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)
        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)
        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)
        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