/* * 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.Dts.V20180330.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class CreateSubscribeRequest : AbstractModel { /// /// 订阅的数据库类型,目前支持的有 mysql /// [JsonProperty("Product")] public string Product{ get; set; } /// /// 实例付费类型,1小时计费,0包年包月 /// [JsonProperty("PayType")] public long? PayType{ get; set; } /// /// 购买时长。PayType为0时必填。单位为月,最大支持120 /// [JsonProperty("Duration")] public long? Duration{ get; set; } /// /// 购买数量,默认为1,最大为10 /// [JsonProperty("Count")] public long? Count{ get; set; } /// /// 是否自动续费,默认为0,1表示自动续费。小时计费实例设置该标识无效。 /// [JsonProperty("AutoRenew")] public long? AutoRenew{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Product", this.Product); this.SetParamSimple(map, prefix + "PayType", this.PayType); this.SetParamSimple(map, prefix + "Duration", this.Duration); this.SetParamSimple(map, prefix + "Count", this.Count); this.SetParamSimple(map, prefix + "AutoRenew", this.AutoRenew); } } }