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