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