/// <summary>
        /// Constructs ConfirmMigrationStatusMsg to be returned as an output of Get-AzureStorSimpleVolumeContainerConfirmStatus cmdlet
        /// </summary>
        /// <param name="configID">config id</param>
        /// <param name="overallStatus">overall status of migration</param>
        public ConfirmMigrationStatusMsg(string configID, MigrationConfirmStatus overallStatus)
        {
            this.LegacyConfigId = configID;
            this.CommitOrRollbackNotStarted =
                new ConfirmMigrationStatus(
                    ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.CommitOrRollbackNotStarted,
                    overallStatus);

            this.CommitInProgress =
                new ConfirmMigrationStatus(
                    ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.CommitInProgress, overallStatus);
            this.CommitFailed =
                new ConfirmMigrationStatus(ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.CommitFailed,
                    overallStatus);
            this.CommitComplete =
                new ConfirmMigrationStatus(ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.CommitComplete,
                    overallStatus);

            this.RollbackInProgress =
                new ConfirmMigrationStatus(
                    ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.RollbackInProgress, overallStatus);
            this.RollbackFailed =
                new ConfirmMigrationStatus(ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.RollbackFailed,
                    overallStatus);
            this.RollbackComplete =
                new ConfirmMigrationStatus(
                    ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.RollbackComplete, overallStatus);
        }
 /// <summary>
 /// Constructor - Constructs ConfirmMigrationStatus object of given statusType specified, 
 /// by filtering from overallstatus list provided 
 /// </summary>
 /// <param name="type">MigrationStatus of the list of stored</param>
 /// <param name="overallStatusList">overall migration status</param>        
 public ConfirmMigrationStatus(MigrationVolumeContainerConfirmStatus statusType,
     MigrationConfirmStatus overallStatus)
 {
     this.Status = statusType;
     if (null != overallStatus)
     {
         var statusList = new List<MigrationContainerConfirmStatus>(overallStatus.ContainerConfirmStatus);
         this.ConfirmStatus =
             statusList.FindAll(status => GetMigrationVolumeContainerConfirmStatus(status.Status) == statusType);
     }
     else
     {
         this.ConfirmStatus = new List<MigrationContainerConfirmStatus>();
     }
 }