/* * 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 NatGateway : AbstractModel { /// /// NAT网关的ID。 /// [JsonProperty("NatGatewayId")] public string NatGatewayId{ get; set; } /// /// NAT网关的名称。 /// [JsonProperty("NatGatewayName")] public string NatGatewayName{ get; set; } /// /// NAT网关创建的时间。 /// [JsonProperty("CreatedTime")] public string CreatedTime{ get; set; } /// /// NAT网关的状态。 /// 'PENDING':生产中,'DELETING':删除中,'AVAILABLE':运行中,'UPDATING':升级中, /// ‘FAILED’:失败。 /// [JsonProperty("State")] public string State{ get; set; } /// /// 网关最大外网出带宽(单位:Mbps)。 /// [JsonProperty("InternetMaxBandwidthOut")] public ulong? InternetMaxBandwidthOut{ get; set; } /// /// 网关并发连接上限。 /// [JsonProperty("MaxConcurrentConnection")] public ulong? MaxConcurrentConnection{ get; set; } /// /// 绑定NAT网关的公网IP对象数组。 /// [JsonProperty("PublicIpAddressSet")] public NatGatewayAddress[] PublicIpAddressSet{ get; set; } /// /// NAT网关网络状态。“AVAILABLE”:运行中, “UNAVAILABLE”:不可用, “INSUFFICIENT”:欠费停服。 /// [JsonProperty("NetworkState")] public string NetworkState{ get; set; } /// /// NAT网关的端口转发规则。 /// [JsonProperty("DestinationIpPortTranslationNatRuleSet")] public DestinationIpPortTranslationNatRule[] DestinationIpPortTranslationNatRuleSet{ get; set; } /// /// VPC实例ID。 /// [JsonProperty("VpcId")] public string VpcId{ get; set; } /// /// NAT网关所在的可用区。 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "NatGatewayId", this.NatGatewayId); this.SetParamSimple(map, prefix + "NatGatewayName", this.NatGatewayName); this.SetParamSimple(map, prefix + "CreatedTime", this.CreatedTime); this.SetParamSimple(map, prefix + "State", this.State); this.SetParamSimple(map, prefix + "InternetMaxBandwidthOut", this.InternetMaxBandwidthOut); this.SetParamSimple(map, prefix + "MaxConcurrentConnection", this.MaxConcurrentConnection); this.SetParamArrayObj(map, prefix + "PublicIpAddressSet.", this.PublicIpAddressSet); this.SetParamSimple(map, prefix + "NetworkState", this.NetworkState); this.SetParamArrayObj(map, prefix + "DestinationIpPortTranslationNatRuleSet.", this.DestinationIpPortTranslationNatRuleSet); this.SetParamSimple(map, prefix + "VpcId", this.VpcId); this.SetParamSimple(map, prefix + "Zone", this.Zone); } } }