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