public MongoClientOptions getOptions() {
        ReadPreference readPreference = proxied.getReadPreference();
        if (readPreference != null) {
            builder.readPreference(readPreference);
        }
        ReadConcern readConcern = proxied.getReadConcern();
        if (readConcern != null) {
            builder.readConcern(readConcern);
        }
        WriteConcern writeConcern = proxied.getWriteConcern();
        if (writeConcern != null) {
            builder.writeConcern(writeConcern);
        }
        if (proxied.getRetryWritesValue() != null) {
            builder.retryWrites(proxied.getRetryWritesValue());
        }
        if (proxied.getRetryReads() != null) {
            builder.retryReads(proxied.getRetryReads());
        }

        Integer maxConnectionPoolSize = proxied.getMaxConnectionPoolSize();
        if (maxConnectionPoolSize != null) {
            builder.connectionsPerHost(maxConnectionPoolSize);
        }
        Integer integer = proxied.getMinConnectionPoolSize();
        if (integer != null) {
            builder.minConnectionsPerHost(integer);
        }
        Integer maxWaitTime = proxied.getMaxWaitTime();
        if (maxWaitTime != null) {
            builder.maxWaitTime(maxWaitTime);
        }
        Integer threadsAllowedToBlockForConnectionMultiplier = proxied.getThreadsAllowedToBlockForConnectionMultiplier();
        if (threadsAllowedToBlockForConnectionMultiplier != null) {
            builder.threadsAllowedToBlockForConnectionMultiplier(threadsAllowedToBlockForConnectionMultiplier);
        }
        Integer maxConnectionIdleTime = proxied.getMaxConnectionIdleTime();
        if (maxConnectionIdleTime != null) {
            builder.maxConnectionIdleTime(maxConnectionIdleTime);
        }
        Integer maxConnectionLifeTime = proxied.getMaxConnectionLifeTime();
        if (maxConnectionLifeTime != null) {
            builder.maxConnectionLifeTime(maxConnectionLifeTime);
        }
        Integer socketTimeout = proxied.getSocketTimeout();
        if (socketTimeout != null) {
            builder.socketTimeout(socketTimeout);
        }
        Integer connectTimeout = proxied.getConnectTimeout();
        if (connectTimeout != null) {
            builder.connectTimeout(connectTimeout);
        }
        String requiredReplicaSetName = proxied.getRequiredReplicaSetName();
        if (requiredReplicaSetName != null) {
            builder.requiredReplicaSetName(requiredReplicaSetName);
        }
        Boolean sslEnabled = proxied.getSslEnabled();
        if (sslEnabled != null) {
            builder.sslEnabled(sslEnabled);
        }
        Boolean sslInvalidHostnameAllowed = proxied.getSslInvalidHostnameAllowed();
        if (sslInvalidHostnameAllowed != null) {
            builder.sslInvalidHostNameAllowed(sslInvalidHostnameAllowed);
        }
        Integer serverSelectionTimeout = proxied.getServerSelectionTimeout();
        if (serverSelectionTimeout != null) {
            builder.serverSelectionTimeout(serverSelectionTimeout);
        }
        Integer localThreshold = proxied.getLocalThreshold();
        if (localThreshold != null) {
            builder.localThreshold(localThreshold);
        }
        Integer heartbeatFrequency = proxied.getHeartbeatFrequency();
        if (heartbeatFrequency != null) {
            builder.heartbeatFrequency(heartbeatFrequency);
        }
        String applicationName = proxied.getApplicationName();
        if (applicationName != null) {
            builder.applicationName(applicationName);
        }
        if (!proxied.getCompressorList().isEmpty()) {
            builder.compressorList(proxied.getCompressorList());
        }
        return builder.build();
    }
public MongoClientOptions getOptions() {
        ReadPreference readPreference = proxied.getReadPreference();
        if (readPreference != null) {
            builder.readPreference(readPreference);
        }
        ReadConcern readConcern = proxied.getReadConcern();
        if (readConcern != null) {
            builder.readConcern(readConcern);
        }
        WriteConcern writeConcern = proxied.getWriteConcern();
        if (writeConcern != null) {
            builder.writeConcern(writeConcern);
        }
        if (proxied.getRetryWritesValue() != null) {
            builder.retryWrites(proxied.getRetryWritesValue());
        }
        if (proxied.getRetryReads() != null) {
            builder.retryReads(proxied.getRetryReads());
        }

        Integer maxConnectionPoolSize = proxied.getMaxConnectionPoolSize();
        if (maxConnectionPoolSize != null) {
            builder.connectionsPerHost(maxConnectionPoolSize);
        }
        Integer integer = proxied.getMinConnectionPoolSize();
        if (integer != null) {
            builder.minConnectionsPerHost(integer);
        }
        Integer maxWaitTime = proxied.getMaxWaitTime();
        if (maxWaitTime != null) {
            builder.maxWaitTime(maxWaitTime);
        }
        Integer threadsAllowedToBlockForConnectionMultiplier = proxied.getThreadsAllowedToBlockForConnectionMultiplier();
        if (threadsAllowedToBlockForConnectionMultiplier != null) {
            builder.threadsAllowedToBlockForConnectionMultiplier(threadsAllowedToBlockForConnectionMultiplier);
        }
        Integer maxConnectionIdleTime = proxied.getMaxConnectionIdleTime();
        if (maxConnectionIdleTime != null) {
            builder.maxConnectionIdleTime(maxConnectionIdleTime);
        }
        Integer maxConnectionLifeTime = proxied.getMaxConnectionLifeTime();
        if (maxConnectionLifeTime != null) {
            builder.maxConnectionLifeTime(maxConnectionLifeTime);
        }
        Integer socketTimeout = proxied.getSocketTimeout();
        if (socketTimeout != null) {
            builder.socketTimeout(socketTimeout);
        }
        Integer connectTimeout = proxied.getConnectTimeout();
        if (connectTimeout != null) {
            builder.connectTimeout(connectTimeout);
        }
        String requiredReplicaSetName = proxied.getRequiredReplicaSetName();
        if (requiredReplicaSetName != null) {
            builder.requiredReplicaSetName(requiredReplicaSetName);
        }
        Boolean sslEnabled = proxied.getSslEnabled();
        if (sslEnabled != null) {
            builder.sslEnabled(sslEnabled);
        }
        Boolean sslInvalidHostnameAllowed = proxied.getSslInvalidHostnameAllowed();
        if (sslInvalidHostnameAllowed != null) {
            builder.sslInvalidHostNameAllowed(sslInvalidHostnameAllowed);
        }
        Integer serverSelectionTimeout = proxied.getServerSelectionTimeout();
        if (serverSelectionTimeout != null) {
            builder.serverSelectionTimeout(serverSelectionTimeout);
        }
        Integer localThreshold = proxied.getLocalThreshold();
        if (localThreshold != null) {
            builder.localThreshold(localThreshold);
        }
        Integer heartbeatFrequency = proxied.getHeartbeatFrequency();
        if (heartbeatFrequency != null) {
            builder.heartbeatFrequency(heartbeatFrequency);
        }
        String applicationName = proxied.getApplicationName();
        if (applicationName != null) {
            builder.applicationName(applicationName);
        }
        if (!proxied.getCompressorList().isEmpty()) {
            builder.compressorList(proxied.getCompressorList());
        }
        return builder.build();
    }
