listDatasets method
Retrieves information about data sets.
May throw InvalidRequestException. May throw InternalFailureException. May throw ServiceUnavailableException. May throw ThrottlingException.
Parameter maxResults
:
The maximum number of results to return in this request.
The default value is 100.
Parameter nextToken
:
The token for the next set of results.
Implementation
Future<ListDatasetsResponse> listDatasets({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
250,
);
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/datasets',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListDatasetsResponse.fromJson(response);
}