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