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