listImportJobs method
- ImportDestinationType? importDestinationType,
- String? nextToken,
- int? pageSize,
Lists all of the import jobs.
May throw TooManyRequestsException. May throw BadRequestException.
Parameter importDestinationType
:
The destination of the import job, which can be used to list import jobs
that have a certain ImportDestinationType
.
Parameter nextToken
:
A string token indicating that there might be additional import jobs
available to be listed. Copy this token to a subsequent call to
ListImportJobs
with the same parameters to retrieve the next
page of import jobs.
Parameter pageSize
:
Maximum number of import jobs to return at once. Use this parameter to
paginate results. If additional import jobs exist beyond the specified
limit, the NextToken
element is sent in the response. Use the
NextToken
value in subsequent requests to retrieve additional
addresses.
Implementation
Future<ListImportJobsResponse> listImportJobs({
ImportDestinationType? importDestinationType,
String? nextToken,
int? pageSize,
}) async {
final $query = <String, List<String>>{
if (nextToken != null) 'NextToken': [nextToken],
if (pageSize != null) 'PageSize': [pageSize.toString()],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v2/email/import-jobs',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListImportJobsResponse.fromJson(response);
}