me.snowdrop.istio.api.networking.v1alpha3.DoneableServiceEntry Maven / Gradle / Ivy
package me.snowdrop.istio.api.networking.v1alpha3;
import io.fabric8.kubernetes.api.builder.Function;
import io.fabric8.kubernetes.api.model.Doneable;
public class DoneableServiceEntry extends ServiceEntryFluentImpl implements Doneable{
private final ServiceEntryBuilder builder;
private final Function function;
public DoneableServiceEntry(Function function){
super();this.builder=new ServiceEntryBuilder(this);this.function=function;
}
public DoneableServiceEntry(ServiceEntry item,Function function){
super(item);this.builder=new ServiceEntryBuilder(this, item);this.function=function;
}
public DoneableServiceEntry(ServiceEntry item){
super(item);this.builder=new ServiceEntryBuilder(this, item);this.function=new Function() {
public ServiceEntry apply(ServiceEntry item) {
return item;
}
}
;
}
public ServiceEntry done(){
return function.apply(builder.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy