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