me.snowdrop.istio.api.rbac.v1alpha1.DoneableServiceRoleBinding Maven / Gradle / Ivy
package me.snowdrop.istio.api.rbac.v1alpha1;
import io.fabric8.kubernetes.api.builder.Function;
import io.fabric8.kubernetes.api.model.Doneable;
public class DoneableServiceRoleBinding extends ServiceRoleBindingFluentImpl implements Doneable{
private final ServiceRoleBindingBuilder builder;
private final Function function;
public DoneableServiceRoleBinding(Function function){
super();this.builder=new ServiceRoleBindingBuilder(this);this.function=function;
}
public DoneableServiceRoleBinding(ServiceRoleBinding item,Function function){
super(item);this.builder=new ServiceRoleBindingBuilder(this, item);this.function=function;
}
public DoneableServiceRoleBinding(ServiceRoleBinding item){
super(item);this.builder=new ServiceRoleBindingBuilder(this, item);this.function=new Function() {
public ServiceRoleBinding apply(ServiceRoleBinding item) {
return item;
}
}
;
}
public ServiceRoleBinding done(){
return function.apply(builder.build());
}
}