io.fabric8.knative.flows.v1.ParallelSpecBuilder Maven / Gradle / Ivy
package io.fabric8.knative.flows.v1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class ParallelSpecBuilder extends ParallelSpecFluentImpl implements VisitableBuilder{
public ParallelSpecBuilder() {
this(false);
}
public ParallelSpecBuilder(Boolean validationEnabled) {
this(new ParallelSpec(), validationEnabled);
}
public ParallelSpecBuilder(ParallelSpecFluent> fluent) {
this(fluent, false);
}
public ParallelSpecBuilder(io.fabric8.knative.flows.v1.ParallelSpecFluent> fluent,java.lang.Boolean validationEnabled) {
this(fluent, new ParallelSpec(), validationEnabled);
}
public ParallelSpecBuilder(io.fabric8.knative.flows.v1.ParallelSpecFluent> fluent,io.fabric8.knative.flows.v1.ParallelSpec instance) {
this(fluent, instance, false);
}
public ParallelSpecBuilder(io.fabric8.knative.flows.v1.ParallelSpecFluent> fluent,io.fabric8.knative.flows.v1.ParallelSpec instance,java.lang.Boolean validationEnabled) {
this.fluent = fluent;
fluent.withBranches(instance.getBranches());
fluent.withChannelTemplate(instance.getChannelTemplate());
fluent.withReply(instance.getReply());
this.validationEnabled = validationEnabled;
}
public ParallelSpecBuilder(io.fabric8.knative.flows.v1.ParallelSpec instance) {
this(instance,false);
}
public ParallelSpecBuilder(io.fabric8.knative.flows.v1.ParallelSpec instance,java.lang.Boolean validationEnabled) {
this.fluent = this;
this.withBranches(instance.getBranches());
this.withChannelTemplate(instance.getChannelTemplate());
this.withReply(instance.getReply());
this.validationEnabled = validationEnabled;
}
io.fabric8.knative.flows.v1.ParallelSpecFluent> fluent;
java.lang.Boolean validationEnabled;
public io.fabric8.knative.flows.v1.ParallelSpec build() {
ParallelSpec buildable = new ParallelSpec(fluent.getBranches(),fluent.getChannelTemplate(),fluent.getReply());
return buildable;
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy