io.dekorate.openshift.config.RouteBuilder Maven / Gradle / Ivy
package io.dekorate.openshift.config;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
/**
* Generated
*/
public class RouteBuilder extends RouteFluentImpl implements VisitableBuilder{
public RouteBuilder() {
this(false);
}
public RouteBuilder(Boolean validationEnabled) {
this(new Route(), validationEnabled);
}
public RouteBuilder(RouteFluent> fluent) {
this(fluent, false);
}
public RouteBuilder(RouteFluent> fluent,Boolean validationEnabled) {
this(fluent, new Route(), validationEnabled);
}
public RouteBuilder(RouteFluent> fluent,Route instance) {
this(fluent, instance, false);
}
public RouteBuilder(RouteFluent> fluent,Route instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withExpose(instance.getExpose());
fluent.withHost(instance.getHost());
fluent.withTargetPort(instance.getTargetPort());
this.validationEnabled = validationEnabled;
}
public RouteBuilder(Route instance) {
this(instance,false);
}
public RouteBuilder(Route instance,Boolean validationEnabled) {
this.fluent = this;
this.withExpose(instance.getExpose());
this.withHost(instance.getHost());
this.withTargetPort(instance.getTargetPort());
this.validationEnabled = validationEnabled;
}
RouteFluent> fluent;
Boolean validationEnabled;
public Route build() {
Route buildable = new Route(fluent.getExpose(),fluent.getHost(),fluent.getTargetPort());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy