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