public void marshall(BatchWriteRequest batchWriteRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(batchWriteRequest.getDirectoryArn(), DIRECTORYARN_BINDING);
            protocolMarshaller.marshall(batchWriteRequest.getOperations(), OPERATIONS_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( BatchWriteRequest batchWriteRequest , ProtocolMarshaller protocolMarshaller ) { if ( batchWriteRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( batchWriteRequest . getDirectoryArn ( ) , DIRECTORYARN_BINDING ) ; protocolMarshaller . marshall ( batchWriteRequest . getOperations ( ) , OPERATIONS_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.