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