public Request<GetVocabularyRequest> marshall(GetVocabularyRequest getVocabularyRequest) { if (getVocabularyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { final ProtocolRequestMarshaller<GetVocabularyRequest> protocolMarshaller = protocolFactory.createProtocolMarshaller(SDK_OPERATION_BINDING, getVocabularyRequest); protocolMarshaller.startMarshalling(); GetVocabularyRequestMarshaller.getInstance().marshall(getVocabularyRequest, 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 GetVocabularyRequestMarshaller().marshall(getVocabularyRequest);