rejectAttachment method
Rejects a core network attachment request.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter attachmentId :
The ID of the attachment.
Implementation
Future<RejectAttachmentResponse> rejectAttachment({
required String attachmentId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri: '/attachments/${Uri.encodeComponent(attachmentId)}/reject',
exceptionFnMap: _exceptionFns,
);
return RejectAttachmentResponse.fromJson(response);
}