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