listPresets method

Future<ListPresetsResponse> listPresets({
  1. String? ascending,
  2. String? pageToken,
})

The ListPresets operation gets a list of the default presets included with Elastic Transcoder and the presets that you've added in an AWS region.

May throw ValidationException. May throw IncompatibleVersionException. May throw AccessDeniedException. May throw InternalServiceException.

Parameter ascending : To list presets in chronological order by the date and time that they were created, enter true. To list presets in reverse chronological order, enter false.

Parameter pageToken : When Elastic Transcoder returns more than one page of results, use pageToken in subsequent GET requests to get each successive page of results.

Implementation

Future<ListPresetsResponse> listPresets({
  String? ascending,
  String? pageToken,
}) async {
  final $query = <String, List<String>>{
    if (ascending != null) 'Ascending': [ascending],
    if (pageToken != null) 'PageToken': [pageToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/2012-09-25/presets',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListPresetsResponse.fromJson(response);
}