All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.snowdrop.istio.mixer.template.quota.DoneableQuota Maven / Gradle / Ivy

package me.snowdrop.istio.mixer.template.quota;

import io.fabric8.kubernetes.api.builder.Function;
import io.fabric8.kubernetes.api.model.Doneable;

public class DoneableQuota extends me.snowdrop.istio.mixer.template.quota.QuotaFluentImpl implements Doneable{

    private final me.snowdrop.istio.mixer.template.quota.QuotaBuilder builder;
    private final Function function;

    public DoneableQuota(Function function){
            super();this.builder=new QuotaBuilder(this);this.function=function;
    }
    public DoneableQuota(me.snowdrop.istio.mixer.template.quota.Quota item,Function function){
            super(item);this.builder=new QuotaBuilder(this, item);this.function=function;
    }
    public DoneableQuota(me.snowdrop.istio.mixer.template.quota.Quota item){
            super(item);this.builder=new QuotaBuilder(this, item);this.function=new Function() {
    public me.snowdrop.istio.mixer.template.quota.Quota apply(me.snowdrop.istio.mixer.template.quota.Quota item) {
        return item;
    }
}
;
    }

    public me.snowdrop.istio.mixer.template.quota.Quota done(){
             return function.apply(builder.build());
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy