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