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