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