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