io.kroxylicious.proxy.config.admin.AdminHttpConfigurationBuilder Maven / Gradle / Ivy
package io.kroxylicious.proxy.config.admin;
import io.kroxylicious.proxy.config.model.VisitableBuilder;
public class AdminHttpConfigurationBuilder extends AdminHttpConfigurationFluent implements VisitableBuilder{
public AdminHttpConfigurationBuilder() {
this.fluent = this;
}
public AdminHttpConfigurationBuilder(AdminHttpConfigurationFluent> fluent) {
this.fluent = fluent;
}
public AdminHttpConfigurationBuilder(AdminHttpConfigurationFluent> fluent,AdminHttpConfiguration instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public AdminHttpConfigurationBuilder(AdminHttpConfiguration instance) {
this.fluent = this;
this.copyInstance(instance);
}
AdminHttpConfigurationFluent> fluent;
public AdminHttpConfiguration build() {
AdminHttpConfiguration buildable = new AdminHttpConfiguration(fluent.getHost(),fluent.getPort(),fluent.buildEndpoints());
return buildable;
}
}