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

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

            case Default:
                response = client.CreateExternalPluggableDatabase(request).GetAwaiter().GetResult();
                break;
            }
            WriteOutput(response, response.ExternalPluggableDatabase);
        }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            CreateExternalPluggableDatabaseRequest request;

            try
            {
                request = new CreateExternalPluggableDatabaseRequest
                {
                    CreateExternalPluggableDatabaseDetails = CreateExternalPluggableDatabaseDetails,
                    OpcRetryToken = OpcRetryToken,
                    OpcRequestId  = OpcRequestId
                };

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