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