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

            switch (ParameterSetName)
            {
            case StatusParamSet:
                response = client.Waiters.ForChangeVcnCompartment(request, waiterConfig, WaitForStatus).Execute();
                break;

            case Default:
                response = client.ChangeVcnCompartment(request).GetAwaiter().GetResult();
                break;
            }
            WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId));
        }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            ChangeVcnCompartmentRequest request;

            try
            {
                request = new ChangeVcnCompartmentRequest
                {
                    VcnId = VcnId,
                    ChangeVcnCompartmentDetails = ChangeVcnCompartmentDetails,
                    OpcRequestId  = OpcRequestId,
                    OpcRetryToken = OpcRetryToken
                };

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