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