CollectionOptions started supporting an optional collection UUID in
SERVER-27987. The collection UUID is generated by the server and is not permitted as part of the collection options when provided by a user (as opposed to reading the existing collection metadata using listCollections). This behavior is controlled by the CollectionOptions::ParseKind enumeration when calling CollectionOptions::parse().
CollectionOptions also supports validation by calling CollectionOptions::validate(). Currently, validate() will fail if the metadata contains a collection UUID.