me.snowdrop.istio.mixer.adapter.redisquota.DoneableRedisquota Maven / Gradle / Ivy
package me.snowdrop.istio.mixer.adapter.redisquota;
import io.fabric8.kubernetes.api.builder.Function;
import io.fabric8.kubernetes.api.model.Doneable;
public class DoneableRedisquota extends RedisquotaFluentImpl implements Doneable{
private final RedisquotaBuilder builder;
private final Function function;
public DoneableRedisquota(Function function){
super();this.builder=new RedisquotaBuilder(this);this.function=function;
}
public DoneableRedisquota(Redisquota item,Function function){
super(item);this.builder=new RedisquotaBuilder(this, item);this.function=function;
}
public DoneableRedisquota(Redisquota item){
super(item);this.builder=new RedisquotaBuilder(this, item);this.function=new Function() {
public Redisquota apply(Redisquota item) {
return item;
}
}
;
}
public Redisquota done(){
return function.apply(builder.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy