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

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

            case Default:
                response = client.GetBdsMetastoreConfiguration(request).GetAwaiter().GetResult();
                break;
            }
            WriteOutput(response, response.BdsMetastoreConfiguration);
        }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            GetBdsMetastoreConfigurationRequest request;

            try
            {
                request = new GetBdsMetastoreConfigurationRequest
                {
                    BdsInstanceId     = BdsInstanceId,
                    MetastoreConfigId = MetastoreConfigId,
                    OpcRequestId      = OpcRequestId
                };

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