annotations.io.alauda.devops.api.model.DoneableRoleBinding Maven / Gradle / Ivy
package io.alauda.devops.api.model;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableRoleBinding extends RoleBindingFluentImpl implements Doneable{
private final RoleBindingBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableRoleBinding(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new RoleBindingBuilder(this);this.function=function;
}
public DoneableRoleBinding(RoleBinding item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new RoleBindingBuilder(this, item);this.function=function;
}
public DoneableRoleBinding(RoleBinding item){
super(item);this.builder=new RoleBindingBuilder(this, item);this.function=new Function() {
public RoleBinding apply(RoleBinding item) {
return item;
}
}
;
}
public RoleBinding done(){
return function.apply(builder.build());
}
}