io.dekorate.prometheus.model.DoneableServiceMonitor Maven / Gradle / Ivy
package io.dekorate.prometheus.model;
import io.dekorate.deps.kubernetes.api.builder.Function;
import io.dekorate.deps.kubernetes.api.model.Doneable;
public class DoneableServiceMonitor extends ServiceMonitorFluentImpl implements Doneable{
private final ServiceMonitorBuilder builder;
private final io.dekorate.deps.kubernetes.api.builder.Function function;
public DoneableServiceMonitor(io.dekorate.deps.kubernetes.api.builder.Function function){
super();this.builder=new ServiceMonitorBuilder(this);this.function=function;
}
public DoneableServiceMonitor(ServiceMonitor item,io.dekorate.deps.kubernetes.api.builder.Function function){
super(item);this.builder=new ServiceMonitorBuilder(this, item);this.function=function;
}
public DoneableServiceMonitor(ServiceMonitor item){
super(item);this.builder=new ServiceMonitorBuilder(this, item);this.function=new Function() {
public ServiceMonitor apply(ServiceMonitor item) {
return item;
}
}
;
}
public ServiceMonitor done(){
return function.apply(builder.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy