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