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

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

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

            try
            {
                request = new DisableAutonomousDatabaseManagementRequest
                {
                    AutonomousDatabaseId = AutonomousDatabaseId,
                    OpcRequestId         = OpcRequestId
                };

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