public void marshall(MongoDbSettings mongoDbSettings, ProtocolMarshaller protocolMarshaller) {

        if (mongoDbSettings == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(mongoDbSettings.getUsername(), USERNAME_BINDING);
            protocolMarshaller.marshall(mongoDbSettings.getPassword(), PASSWORD_BINDING);
            protocolMarshaller.marshall(mongoDbSettings.getServerName(), SERVERNAME_BINDING);
            protocolMarshaller.marshall(mongoDbSettings.getPort(), PORT_BINDING);
            protocolMarshaller.marshall(mongoDbSettings.getDatabaseName(), DATABASENAME_BINDING);
            protocolMarshaller.marshall(mongoDbSettings.getAuthType(), AUTHTYPE_BINDING);
            protocolMarshaller.marshall(mongoDbSettings.getAuthMechanism(), AUTHMECHANISM_BINDING);
            protocolMarshaller.marshall(mongoDbSettings.getNestingLevel(), NESTINGLEVEL_BINDING);
            protocolMarshaller.marshall(mongoDbSettings.getExtractDocId(), EXTRACTDOCID_BINDING);
            protocolMarshaller.marshall(mongoDbSettings.getDocsToInvestigate(), DOCSTOINVESTIGATE_BINDING);
            protocolMarshaller.marshall(mongoDbSettings.getAuthSource(), AUTHSOURCE_BINDING);
            protocolMarshaller.marshall(mongoDbSettings.getKmsKeyId(), KMSKEYID_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( MongoDbSettings mongoDbSettings , ProtocolMarshaller protocolMarshaller ) { if ( mongoDbSettings == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( mongoDbSettings . getUsername ( ) , USERNAME_BINDING ) ; protocolMarshaller . marshall ( mongoDbSettings . getPassword ( ) , PASSWORD_BINDING ) ; protocolMarshaller . marshall ( mongoDbSettings . getServerName ( ) , SERVERNAME_BINDING ) ; protocolMarshaller . marshall ( mongoDbSettings . getPort ( ) , PORT_BINDING ) ; protocolMarshaller . marshall ( mongoDbSettings . getDatabaseName ( ) , DATABASENAME_BINDING ) ; protocolMarshaller . marshall ( mongoDbSettings . getAuthType ( ) , AUTHTYPE_BINDING ) ; protocolMarshaller . marshall ( mongoDbSettings . getAuthMechanism ( ) , AUTHMECHANISM_BINDING ) ; protocolMarshaller . marshall ( mongoDbSettings . getNestingLevel ( ) , NESTINGLEVEL_BINDING ) ; protocolMarshaller . marshall ( mongoDbSettings . getExtractDocId ( ) , EXTRACTDOCID_BINDING ) ; protocolMarshaller . marshall ( mongoDbSettings . getDocsToInvestigate ( ) , DOCSTOINVESTIGATE_BINDING ) ; protocolMarshaller . marshall ( mongoDbSettings . getAuthSource ( ) , AUTHSOURCE_BINDING ) ; protocolMarshaller . marshall ( mongoDbSettings . getKmsKeyId ( ) , KMSKEYID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.