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