"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetNatGatewayAttributeResponseBody = exports.GetNatGatewayAttributeResponseBodySnatTable = exports.GetNatGatewayAttributeResponseBodyPrivateInfo = exports.GetNatGatewayAttributeResponseBodyLogDelivery = exports.GetNatGatewayAttributeResponseBodyIpList = exports.GetNatGatewayAttributeResponseBodyFullNatTable = exports.GetNatGatewayAttributeResponseBodyForwardTable = exports.GetNatGatewayAttributeResponseBodyDeletionProtectionInfo = exports.GetNatGatewayAttributeResponseBodyBillingConfig = exports.GetNatGatewayAttributeResponseBodyAccessMode = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class GetNatGatewayAttributeResponseBodyAccessMode extends $dara.Model {
    static names() {
        return {
            modeValue: 'ModeValue',
            tunnelType: 'TunnelType',
        };
    }
    static types() {
        return {
            modeValue: 'string',
            tunnelType: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNatGatewayAttributeResponseBodyAccessMode = GetNatGatewayAttributeResponseBodyAccessMode;
class GetNatGatewayAttributeResponseBodyBillingConfig extends $dara.Model {
    static names() {
        return {
            autoPay: 'AutoPay',
            instanceChargeType: 'InstanceChargeType',
            internetChargeType: 'InternetChargeType',
            spec: 'Spec',
        };
    }
    static types() {
        return {
            autoPay: 'string',
            instanceChargeType: 'string',
            internetChargeType: 'string',
            spec: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNatGatewayAttributeResponseBodyBillingConfig = GetNatGatewayAttributeResponseBodyBillingConfig;
class GetNatGatewayAttributeResponseBodyDeletionProtectionInfo extends $dara.Model {
    static names() {
        return {
            enabled: 'Enabled',
        };
    }
    static types() {
        return {
            enabled: 'boolean',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNatGatewayAttributeResponseBodyDeletionProtectionInfo = GetNatGatewayAttributeResponseBodyDeletionProtectionInfo;
class GetNatGatewayAttributeResponseBodyForwardTable extends $dara.Model {
    static names() {
        return {
            forwardEntryCount: 'ForwardEntryCount',
            forwardTableId: 'ForwardTableId',
        };
    }
    static types() {
        return {
            forwardEntryCount: 'number',
            forwardTableId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNatGatewayAttributeResponseBodyForwardTable = GetNatGatewayAttributeResponseBodyForwardTable;
class GetNatGatewayAttributeResponseBodyFullNatTable extends $dara.Model {
    static names() {
        return {
            fullNatEntryCount: 'FullNatEntryCount',
            fullNatTableId: 'FullNatTableId',
        };
    }
    static types() {
        return {
            fullNatEntryCount: 'number',
            fullNatTableId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNatGatewayAttributeResponseBodyFullNatTable = GetNatGatewayAttributeResponseBodyFullNatTable;
class GetNatGatewayAttributeResponseBodyIpList extends $dara.Model {
    static names() {
        return {
            allocationId: 'AllocationId',
            ipAddress: 'IpAddress',
            usingStatus: 'UsingStatus',
        };
    }
    static types() {
        return {
            allocationId: 'string',
            ipAddress: 'string',
            usingStatus: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNatGatewayAttributeResponseBodyIpList = GetNatGatewayAttributeResponseBodyIpList;
class GetNatGatewayAttributeResponseBodyLogDelivery extends $dara.Model {
    static names() {
        return {
            deliverLogsErrorMessage: 'DeliverLogsErrorMessage',
            deliveryStatus: 'DeliveryStatus',
            logDeliveryType: 'LogDeliveryType',
            logDestination: 'LogDestination',
        };
    }
    static types() {
        return {
            deliverLogsErrorMessage: 'string',
            deliveryStatus: 'string',
            logDeliveryType: 'string',
            logDestination: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNatGatewayAttributeResponseBodyLogDelivery = GetNatGatewayAttributeResponseBodyLogDelivery;
class GetNatGatewayAttributeResponseBodyPrivateInfo extends $dara.Model {
    static names() {
        return {
            eniInstanceId: 'EniInstanceId',
            izNo: 'IzNo',
            maxBandwidth: 'MaxBandwidth',
            privateIpAddress: 'PrivateIpAddress',
            vswitchId: 'VswitchId',
        };
    }
    static types() {
        return {
            eniInstanceId: 'string',
            izNo: 'string',
            maxBandwidth: 'number',
            privateIpAddress: 'string',
            vswitchId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNatGatewayAttributeResponseBodyPrivateInfo = GetNatGatewayAttributeResponseBodyPrivateInfo;
class GetNatGatewayAttributeResponseBodySnatTable extends $dara.Model {
    static names() {
        return {
            snatEntryCount: 'SnatEntryCount',
            snatTableId: 'SnatTableId',
        };
    }
    static types() {
        return {
            snatEntryCount: 'number',
            snatTableId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNatGatewayAttributeResponseBodySnatTable = GetNatGatewayAttributeResponseBodySnatTable;
class GetNatGatewayAttributeResponseBody extends $dara.Model {
    static names() {
        return {
            accessMode: 'AccessMode',
            billingConfig: 'BillingConfig',
            businessStatus: 'BusinessStatus',
            creationTime: 'CreationTime',
            deletionProtectionInfo: 'DeletionProtectionInfo',
            description: 'Description',
            ecsMetricEnabled: 'EcsMetricEnabled',
            enableSessionLog: 'EnableSessionLog',
            expiredTime: 'ExpiredTime',
            forwardTable: 'ForwardTable',
            fullNatTable: 'FullNatTable',
            ipList: 'IpList',
            logDelivery: 'LogDelivery',
            name: 'Name',
            natGatewayId: 'NatGatewayId',
            natType: 'NatType',
            networkType: 'NetworkType',
            privateInfo: 'PrivateInfo',
            privateLinkEnabled: 'PrivateLinkEnabled',
            privateLinkMode: 'PrivateLinkMode',
            regionId: 'RegionId',
            requestId: 'RequestId',
            resourceGroupId: 'ResourceGroupId',
            snatTable: 'SnatTable',
            status: 'Status',
            vpcId: 'VpcId',
        };
    }
    static types() {
        return {
            accessMode: GetNatGatewayAttributeResponseBodyAccessMode,
            billingConfig: GetNatGatewayAttributeResponseBodyBillingConfig,
            businessStatus: 'string',
            creationTime: 'string',
            deletionProtectionInfo: GetNatGatewayAttributeResponseBodyDeletionProtectionInfo,
            description: 'string',
            ecsMetricEnabled: 'boolean',
            enableSessionLog: 'boolean',
            expiredTime: 'string',
            forwardTable: GetNatGatewayAttributeResponseBodyForwardTable,
            fullNatTable: GetNatGatewayAttributeResponseBodyFullNatTable,
            ipList: { 'type': 'array', 'itemType': GetNatGatewayAttributeResponseBodyIpList },
            logDelivery: GetNatGatewayAttributeResponseBodyLogDelivery,
            name: 'string',
            natGatewayId: 'string',
            natType: 'string',
            networkType: 'string',
            privateInfo: GetNatGatewayAttributeResponseBodyPrivateInfo,
            privateLinkEnabled: 'boolean',
            privateLinkMode: 'string',
            regionId: 'string',
            requestId: 'string',
            resourceGroupId: 'string',
            snatTable: GetNatGatewayAttributeResponseBodySnatTable,
            status: 'string',
            vpcId: 'string',
        };
    }
    validate() {
        if (this.accessMode && typeof this.accessMode.validate === 'function') {
            this.accessMode.validate();
        }
        if (this.billingConfig && typeof this.billingConfig.validate === 'function') {
            this.billingConfig.validate();
        }
        if (this.deletionProtectionInfo && typeof this.deletionProtectionInfo.validate === 'function') {
            this.deletionProtectionInfo.validate();
        }
        if (this.forwardTable && typeof this.forwardTable.validate === 'function') {
            this.forwardTable.validate();
        }
        if (this.fullNatTable && typeof this.fullNatTable.validate === 'function') {
            this.fullNatTable.validate();
        }
        if (Array.isArray(this.ipList)) {
            $dara.Model.validateArray(this.ipList);
        }
        if (this.logDelivery && typeof this.logDelivery.validate === 'function') {
            this.logDelivery.validate();
        }
        if (this.privateInfo && typeof this.privateInfo.validate === 'function') {
            this.privateInfo.validate();
        }
        if (this.snatTable && typeof this.snatTable.validate === 'function') {
            this.snatTable.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNatGatewayAttributeResponseBody = GetNatGatewayAttributeResponseBody;
//# sourceMappingURL=GetNatGatewayAttributeResponseBody.js.map