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