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