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