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