io.github.microcks.operator.api.model.IngressSpecBuilder Maven / Gradle / Ivy
package io.github.microcks.operator.api.model;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class IngressSpecBuilder extends IngressSpecFluent implements VisitableBuilder{
public IngressSpecBuilder() {
this(new IngressSpec());
}
public IngressSpecBuilder(IngressSpecFluent> fluent) {
this(fluent, new IngressSpec());
}
public IngressSpecBuilder(IngressSpecFluent> fluent,IngressSpec instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public IngressSpecBuilder(IngressSpec instance) {
this.fluent = this;
this.copyInstance(instance);
}
IngressSpecFluent> fluent;
public IngressSpec build() {
IngressSpec buildable = new IngressSpec();
buildable.setExpose(fluent.isExpose());
buildable.setClassName(fluent.getClassName());
buildable.setGenerateCert(fluent.isGenerateCert());
buildable.setSecretRef(fluent.getSecretRef());
buildable.setAnnotations(fluent.getAnnotations());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy