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