public MongoClientOptions getOptions ( ) { ReadPreference readPreference = proxied . getReadPreference ( ) ; if ( readPreference != null ) { builder . readPreference ( readPreference ) ; } ReadConcern readConcern = proxied . getReadConcern ( ) ; if ( readConcern != null ) { builder . readConcern ( readConcern ) ; } WriteConcern writeConcern = proxied . getWriteConcern ( ) ; if ( writeConcern != null ) { builder . writeConcern ( writeConcern ) ; } if ( proxied . getRetryWritesValue ( ) != null ) { builder . retryWrites ( proxied . getRetryWritesValue ( ) ) ; } if ( proxied . getRetryReads ( ) != null ) { builder . retryReads ( proxied . getRetryReads ( ) ) ; } Integer maxConnectionPoolSize = proxied . getMaxConnectionPoolSize ( ) ; if ( maxConnectionPoolSize != null ) { builder . connectionsPerHost ( maxConnectionPoolSize ) ; } Integer integer = proxied . getMinConnectionPoolSize ( ) ; if ( integer != null ) { builder . minConnectionsPerHost ( integer ) ; } Integer maxWaitTime = proxied . getMaxWaitTime ( ) ; if ( maxWaitTime != null ) { builder . maxWaitTime ( maxWaitTime ) ; } Integer threadsAllowedToBlockForConnectionMultiplier = proxied . getThreadsAllowedToBlockForConnectionMultiplier ( ) ; if ( threadsAllowedToBlockForConnectionMultiplier != null ) { builder . threadsAllowedToBlockForConnectionMultiplier ( threadsAllowedToBlockForConnectionMultiplier ) ; } Integer maxConnectionIdleTime = proxied . getMaxConnectionIdleTime ( ) ; if ( maxConnectionIdleTime != null ) { builder . maxConnectionIdleTime ( maxConnectionIdleTime ) ; } Integer maxConnectionLifeTime = proxied . getMaxConnectionLifeTime ( ) ; if ( maxConnectionLifeTime != null ) { builder . maxConnectionLifeTime ( maxConnectionLifeTime ) ; } Integer socketTimeout = proxied . getSocketTimeout ( ) ; if ( socketTimeout != null ) { builder . socketTimeout ( socketTimeout ) ; } Integer connectTimeout = proxied . getConnectTimeout ( ) ; if ( connectTimeout != null ) { builder . connectTimeout ( connectTimeout ) ; } String requiredReplicaSetName = proxied . getRequiredReplicaSetName ( ) ; if ( requiredReplicaSetName != null ) { builder . requiredReplicaSetName ( requiredReplicaSetName ) ; } Boolean sslEnabled = proxied . getSslEnabled ( ) ; if ( sslEnabled != null ) { builder . sslEnabled ( sslEnabled ) ; } Boolean sslInvalidHostnameAllowed = proxied . getSslInvalidHostnameAllowed ( ) ; if ( sslInvalidHostnameAllowed != null ) { builder . sslInvalidHostNameAllowed ( sslInvalidHostnameAllowed ) ; } Integer serverSelectionTimeout = proxied . getServerSelectionTimeout ( ) ; if ( serverSelectionTimeout != null ) { builder . serverSelectionTimeout ( serverSelectionTimeout ) ; } Integer localThreshold = proxied . getLocalThreshold ( ) ; if ( localThreshold != null ) { builder . localThreshold ( localThreshold ) ; } Integer heartbeatFrequency = proxied . getHeartbeatFrequency ( ) ; if ( heartbeatFrequency != null ) { builder . heartbeatFrequency ( heartbeatFrequency ) ; } String applicationName = proxied . getApplicationName ( ) ; if ( applicationName != null ) { builder . applicationName ( applicationName ) ; } if ( ! proxied . getCompressorList ( ) . isEmpty ( ) ) { builder . compressorList ( proxied . getCompressorList ( ) ) ; } return builder . build ( ) ; }
Gets the options

@return the MongoClientOptions based on this URI.
Gets the options