io.alauda.kubernetes.api.model.DoneableServiceList Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import io.alauda.kubernetes.api.builder.Function;
public class DoneableServiceList extends ServiceListFluentImpl implements Doneable{
private final ServiceListBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableServiceList(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new ServiceListBuilder(this);this.function=function;
}
public DoneableServiceList(ServiceList item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new ServiceListBuilder(this, item);this.function=function;
}
public DoneableServiceList(ServiceList item){
super(item);this.builder=new ServiceListBuilder(this, item);this.function=new Function() {
public ServiceList apply(ServiceList item) {
return item;
}
}
;
}
public ServiceList done(){
return function.apply(builder.build());
}
}