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

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

            case Default:
                response = client.ActivateExadataInfrastructure(request).GetAwaiter().GetResult();
                break;
            }
            WriteOutput(response, response.ExadataInfrastructure);
        }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            ActivateExadataInfrastructureRequest request;

            try
            {
                request = new ActivateExadataInfrastructureRequest
                {
                    ExadataInfrastructureId = ExadataInfrastructureId,
                    ActivateExadataInfrastructureDetails = ActivateExadataInfrastructureDetails,
                    OpcRequestId  = OpcRequestId,
                    OpcRetryToken = OpcRetryToken
                };

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