public Set<UnionShape> getUnionShapes() {
        return toSet(UnionShape.class);
    }
Gets an immutable set of all unions in the Model.

@return Returns the Set of {@code union}s.
smithy-model/src/main/java/software/amazon/smithy/model/Model.java