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

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

            case Default:
                response = client.UpdateCloudVmCluster(request).GetAwaiter().GetResult();
                break;
            }
            WriteOutput(response, response.CloudVmCluster);
        }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            UpdateCloudVmClusterRequest request;

            try
            {
                request = new UpdateCloudVmClusterRequest
                {
                    CloudVmClusterId            = CloudVmClusterId,
                    UpdateCloudVmClusterDetails = UpdateCloudVmClusterDetails,
                    IfMatch      = IfMatch,
                    OpcRequestId = OpcRequestId
                };

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