io.alauda.kubernetes.api.model.authorization.DoneableNonResourceAttributes 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 DoneableNonResourceAttributes extends NonResourceAttributesFluentImpl implements Doneable{
private final NonResourceAttributesBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableNonResourceAttributes(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new NonResourceAttributesBuilder(this);this.function=function;
}
public DoneableNonResourceAttributes(NonResourceAttributes item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new NonResourceAttributesBuilder(this, item);this.function=function;
}
public DoneableNonResourceAttributes(NonResourceAttributes item){
super(item);this.builder=new NonResourceAttributesBuilder(this, item);this.function=new Function() {
public NonResourceAttributes apply(NonResourceAttributes item) {
return item;
}
}
;
}
public NonResourceAttributes done(){
return function.apply(builder.build());
}
}