getImportJob method

Future<GetImportJobResponse> getImportJob({
  1. required String applicationId,
  2. required String jobId,
})

Retrieves information about the status and settings of a specific import job for an application.

May throw BadRequestException. May throw InternalServerErrorException. May throw PayloadTooLargeException. May throw ForbiddenException. May throw NotFoundException. May throw MethodNotAllowedException. May throw TooManyRequestsException.

Parameter applicationId : The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

Parameter jobId : The unique identifier for the job.

Implementation

Future<GetImportJobResponse> getImportJob({
  required String applicationId,
  required String jobId,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  ArgumentError.checkNotNull(jobId, 'jobId');
  final response = await _protocol.sendRaw(
    payload: null,
    method: 'GET',
    requestUri:
        '/v1/apps/${Uri.encodeComponent(applicationId)}/jobs/import/${Uri.encodeComponent(jobId)}',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return GetImportJobResponse(
    importJobResponse: ImportJobResponse.fromJson($json),
  );
}