updateHoursOfOperation method
Updates the hours of operation.
May throw DuplicateResourceException.
May throw InternalServiceException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter hoursOfOperationId :
The identifier of the hours of operation.
Parameter instanceId :
The identifier of the Connect Customer instance. You can find
the instance ID in the Amazon Resource Name (ARN) of the instance.
Parameter config :
Configuration information of the hours of operation.
Parameter description :
The description of the hours of operation.
Parameter name :
The name of the hours of operation.
Parameter timeZone :
The time zone of the hours of operation.
Implementation
Future<void> updateHoursOfOperation({
required String hoursOfOperationId,
required String instanceId,
List<HoursOfOperationConfig>? config,
String? description,
String? name,
String? timeZone,
}) async {
final $payload = <String, dynamic>{
if (config != null) 'Config': config,
if (description != null) 'Description': description,
if (name != null) 'Name': name,
if (timeZone != null) 'TimeZone': timeZone,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/hours-of-operations/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(hoursOfOperationId)}',
exceptionFnMap: _exceptionFns,
);
}