Class CronJobSpecPatchArgs.Builder

  • Enclosing class:
    CronJobSpecPatchArgs

    public static final class CronJobSpecPatchArgs.Builder
    extends java.lang.Object
    • Method Detail

      • concurrencyPolicy

        public CronJobSpecPatchArgs.Builder concurrencyPolicy​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> concurrencyPolicy)
        Parameters:
        concurrencyPolicy - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one
        Returns:
        builder
      • concurrencyPolicy

        public CronJobSpecPatchArgs.Builder concurrencyPolicy​(java.lang.String concurrencyPolicy)
        Parameters:
        concurrencyPolicy - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one
        Returns:
        builder
      • failedJobsHistoryLimit

        public CronJobSpecPatchArgs.Builder failedJobsHistoryLimit​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.Integer> failedJobsHistoryLimit)
        Parameters:
        failedJobsHistoryLimit - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
        Returns:
        builder
      • failedJobsHistoryLimit

        public CronJobSpecPatchArgs.Builder failedJobsHistoryLimit​(java.lang.Integer failedJobsHistoryLimit)
        Parameters:
        failedJobsHistoryLimit - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
        Returns:
        builder
      • schedule

        public CronJobSpecPatchArgs.Builder schedule​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> schedule)
        Parameters:
        schedule - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
        Returns:
        builder
      • schedule

        public CronJobSpecPatchArgs.Builder schedule​(java.lang.String schedule)
        Parameters:
        schedule - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
        Returns:
        builder
      • startingDeadlineSeconds

        public CronJobSpecPatchArgs.Builder startingDeadlineSeconds​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.Integer> startingDeadlineSeconds)
        Parameters:
        startingDeadlineSeconds - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.
        Returns:
        builder
      • startingDeadlineSeconds

        public CronJobSpecPatchArgs.Builder startingDeadlineSeconds​(java.lang.Integer startingDeadlineSeconds)
        Parameters:
        startingDeadlineSeconds - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.
        Returns:
        builder
      • successfulJobsHistoryLimit

        public CronJobSpecPatchArgs.Builder successfulJobsHistoryLimit​(@Nullable
                                                                       com.pulumi.core.Output<java.lang.Integer> successfulJobsHistoryLimit)
        Parameters:
        successfulJobsHistoryLimit - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.
        Returns:
        builder
      • successfulJobsHistoryLimit

        public CronJobSpecPatchArgs.Builder successfulJobsHistoryLimit​(java.lang.Integer successfulJobsHistoryLimit)
        Parameters:
        successfulJobsHistoryLimit - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.
        Returns:
        builder
      • suspend

        public CronJobSpecPatchArgs.Builder suspend​(@Nullable
                                                    com.pulumi.core.Output<java.lang.Boolean> suspend)
        Parameters:
        suspend - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.
        Returns:
        builder
      • suspend

        public CronJobSpecPatchArgs.Builder suspend​(java.lang.Boolean suspend)
        Parameters:
        suspend - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.
        Returns:
        builder
      • timeZone

        public CronJobSpecPatchArgs.Builder timeZone​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> timeZone)
        Parameters:
        timeZone - The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate.
        Returns:
        builder
      • timeZone

        public CronJobSpecPatchArgs.Builder timeZone​(java.lang.String timeZone)
        Parameters:
        timeZone - The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate.
        Returns:
        builder