Http2Flags is immutable. The setXXX are builder methods that return a new object each time.  If you don't like the extra object creation here, I can rework it a bit.