Package net.stickycode.kuuty.model.v18
Class IoK8sApiBatchV2alpha1CronJobSpec
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiBatchV2alpha1CronJobSpec
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiBatchV2alpha1CronJobSpec extends Object
CronJobSpec describes how the job execution will look like and when it will actually run.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONCURRENCY_POLICYstatic StringJSON_PROPERTY_FAILED_JOBS_HISTORY_LIMITstatic StringJSON_PROPERTY_JOB_TEMPLATEstatic StringJSON_PROPERTY_SCHEDULEstatic StringJSON_PROPERTY_STARTING_DEADLINE_SECONDSstatic StringJSON_PROPERTY_SUCCESSFUL_JOBS_HISTORY_LIMITstatic StringJSON_PROPERTY_SUSPEND
-
Constructor Summary
Constructors Constructor Description IoK8sApiBatchV2alpha1CronJobSpec()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_CONCURRENCY_POLICY
public static final String JSON_PROPERTY_CONCURRENCY_POLICY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FAILED_JOBS_HISTORY_LIMIT
public static final String JSON_PROPERTY_FAILED_JOBS_HISTORY_LIMIT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_JOB_TEMPLATE
public static final String JSON_PROPERTY_JOB_TEMPLATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCHEDULE
public static final String JSON_PROPERTY_SCHEDULE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STARTING_DEADLINE_SECONDS
public static final String JSON_PROPERTY_STARTING_DEADLINE_SECONDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUCCESSFUL_JOBS_HISTORY_LIMIT
public static final String JSON_PROPERTY_SUCCESSFUL_JOBS_HISTORY_LIMIT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUSPEND
public static final String JSON_PROPERTY_SUSPEND
- See Also:
- Constant Field Values
-
-
Method Detail
-
concurrencyPolicy
public IoK8sApiBatchV2alpha1CronJobSpec concurrencyPolicy(String concurrencyPolicy)
-
getConcurrencyPolicy
@Nullable public String getConcurrencyPolicy()
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:
- concurrencyPolicy
-
setConcurrencyPolicy
public void setConcurrencyPolicy(String concurrencyPolicy)
-
failedJobsHistoryLimit
public IoK8sApiBatchV2alpha1CronJobSpec failedJobsHistoryLimit(Integer failedJobsHistoryLimit)
-
getFailedJobsHistoryLimit
@Nullable public Integer getFailedJobsHistoryLimit()
The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.- Returns:
- failedJobsHistoryLimit
-
setFailedJobsHistoryLimit
public void setFailedJobsHistoryLimit(Integer failedJobsHistoryLimit)
-
jobTemplate
public IoK8sApiBatchV2alpha1CronJobSpec jobTemplate(IoK8sApiBatchV2alpha1JobTemplateSpec jobTemplate)
-
getJobTemplate
public IoK8sApiBatchV2alpha1JobTemplateSpec getJobTemplate()
Get jobTemplate- Returns:
- jobTemplate
-
setJobTemplate
public void setJobTemplate(IoK8sApiBatchV2alpha1JobTemplateSpec jobTemplate)
-
schedule
public IoK8sApiBatchV2alpha1CronJobSpec schedule(String schedule)
-
getSchedule
public String getSchedule()
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.- Returns:
- schedule
-
setSchedule
public void setSchedule(String schedule)
-
startingDeadlineSeconds
public IoK8sApiBatchV2alpha1CronJobSpec startingDeadlineSeconds(Long startingDeadlineSeconds)
-
getStartingDeadlineSeconds
@Nullable public Long getStartingDeadlineSeconds()
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:
- startingDeadlineSeconds
-
setStartingDeadlineSeconds
public void setStartingDeadlineSeconds(Long startingDeadlineSeconds)
-
successfulJobsHistoryLimit
public IoK8sApiBatchV2alpha1CronJobSpec successfulJobsHistoryLimit(Integer successfulJobsHistoryLimit)
-
getSuccessfulJobsHistoryLimit
@Nullable public Integer getSuccessfulJobsHistoryLimit()
The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.- Returns:
- successfulJobsHistoryLimit
-
setSuccessfulJobsHistoryLimit
public void setSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit)
-
suspend
public IoK8sApiBatchV2alpha1CronJobSpec suspend(Boolean suspend)
-
getSuspend
@Nullable public Boolean getSuspend()
This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.- Returns:
- suspend
-
setSuspend
public void setSuspend(Boolean suspend)
-
-