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