listAutonomousDatabaseCharacterSets method

Future<ListAutonomousDatabaseCharacterSetsOutput> listAutonomousDatabaseCharacterSets({
  1. CharacterSetType? characterSetType,
  2. int? maxResults,
  3. String? nextToken,
})

Lists the available character sets for Autonomous Databases.

May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter characterSetType : The type of character set to return results for, either the database character set or the national character set.

Parameter maxResults : The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.

Parameter nextToken : The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

Implementation

Future<ListAutonomousDatabaseCharacterSetsOutput>
    listAutonomousDatabaseCharacterSets({
  CharacterSetType? characterSetType,
  int? maxResults,
  String? nextToken,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'Odb.ListAutonomousDatabaseCharacterSets'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (characterSetType != null)
        'characterSetType': characterSetType.value,
      if (maxResults != null) 'maxResults': maxResults,
      if (nextToken != null) 'nextToken': nextToken,
    },
  );

  return ListAutonomousDatabaseCharacterSetsOutput.fromJson(
      jsonResponse.body);
}