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