listRxNormInferenceJobs method

Future<ListRxNormInferenceJobsResponse> listRxNormInferenceJobs({
  1. ComprehendMedicalAsyncJobFilter? filter,
  2. int? maxResults,
  3. String? nextToken,
})

Gets a list of InferRxNorm jobs that you have submitted.

May throw InvalidRequestException. May throw ValidationException. May throw TooManyRequestsException. May throw InternalServerException.

Parameter filter : Filters the jobs that are returned. You can filter jobs based on their names, status, or the date and time that they were submitted. You can only set one filter at a time.

Parameter maxResults : Identifies the next page of results to return.

Parameter nextToken : Identifies the next page of results to return.

Implementation

Future<ListRxNormInferenceJobsResponse> listRxNormInferenceJobs({
  ComprehendMedicalAsyncJobFilter? filter,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    500,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    1,
    1152921504606846976,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'ComprehendMedical_20181030.ListRxNormInferenceJobs'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (filter != null) 'Filter': filter,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return ListRxNormInferenceJobsResponse.fromJson(jsonResponse.body);
}