io.fabric8.knative.messaging.v1.ChannelSpecBuilder Maven / Gradle / Ivy
package io.fabric8.knative.messaging.v1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class ChannelSpecBuilder extends ChannelSpecFluent implements VisitableBuilder{
public ChannelSpecBuilder() {
this(false);
}
public ChannelSpecBuilder(Boolean validationEnabled) {
this(new ChannelSpec(), validationEnabled);
}
public ChannelSpecBuilder(ChannelSpecFluent> fluent) {
this(fluent, false);
}
public ChannelSpecBuilder(ChannelSpecFluent> fluent,Boolean validationEnabled) {
this(fluent, new ChannelSpec(), validationEnabled);
}
public ChannelSpecBuilder(ChannelSpecFluent> fluent,ChannelSpec instance) {
this(fluent, instance, false);
}
public ChannelSpecBuilder(ChannelSpecFluent> fluent,ChannelSpec instance,Boolean validationEnabled) {
this.fluent = fluent;
instance = (instance != null ? instance : new ChannelSpec());
if (instance != null) {
fluent.withChannelTemplate(instance.getChannelTemplate());
fluent.withDelivery(instance.getDelivery());
fluent.withSubscribers(instance.getSubscribers());
fluent.withChannelTemplate(instance.getChannelTemplate());
fluent.withDelivery(instance.getDelivery());
fluent.withSubscribers(instance.getSubscribers());
}
this.validationEnabled = validationEnabled;
}
public ChannelSpecBuilder(ChannelSpec instance) {
this(instance,false);
}
public ChannelSpecBuilder(ChannelSpec instance,Boolean validationEnabled) {
this.fluent = this;
instance = (instance != null ? instance : new ChannelSpec());
if (instance != null) {
this.withChannelTemplate(instance.getChannelTemplate());
this.withDelivery(instance.getDelivery());
this.withSubscribers(instance.getSubscribers());
this.withChannelTemplate(instance.getChannelTemplate());
this.withDelivery(instance.getDelivery());
this.withSubscribers(instance.getSubscribers());
}
this.validationEnabled = validationEnabled;
}
ChannelSpecFluent> fluent;
Boolean validationEnabled;
public ChannelSpec build() {
ChannelSpec buildable = new ChannelSpec(fluent.buildChannelTemplate(),fluent.buildDelivery(),fluent.buildSubscribers());
return buildable;
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy