io.dekorate.prometheus.model.DoneableServiceMonitorSpec 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 DoneableServiceMonitorSpec extends ServiceMonitorSpecFluentImpl implements Doneable{
private final ServiceMonitorSpecBuilder builder;
private final io.dekorate.deps.kubernetes.api.builder.Function function;
public DoneableServiceMonitorSpec(io.dekorate.deps.kubernetes.api.builder.Function function){
super();this.builder=new ServiceMonitorSpecBuilder(this);this.function=function;
}
public DoneableServiceMonitorSpec(ServiceMonitorSpec item,io.dekorate.deps.kubernetes.api.builder.Function function){
super(item);this.builder=new ServiceMonitorSpecBuilder(this, item);this.function=function;
}
public DoneableServiceMonitorSpec(ServiceMonitorSpec item){
super(item);this.builder=new ServiceMonitorSpecBuilder(this, item);this.function=new Function() {
public ServiceMonitorSpec apply(ServiceMonitorSpec item) {
return item;
}
}
;
}
public ServiceMonitorSpec done(){
return function.apply(builder.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy