public Request<ListVocabulariesRequest> marshall(ListVocabulariesRequest listVocabulariesRequest) { if (listVocabulariesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { final ProtocolRequestMarshaller<ListVocabulariesRequest> protocolMarshaller = protocolFactory.createProtocolMarshaller(SDK_OPERATION_BINDING, listVocabulariesRequest); protocolMarshaller.startMarshalling(); ListVocabulariesRequestMarshaller.getInstance().marshall(listVocabulariesRequest, protocolMarshaller); return protocolMarshaller.finishMarshalling(); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListVocabulariesRequestMarshaller().marshall(listVocabulariesRequest);