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