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

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

            case Default:
                response = client.GetWebAppFirewall(request).GetAwaiter().GetResult();
                break;
            }
            WriteOutput(response, response.WebAppFirewall);
        }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            GetWebAppFirewallRequest request;

            try
            {
                request = new GetWebAppFirewallRequest
                {
                    WebAppFirewallId = WebAppFirewallId,
                    OpcRequestId     = OpcRequestId
                };

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