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