@SuppressWarnings("unchecked")
        public B member(MemberShape member) {
            if (member != null && !member.getMemberName().equals("member")) {
                String shapeTypeName = StringUtils.capitalize(this.getShapeType().toString());
                String message = String.format("%s shapes may only have a `member` member, but found `%s`",
                        shapeTypeName,
                        member.getMemberName());
                throw new SourceException(message, member);
            }
            this.member = Objects.requireNonNull(member);
            return (B) this;
        }
Sets the member of the collection.
@param member Member of the collection to set.
@return Returns the builder.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/CollectionShape.java