annotations.me.snowdrop.istio.api.model.v1.broker.DoneableServicePlan Maven / Gradle / Ivy
package me.snowdrop.istio.api.model.v1.broker;
import me.snowdrop.istio.api.builder.Function;
import io.fabric8.kubernetes.api.model.Doneable;
public class DoneableServicePlan extends ServicePlanFluentImpl implements Doneable{
private final ServicePlanBuilder builder;
private final me.snowdrop.istio.api.builder.Function function;
public DoneableServicePlan(me.snowdrop.istio.api.builder.Function function){
super();this.builder=new ServicePlanBuilder(this);this.function=function;
}
public DoneableServicePlan(ServicePlan item,me.snowdrop.istio.api.builder.Function function){
super(item);this.builder=new ServicePlanBuilder(this, item);this.function=function;
}
public DoneableServicePlan(ServicePlan item){
super(item);this.builder=new ServicePlanBuilder(this, item);this.function=new Function() {
public ServicePlan apply(ServicePlan item) {
return item;
}
}
;
}
public ServicePlan done(){
return function.apply(builder.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy