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