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