/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Cdb.V20170320.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ParameterDetail : AbstractModel
{
///
/// 参数名称
///
[JsonProperty("Name")]
public string Name{ get; set; }
///
/// 参数类型
///
[JsonProperty("ParamType")]
public string ParamType{ get; set; }
///
/// 参数默认值
///
[JsonProperty("Default")]
public string Default{ get; set; }
///
/// 参数描述
///
[JsonProperty("Description")]
public string Description{ get; set; }
///
/// 参数当前值
///
[JsonProperty("CurrentValue")]
public string CurrentValue{ get; set; }
///
/// 修改参数后,是否需要重启数据库以使参数生效。可能的值包括:0-不需要重启;1-需要重启
///
[JsonProperty("NeedReboot")]
public long? NeedReboot{ get; set; }
///
/// 参数允许的最大值
///
[JsonProperty("Max")]
public long? Max{ get; set; }
///
/// 参数允许的最小值
///
[JsonProperty("Min")]
public long? Min{ get; set; }
///
/// 参数的可选枚举值。如果为非枚举参数,则为空
///
[JsonProperty("EnumValue")]
public string[] EnumValue{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "Name", this.Name);
this.SetParamSimple(map, prefix + "ParamType", this.ParamType);
this.SetParamSimple(map, prefix + "Default", this.Default);
this.SetParamSimple(map, prefix + "Description", this.Description);
this.SetParamSimple(map, prefix + "CurrentValue", this.CurrentValue);
this.SetParamSimple(map, prefix + "NeedReboot", this.NeedReboot);
this.SetParamSimple(map, prefix + "Max", this.Max);
this.SetParamSimple(map, prefix + "Min", this.Min);
this.SetParamArraySimple(map, prefix + "EnumValue.", this.EnumValue);
}
}
}