io.strimzi.api.kafka.model.common.ProbeBuilder Maven / Gradle / Ivy
package io.strimzi.api.kafka.model.common;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ProbeBuilder extends ProbeFluent implements VisitableBuilder{
public ProbeBuilder() {
this(new Probe());
}
public ProbeBuilder(ProbeFluent> fluent) {
this(fluent, new Probe());
}
public ProbeBuilder(ProbeFluent> fluent,Probe instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public ProbeBuilder(Probe instance) {
this.fluent = this;
this.copyInstance(instance);
}
ProbeFluent> fluent;
public Probe build() {
Probe buildable = new Probe(fluent.getInitialDelaySeconds(),fluent.getTimeoutSeconds());
buildable.setPeriodSeconds(fluent.getPeriodSeconds());
buildable.setSuccessThreshold(fluent.getSuccessThreshold());
buildable.setFailureThreshold(fluent.getFailureThreshold());
return buildable;
}
}