/* * 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.Vpc.V20170312.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class BandwidthPackage : AbstractModel { /// /// 带宽包唯一标识Id /// [JsonProperty("BandwidthPackageId")] public string BandwidthPackageId{ get; set; } /// /// 带宽包类型,包括'BGP','SINGLEISP','ANYCAST' /// [JsonProperty("NetworkType")] public string NetworkType{ get; set; } /// /// 带宽包计费类型,包括'TOP5_POSTPAID_BY_MONTH'和'PERCENT95_POSTPAID_BY_MONTH' /// [JsonProperty("ChargeType")] public string ChargeType{ get; set; } /// /// 带宽包名称 /// [JsonProperty("BandwidthPackageName")] public string BandwidthPackageName{ get; set; } /// /// 带宽包创建时间。按照`ISO8601`标准表示,并且使用`UTC`时间。格式为:`YYYY-MM-DDThh:mm:ssZ`。 /// [JsonProperty("CreatedTime")] public string CreatedTime{ get; set; } /// /// 带宽包状态,包括'CREATING','CREATED','DELETING','DELETED' /// [JsonProperty("Status")] public string Status{ get; set; } /// /// 带宽包资源信息 /// [JsonProperty("ResourceSet")] public Resource[] ResourceSet{ get; set; } /// /// 带宽包限速大小。单位:Mbps,-1表示不限速。 /// [JsonProperty("Bandwidth")] public long? Bandwidth{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "BandwidthPackageId", this.BandwidthPackageId); this.SetParamSimple(map, prefix + "NetworkType", this.NetworkType); this.SetParamSimple(map, prefix + "ChargeType", this.ChargeType); this.SetParamSimple(map, prefix + "BandwidthPackageName", this.BandwidthPackageName); this.SetParamSimple(map, prefix + "CreatedTime", this.CreatedTime); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamArrayObj(map, prefix + "ResourceSet.", this.ResourceSet); this.SetParamSimple(map, prefix + "Bandwidth", this.Bandwidth); } } }