getExportJob method

Future<GetExportJobResponse> getExportJob({
  1. required String applicationId,
  2. required String jobId,
})

Retrieves information about the status and settings of a specific export 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<GetExportJobResponse> getExportJob({
  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/export/${Uri.encodeComponent(jobId)}',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return GetExportJobResponse(
    exportJobResponse: ExportJobResponse.fromJson($json),
  );
}