me.snowdrop.istio.api.rbac.v1alpha1.DoneableServiceRoleBindingSpec 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 DoneableServiceRoleBindingSpec extends ServiceRoleBindingSpecFluentImpl implements Doneable{
private final ServiceRoleBindingSpecBuilder builder;
private final io.fabric8.kubernetes.api.builder.Function function;
public DoneableServiceRoleBindingSpec(io.fabric8.kubernetes.api.builder.Function function){
super();this.builder=new ServiceRoleBindingSpecBuilder(this);this.function=function;
}
public DoneableServiceRoleBindingSpec(ServiceRoleBindingSpec item,io.fabric8.kubernetes.api.builder.Function function){
super(item);this.builder=new ServiceRoleBindingSpecBuilder(this, item);this.function=function;
}
public DoneableServiceRoleBindingSpec(ServiceRoleBindingSpec item){
super(item);this.builder=new ServiceRoleBindingSpecBuilder(this, item);this.function=new Function() {
public ServiceRoleBindingSpec apply(ServiceRoleBindingSpec item) {
return item;
}
}
;
}
public ServiceRoleBindingSpec done(){
return function.apply(builder.build());
}
}