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