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