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