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