@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2021-01-04T09:55:14.976Z[Etc/UTC]") public class V1JobSpec extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS |
static String |
SERIALIZED_NAME_BACKOFF_LIMIT |
static String |
SERIALIZED_NAME_COMPLETIONS |
static String |
SERIALIZED_NAME_MANUAL_SELECTOR |
static String |
SERIALIZED_NAME_PARALLELISM |
static String |
SERIALIZED_NAME_SELECTOR |
static String |
SERIALIZED_NAME_TEMPLATE |
static String |
SERIALIZED_NAME_TTL_SECONDS_AFTER_FINISHED |
Constructor and Description |
---|
V1JobSpec() |
Modifier and Type | Method and Description |
---|---|
V1JobSpec |
activeDeadlineSeconds(Long activeDeadlineSeconds) |
V1JobSpec |
backoffLimit(Integer backoffLimit) |
V1JobSpec |
completions(Integer completions) |
boolean |
equals(Object o) |
Long |
getActiveDeadlineSeconds()
Specifies the duration in seconds relative to the startTime that the job may be active before
the system tries to terminate it; value must be positive integer
|
Integer |
getBackoffLimit()
Specifies the number of retries before marking this job failed.
|
Integer |
getCompletions()
Specifies the desired number of successfully finished pods the job should be run with.
|
Boolean |
getManualSelector()
manualSelector controls generation of pod labels and pod selectors.
|
Integer |
getParallelism()
Specifies the maximum desired number of pods the job should run at any given time.
|
V1LabelSelector |
getSelector()
Get selector
|
V1PodTemplateSpec |
getTemplate()
Get template
|
Integer |
getTtlSecondsAfterFinished()
ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either
Complete or Failed).
|
int |
hashCode() |
V1JobSpec |
manualSelector(Boolean manualSelector) |
V1JobSpec |
parallelism(Integer parallelism) |
V1JobSpec |
selector(V1LabelSelector selector) |
void |
setActiveDeadlineSeconds(Long activeDeadlineSeconds) |
void |
setBackoffLimit(Integer backoffLimit) |
void |
setCompletions(Integer completions) |
void |
setManualSelector(Boolean manualSelector) |
void |
setParallelism(Integer parallelism) |
void |
setSelector(V1LabelSelector selector) |
void |
setTemplate(V1PodTemplateSpec template) |
void |
setTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished) |
V1JobSpec |
template(V1PodTemplateSpec template) |
String |
toString() |
V1JobSpec |
ttlSecondsAfterFinished(Integer ttlSecondsAfterFinished) |
public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS
public static final String SERIALIZED_NAME_BACKOFF_LIMIT
public static final String SERIALIZED_NAME_COMPLETIONS
public static final String SERIALIZED_NAME_MANUAL_SELECTOR
public static final String SERIALIZED_NAME_PARALLELISM
public static final String SERIALIZED_NAME_SELECTOR
public static final String SERIALIZED_NAME_TEMPLATE
public static final String SERIALIZED_NAME_TTL_SECONDS_AFTER_FINISHED
@Nullable public Long getActiveDeadlineSeconds()
public void setActiveDeadlineSeconds(Long activeDeadlineSeconds)
@Nullable public Integer getBackoffLimit()
public void setBackoffLimit(Integer backoffLimit)
@Nullable public Integer getCompletions()
public void setCompletions(Integer completions)
@Nullable public Boolean getManualSelector()
public void setManualSelector(Boolean manualSelector)
@Nullable public Integer getParallelism()
public void setParallelism(Integer parallelism)
public V1JobSpec selector(V1LabelSelector selector)
@Nullable public V1LabelSelector getSelector()
public void setSelector(V1LabelSelector selector)
public V1JobSpec template(V1PodTemplateSpec template)
public V1PodTemplateSpec getTemplate()
public void setTemplate(V1PodTemplateSpec template)
@Nullable public Integer getTtlSecondsAfterFinished()
public void setTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished)
Copyright © 2021. All rights reserved.