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

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

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

            try
            {
                request = new AddStorageCapacityExadataInfrastructureRequest
                {
                    ExadataInfrastructureId = ExadataInfrastructureId,
                    IfMatch       = IfMatch,
                    OpcRequestId  = OpcRequestId,
                    OpcRetryToken = OpcRetryToken
                };

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