listParallelData method

Future<ListParallelDataResponse> listParallelData({
  1. int? maxResults,
  2. String? nextToken,
})

Provides a list of your parallel data resources in Amazon Translate.

May throw InvalidParameterValueException. May throw TooManyRequestsException. May throw InternalServerException.

Parameter maxResults : The maximum number of parallel data resources returned for each request.

Parameter nextToken : A string that specifies the next page of results to return in a paginated response.

Implementation

Future<ListParallelDataResponse> listParallelData({
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    500,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    0,
    8192,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSShineFrontendService_20170701.ListParallelData'
  };
  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,
    },
  );

  return ListParallelDataResponse.fromJson(jsonResponse.body);
}