@SuppressWarnings("deprecation")
    @Nullable
    public String getName() {
        List<ServerDescription> any = getClusterDescription().getAnyPrimaryOrSecondary();
        return any.isEmpty() ? null : any.get(0).getSetName();
    }
@SuppressWarnings("deprecation")
    @Nullable
    public String getName() {
        List<ServerDescription> any = getClusterDescription().getAnyPrimaryOrSecondary();
        return any.isEmpty() ? null : any.get(0).getSetName();
    }
@ SuppressWarnings ( "deprecation" ) @ Nullable public String getName ( ) { List < ServerDescription > any = getClusterDescription ( ) . getAnyPrimaryOrSecondary ( ) ; return any . isEmpty ( ) ? null : any . get ( 0 ) . getSetName ( ) ; }
Get the name of the replica set.

@return the name of the replica set.
Get the name of the replica set .