io.dekorate.prometheus.config.ServiceMonitorConfigBuilder Maven / Gradle / Ivy
package io.dekorate.prometheus.config;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
/**
* Generated
*/
public class ServiceMonitorConfigBuilder extends ServiceMonitorConfigFluent implements VisitableBuilder{
public ServiceMonitorConfigBuilder() {
this(new ServiceMonitorConfig());
}
public ServiceMonitorConfigBuilder(ServiceMonitorConfigFluent> fluent) {
this(fluent, new ServiceMonitorConfig());
}
public ServiceMonitorConfigBuilder(ServiceMonitorConfigFluent> fluent,ServiceMonitorConfig instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public ServiceMonitorConfigBuilder(ServiceMonitorConfig instance) {
this.fluent = this;
this.copyInstance(instance);
}
ServiceMonitorConfigFluent> fluent;
public EditableServiceMonitorConfig build() {
EditableServiceMonitorConfig buildable = new EditableServiceMonitorConfig(fluent.buildProject(),fluent.getAttributes(),fluent.getPort(),fluent.getPath(),fluent.getInterval(),fluent.getHonorLabels());
return buildable;
}
}