listDICOMImportJobs method
List import jobs created for a specific data store.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter datastoreId :
The data store identifier.
Parameter jobStatus :
The filters for listing import jobs based on status.
Parameter maxResults :
The max results count. The upper bound is determined by load testing.
Parameter nextToken :
The pagination token used to request the list of import jobs on the next
page.
Implementation
Future<ListDICOMImportJobsResponse> listDICOMImportJobs({
required String datastoreId,
JobStatus? jobStatus,
int? maxResults,
String? nextToken,
}) async {
final $query = <String, List<String>>{
if (jobStatus != null) 'jobStatus': [jobStatus.value],
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/listDICOMImportJobs/datastore/${Uri.encodeComponent(datastoreId)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListDICOMImportJobsResponse.fromJson(response);
}