stopReplication method

Future<SourceServer> stopReplication({
  1. required String sourceServerID,
  2. String? accountID,
})

Stop Replication.

May throw ConflictException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw UninitializedAccountException. May throw ValidationException.

Parameter sourceServerID : Stop Replication Request source server ID.

Parameter accountID : Stop Replication Request account ID.

Implementation

Future<SourceServer> stopReplication({
  required String sourceServerID,
  String? accountID,
}) async {
  final $payload = <String, dynamic>{
    'sourceServerID': sourceServerID,
    if (accountID != null) 'accountID': accountID,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/StopReplication',
    exceptionFnMap: _exceptionFns,
  );
  return SourceServer.fromJson(response);
}