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