annotations.io.alauda.kubernetes.api.model.authentication.DoneableUserInfo Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model.authentication;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableUserInfo extends UserInfoFluentImpl implements Doneable{
private final UserInfoBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableUserInfo(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new UserInfoBuilder(this);this.function=function;
}
public DoneableUserInfo(UserInfo item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new UserInfoBuilder(this, item);this.function=function;
}
public DoneableUserInfo(UserInfo item){
super(item);this.builder=new UserInfoBuilder(this, item);this.function=new Function() {
public UserInfo apply(UserInfo item) {
return item;
}
}
;
}
public UserInfo done(){
return function.apply(builder.build());
}
}