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