updateVoiceProfileDomain method
Updates the settings for the specified voice profile domain.
May throw AccessDeniedException.
May throw BadRequestException.
May throw ForbiddenException.
May throw NotFoundException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter voiceProfileDomainId :
The domain ID.
Parameter description :
The description of the voice profile domain.
Parameter name :
The name of the voice profile domain.
Implementation
Future<UpdateVoiceProfileDomainResponse> updateVoiceProfileDomain({
required String voiceProfileDomainId,
String? description,
String? name,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (name != null) 'Name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/voice-profile-domains/${Uri.encodeComponent(voiceProfileDomainId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateVoiceProfileDomainResponse.fromJson(response);
}