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