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