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