//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery.Contracts
{
///
/// Class to include the plan detail
///
public class RestorePlanDetailInfo
{
///
/// The name of the option from RestoreOptionsHelper
///
public string Name { get; set; }
///
/// The current value of the option
///
public object CurrentValue { get; set; }
///
/// Indicates whether the option is read only or can be changed in client
///
public bool IsReadOnly { get; set; }
///
/// Indicates whether the option should be visibile in client
///
public bool IsVisiable { get; set; }
///
/// The default value of the option
///
public object DefaultValue { get; set; }
internal static RestorePlanDetailInfo Create(string name, object currentValue, bool isReadOnly = false, bool isVisible = true, object defaultValue = null)
{
return new RestorePlanDetailInfo
{
CurrentValue = currentValue,
IsReadOnly = isReadOnly,
Name = name,
IsVisiable = isVisible,
DefaultValue = defaultValue
};
}
}
}