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