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