annotations.io.alauda.devops.api.model.DoneableNamedClusterRoleBinding 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 DoneableNamedClusterRoleBinding extends NamedClusterRoleBindingFluentImpl implements Doneable{
private final NamedClusterRoleBindingBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableNamedClusterRoleBinding(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new NamedClusterRoleBindingBuilder(this);this.function=function;
}
public DoneableNamedClusterRoleBinding(NamedClusterRoleBinding item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new NamedClusterRoleBindingBuilder(this, item);this.function=function;
}
public DoneableNamedClusterRoleBinding(NamedClusterRoleBinding item){
super(item);this.builder=new NamedClusterRoleBindingBuilder(this, item);this.function=new Function() {
public NamedClusterRoleBinding apply(NamedClusterRoleBinding item) {
return item;
}
}
;
}
public NamedClusterRoleBinding done(){
return function.apply(builder.build());
}
}