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

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

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

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

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