rejectLink method

Future<RejectLinkResponse> rejectLink({
  1. required String gatewayId,
  2. required String linkId,
})

Rejects a link request between gateways.

When a requester gateway requests to link with a responder gateway, the responder can use this operation to decline the link request.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter gatewayId : The unique identifier of the gateway.

Parameter linkId : The unique identifier of the link.

Implementation

Future<RejectLinkResponse> rejectLink({
  required String gatewayId,
  required String linkId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri:
        '/gateway/${Uri.encodeComponent(gatewayId)}/link/${Uri.encodeComponent(linkId)}/reject',
    exceptionFnMap: _exceptionFns,
  );
  return RejectLinkResponse.fromJson(response);
}