getJobDocument method

Future<GetJobDocumentResponse> getJobDocument({
  1. required String jobId,
})

Gets a job document.

May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ServiceUnavailableException.

Parameter jobId : The unique identifier you assigned to this job when it was created.

Implementation

Future<GetJobDocumentResponse> getJobDocument({
  required String jobId,
}) async {
  ArgumentError.checkNotNull(jobId, 'jobId');
  _s.validateStringLength(
    'jobId',
    jobId,
    1,
    64,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/jobs/${Uri.encodeComponent(jobId)}/job-document',
    exceptionFnMap: _exceptionFns,
  );
  return GetJobDocumentResponse.fromJson(response);
}