getReplicationJobs method

Future<GetReplicationJobsResponse> getReplicationJobs({
  1. int? maxResults,
  2. String? nextToken,
  3. String? replicationJobId,
})

Describes the specified replication job or all of your replication jobs.

May throw InvalidParameterException. May throw MissingRequiredParameterException. May throw UnauthorizedOperationException.

Parameter maxResults : The maximum number of results to return in a single call. The default value is 50. To retrieve the remaining results, make another call with the returned NextToken value.

Parameter nextToken : The token for the next set of results.

Parameter replicationJobId : The ID of the replication job.

Implementation

Future<GetReplicationJobsResponse> getReplicationJobs({
  int? maxResults,
  String? nextToken,
  String? replicationJobId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSServerMigrationService_V2016_10_24.GetReplicationJobs'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (maxResults != null) 'maxResults': maxResults,
      if (nextToken != null) 'nextToken': nextToken,
      if (replicationJobId != null) 'replicationJobId': replicationJobId,
    },
  );

  return GetReplicationJobsResponse.fromJson(jsonResponse.body);
}