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

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

            case Default:
                response = client.GetUserAssessment(request).GetAwaiter().GetResult();
                break;
            }
            WriteOutput(response, response.UserAssessment);
        }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            GetUserAssessmentRequest request;

            try
            {
                request = new GetUserAssessmentRequest
                {
                    UserAssessmentId = UserAssessmentId,
                    OpcRequestId     = OpcRequestId
                };

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