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