putVoiceConnectorOrigination method
Future<PutVoiceConnectorOriginationResponse>
putVoiceConnectorOrigination({
- required Origination origination,
- required String voiceConnectorId,
Adds origination settings for the specified Amazon Chime Voice Connector.
May throw UnauthorizedClientException. May throw NotFoundException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter origination
:
The origination setting details to add.
Parameter voiceConnectorId
:
The Amazon Chime Voice Connector ID.
Implementation
Future<PutVoiceConnectorOriginationResponse> putVoiceConnectorOrigination({
required Origination origination,
required String voiceConnectorId,
}) async {
ArgumentError.checkNotNull(origination, 'origination');
ArgumentError.checkNotNull(voiceConnectorId, 'voiceConnectorId');
final $payload = <String, dynamic>{
'Origination': origination,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/voice-connectors/${Uri.encodeComponent(voiceConnectorId)}/origination',
exceptionFnMap: _exceptionFns,
);
return PutVoiceConnectorOriginationResponse.fromJson(response);
}