Package net.stickycode.kuuty.model.v18
Class IoK8sApiBatchV1beta1CronJobSpec
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiBatchV1beta1CronJobSpec
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiBatchV1beta1CronJobSpec 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 IoK8sApiBatchV1beta1CronJobSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoK8sApiBatchV1beta1CronJobSpecconcurrencyPolicy(String concurrencyPolicy)booleanequals(Object o)IoK8sApiBatchV1beta1CronJobSpecfailedJobsHistoryLimit(Integer failedJobsHistoryLimit)StringgetConcurrencyPolicy()Specifies how to treat concurrent executions of a Job.IntegergetFailedJobsHistoryLimit()The number of failed finished jobs to retain.IoK8sApiBatchV1beta1JobTemplateSpecgetJobTemplate()Get jobTemplateStringgetSchedule()The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.LonggetStartingDeadlineSeconds()Optional deadline in seconds for starting the job if it misses scheduled time for any reason.IntegergetSuccessfulJobsHistoryLimit()The number of successful finished jobs to retain.BooleangetSuspend()This flag tells the controller to suspend subsequent executions, it does not apply to already started executions.inthashCode()IoK8sApiBatchV1beta1CronJobSpecjobTemplate(IoK8sApiBatchV1beta1JobTemplateSpec jobTemplate)IoK8sApiBatchV1beta1CronJobSpecschedule(String schedule)voidsetConcurrencyPolicy(String concurrencyPolicy)voidsetFailedJobsHistoryLimit(Integer failedJobsHistoryLimit)voidsetJobTemplate(IoK8sApiBatchV1beta1JobTemplateSpec jobTemplate)voidsetSchedule(String schedule)voidsetStartingDeadlineSeconds(Long startingDeadlineSeconds)voidsetSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit)voidsetSuspend(Boolean suspend)IoK8sApiBatchV1beta1CronJobSpecstartingDeadlineSeconds(Long startingDeadlineSeconds)IoK8sApiBatchV1beta1CronJobSpecsuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit)IoK8sApiBatchV1beta1CronJobSpecsuspend(Boolean suspend)StringtoString()
-
-
-
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 IoK8sApiBatchV1beta1CronJobSpec 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 IoK8sApiBatchV1beta1CronJobSpec 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. Defaults to 1.- Returns:
- failedJobsHistoryLimit
-
setFailedJobsHistoryLimit
public void setFailedJobsHistoryLimit(Integer failedJobsHistoryLimit)
-
jobTemplate
public IoK8sApiBatchV1beta1CronJobSpec jobTemplate(IoK8sApiBatchV1beta1JobTemplateSpec jobTemplate)
-
getJobTemplate
public IoK8sApiBatchV1beta1JobTemplateSpec getJobTemplate()
Get jobTemplate- Returns:
- jobTemplate
-
setJobTemplate
public void setJobTemplate(IoK8sApiBatchV1beta1JobTemplateSpec jobTemplate)
-
schedule
public IoK8sApiBatchV1beta1CronJobSpec 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 IoK8sApiBatchV1beta1CronJobSpec 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 IoK8sApiBatchV1beta1CronJobSpec 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. Defaults to 3.- Returns:
- successfulJobsHistoryLimit
-
setSuccessfulJobsHistoryLimit
public void setSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit)
-
suspend
public IoK8sApiBatchV1beta1CronJobSpec 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)
-
-