io.kubernetes.client.openapi.models.V1JobSpecBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
public class V1JobSpecBuilder extends V1JobSpecFluent implements VisitableBuilder{
public V1JobSpecBuilder() {
this(new V1JobSpec());
}
public V1JobSpecBuilder(V1JobSpecFluent> fluent) {
this(fluent, new V1JobSpec());
}
public V1JobSpecBuilder(V1JobSpecFluent> fluent,V1JobSpec instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public V1JobSpecBuilder(V1JobSpec instance) {
this.fluent = this;
this.copyInstance(instance);
}
V1JobSpecFluent> fluent;
public V1JobSpec build() {
V1JobSpec buildable = new V1JobSpec();
buildable.setActiveDeadlineSeconds(fluent.getActiveDeadlineSeconds());
buildable.setBackoffLimit(fluent.getBackoffLimit());
buildable.setBackoffLimitPerIndex(fluent.getBackoffLimitPerIndex());
buildable.setCompletionMode(fluent.getCompletionMode());
buildable.setCompletions(fluent.getCompletions());
buildable.setManagedBy(fluent.getManagedBy());
buildable.setManualSelector(fluent.getManualSelector());
buildable.setMaxFailedIndexes(fluent.getMaxFailedIndexes());
buildable.setParallelism(fluent.getParallelism());
buildable.setPodFailurePolicy(fluent.buildPodFailurePolicy());
buildable.setPodReplacementPolicy(fluent.getPodReplacementPolicy());
buildable.setSelector(fluent.buildSelector());
buildable.setSuccessPolicy(fluent.buildSuccessPolicy());
buildable.setSuspend(fluent.getSuspend());
buildable.setTemplate(fluent.buildTemplate());
buildable.setTtlSecondsAfterFinished(fluent.getTtlSecondsAfterFinished());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy