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