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