io.alauda.kubernetes.api.model.authentication.DoneableTokenReviewSpec 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 DoneableTokenReviewSpec extends TokenReviewSpecFluentImpl implements Doneable{
private final TokenReviewSpecBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableTokenReviewSpec(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new TokenReviewSpecBuilder(this);this.function=function;
}
public DoneableTokenReviewSpec(TokenReviewSpec item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new TokenReviewSpecBuilder(this, item);this.function=function;
}
public DoneableTokenReviewSpec(TokenReviewSpec item){
super(item);this.builder=new TokenReviewSpecBuilder(this, item);this.function=new Function() {
public TokenReviewSpec apply(TokenReviewSpec item) {
return item;
}
}
;
}
public TokenReviewSpec done(){
return function.apply(builder.build());
}
}