updateRoom method
Updates room details by room ARN.
May throw NotFoundException. May throw NameInUseException.
Parameter description
:
The updated description for the room.
Parameter profileArn
:
The updated profile ARN for the room.
Parameter providerCalendarId
:
The updated provider calendar ARN for the room.
Parameter roomArn
:
The ARN of the room to update.
Parameter roomName
:
The updated name for the room.
Implementation
Future<void> updateRoom({
String? description,
String? profileArn,
String? providerCalendarId,
String? roomArn,
String? roomName,
}) async {
_s.validateStringLength(
'description',
description,
1,
200,
);
_s.validateStringLength(
'providerCalendarId',
providerCalendarId,
0,
100,
);
_s.validateStringLength(
'roomName',
roomName,
1,
100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.UpdateRoom'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (description != null) 'Description': description,
if (profileArn != null) 'ProfileArn': profileArn,
if (providerCalendarId != null)
'ProviderCalendarId': providerCalendarId,
if (roomArn != null) 'RoomArn': roomArn,
if (roomName != null) 'RoomName': roomName,
},
);
}