listReservations method

Future<ListReservationsResponse> listReservations({
  1. String? channelClass,
  2. String? codec,
  3. int? maxResults,
  4. String? maximumBitrate,
  5. String? maximumFramerate,
  6. String? nextToken,
  7. String? resolution,
  8. String? resourceType,
  9. String? specialFeature,
  10. String? videoQuality,
})

List purchased reservations.

May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw BadGatewayException. May throw GatewayTimeoutException. May throw TooManyRequestsException.

Parameter channelClass : Filter by channel class, 'STANDARD' or 'SINGLE_PIPELINE'

Parameter codec : Filter by codec, 'AVC', 'HEVC', 'MPEG2', 'AUDIO', or 'LINK'

Parameter maximumBitrate : Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS'

Parameter maximumFramerate : Filter by framerate, 'MAX_30_FPS' or 'MAX_60_FPS'

Parameter resolution : Filter by resolution, 'SD', 'HD', 'FHD', or 'UHD'

Parameter resourceType : Filter by resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL'

Parameter specialFeature : Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION'

Parameter videoQuality : Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM'

Implementation

Future<ListReservationsResponse> listReservations({
  String? channelClass,
  String? codec,
  int? maxResults,
  String? maximumBitrate,
  String? maximumFramerate,
  String? nextToken,
  String? resolution,
  String? resourceType,
  String? specialFeature,
  String? videoQuality,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1000,
  );
  final $query = <String, List<String>>{
    if (channelClass != null) 'channelClass': [channelClass],
    if (codec != null) 'codec': [codec],
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (maximumBitrate != null) 'maximumBitrate': [maximumBitrate],
    if (maximumFramerate != null) 'maximumFramerate': [maximumFramerate],
    if (nextToken != null) 'nextToken': [nextToken],
    if (resolution != null) 'resolution': [resolution],
    if (resourceType != null) 'resourceType': [resourceType],
    if (specialFeature != null) 'specialFeature': [specialFeature],
    if (videoQuality != null) 'videoQuality': [videoQuality],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/prod/reservations',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListReservationsResponse.fromJson(response);
}