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