private void HandleOutput(DeregisterAutonomousDatabaseDataSafeRequest request)
        {
            var waiterConfig = new WaiterConfiguration
            {
                MaxAttempts           = MaxWaitAttempts,
                GetNextDelayInSeconds = (_) => WaitIntervalSeconds
            };

            switch (ParameterSetName)
            {
            case StatusParamSet:
                response = client.Waiters.ForDeregisterAutonomousDatabaseDataSafe(request, waiterConfig, WaitForStatus).Execute();
                break;

            case Default:
                response = client.DeregisterAutonomousDatabaseDataSafe(request).GetAwaiter().GetResult();
                break;
            }
            WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId));
        }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            DeregisterAutonomousDatabaseDataSafeRequest request;

            try
            {
                request = new DeregisterAutonomousDatabaseDataSafeRequest
                {
                    AutonomousDatabaseId = AutonomousDatabaseId,
                    OpcRequestId         = OpcRequestId,
                    DeregisterAutonomousDatabaseDataSafeDetails = DeregisterAutonomousDatabaseDataSafeDetails
                };

                HandleOutput(request);
                FinishProcessing(response);
            }
            catch (Exception ex)
            {
                TerminatingErrorDuringExecution(ex);
            }
        }