io.alauda.kubernetes.api.model.authorization.DoneableSubjectAccessReview Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model.authorization;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableSubjectAccessReview extends io.alauda.kubernetes.api.model.authorization.SubjectAccessReviewFluentImpl implements Doneable{
private final io.alauda.kubernetes.api.model.authorization.SubjectAccessReviewBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableSubjectAccessReview(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new SubjectAccessReviewBuilder(this);this.function=function;
}
public DoneableSubjectAccessReview(io.alauda.kubernetes.api.model.authorization.SubjectAccessReview item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new SubjectAccessReviewBuilder(this, item);this.function=function;
}
public DoneableSubjectAccessReview(io.alauda.kubernetes.api.model.authorization.SubjectAccessReview item){
super(item);this.builder=new SubjectAccessReviewBuilder(this, item);this.function=new Function() {
public io.alauda.kubernetes.api.model.authorization.SubjectAccessReview apply(io.alauda.kubernetes.api.model.authorization.SubjectAccessReview item) {
return item;
}
}
;
}
public io.alauda.kubernetes.api.model.authorization.SubjectAccessReview done(){
return function.apply(builder.build());
}
}