public boolean isEventStream() {
        return shape().hasTrait(StreamingTrait.ID);
    }
Check if this is an event stream union.

@return Returns true if this is an event stream.
smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/directed/GenerateUnionDirective.java