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

            switch (ParameterSetName)
            {
            case LifecycleStateParamSet:
                response = client.Waiters.ForVirtualCircuit(request, waiterConfig, WaitForLifecycleState).Execute();
                break;

            case Default:
                response = client.GetVirtualCircuit(request).GetAwaiter().GetResult();
                break;
            }
            WriteOutput(response, response.VirtualCircuit);
        }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            GetVirtualCircuitRequest request;

            try
            {
                request = new GetVirtualCircuitRequest
                {
                    VirtualCircuitId = VirtualCircuitId
                };

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