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