tags property
A tags document contains user-defined tag field and value pairs
for the replica set member.
{ "<tag1>": "<string1>", "<tag2>": "<string2>",... }
For read operations, you can specify a tag set in the read preference
to direct the operations to replica set member(s) with the
specified tag(s).
For write operations, you can create a customize write concern using
settings.getLastErrorModes and settings.getLastErrorDefaults.
For more information, see Configure Replica Set Tag Sets
(https://docs.mongodb.com/v5.0/tutorial/configure-replica-set-tag-sets/).
Implementation
Map<String, String>? tags;