updateMailboxQuota method
Updates a user's current mailbox quota for a specified organization and user.
May throw InvalidParameterException. May throw OrganizationNotFoundException. May throw OrganizationStateException. May throw EntityNotFoundException. May throw EntityStateException.
Parameter mailboxQuota
:
The updated mailbox quota, in MB, for the specified user.
Parameter organizationId
:
The identifier for the organization that contains the user for whom to
update the mailbox quota.
Parameter userId
:
The identifer for the user for whom to update the mailbox quota.
Implementation
Future<void> updateMailboxQuota({
required int mailboxQuota,
required String organizationId,
required String userId,
}) async {
ArgumentError.checkNotNull(mailboxQuota, 'mailboxQuota');
_s.validateNumRange(
'mailboxQuota',
mailboxQuota,
1,
1152921504606846976,
isRequired: true,
);
ArgumentError.checkNotNull(organizationId, 'organizationId');
_s.validateStringLength(
'organizationId',
organizationId,
34,
34,
isRequired: true,
);
ArgumentError.checkNotNull(userId, 'userId');
_s.validateStringLength(
'userId',
userId,
12,
256,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkMailService.UpdateMailboxQuota'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'MailboxQuota': mailboxQuota,
'OrganizationId': organizationId,
'UserId': userId,
},
);
}