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