updateUserSettings method

Future<void> updateUserSettings({
  1. required String accountId,
  2. required String userId,
  3. required UserSettings userSettings,
})

Updates the settings for the specified user, such as phone number settings.

May throw UnauthorizedClientException. May throw NotFoundException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter accountId : The Amazon Chime account ID.

Parameter userId : The user ID.

Parameter userSettings : The user settings to update.

Implementation

Future<void> updateUserSettings({
  required String accountId,
  required String userId,
  required UserSettings userSettings,
}) async {
  ArgumentError.checkNotNull(accountId, 'accountId');
  ArgumentError.checkNotNull(userId, 'userId');
  ArgumentError.checkNotNull(userSettings, 'userSettings');
  final $payload = <String, dynamic>{
    'UserSettings': userSettings,
  };
  await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/accounts/${Uri.encodeComponent(accountId)}/users/${Uri.encodeComponent(userId)}/settings',
    exceptionFnMap: _exceptionFns,
  );
}