io.dekorate.prometheus.model.ServiceMonitorBuilder Maven / Gradle / Ivy
package io.dekorate.prometheus.model;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ServiceMonitorBuilder extends ServiceMonitorFluent implements VisitableBuilder{
public ServiceMonitorBuilder() {
this(new ServiceMonitor());
}
public ServiceMonitorBuilder(ServiceMonitorFluent> fluent) {
this(fluent, new ServiceMonitor());
}
public ServiceMonitorBuilder(ServiceMonitorFluent> fluent,ServiceMonitor instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public ServiceMonitorBuilder(ServiceMonitor instance) {
this.fluent = this;
this.copyInstance(instance);
}
ServiceMonitorFluent> fluent;
public ServiceMonitor build() {
ServiceMonitor buildable = new ServiceMonitor(fluent.getApiVersion(),fluent.getKind(),fluent.buildMetadata(),fluent.buildSpec(),fluent.getAdditionalProperties());
return buildable;
}
}