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