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

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

            case Default:
                response = client.GetSubscriptionMapping(request).GetAwaiter().GetResult();
                break;
            }
            WriteOutput(response, response.SubscriptionMapping);
        }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            GetSubscriptionMappingRequest request;

            try
            {
                request = new GetSubscriptionMappingRequest
                {
                    SubscriptionMappingId = SubscriptionMappingId,
                    OpcRequestId          = OpcRequestId
                };

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