"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.CreateNatGatewayRequest = exports.CreateNatGatewayRequestTag = exports.CreateNatGatewayRequestAccessMode = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class CreateNatGatewayRequestAccessMode 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.CreateNatGatewayRequestAccessMode = CreateNatGatewayRequestAccessMode;
class CreateNatGatewayRequestTag extends $dara.Model {
    static names() {
        return {
            key: 'Key',
            value: 'Value',
        };
    }
    static types() {
        return {
            key: 'string',
            value: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNatGatewayRequestTag = CreateNatGatewayRequestTag;
class CreateNatGatewayRequest extends $dara.Model {
    static names() {
        return {
            accessMode: 'AccessMode',
            autoPay: 'AutoPay',
            clientToken: 'ClientToken',
            description: 'Description',
            duration: 'Duration',
            eipBindMode: 'EipBindMode',
            icmpReplyEnabled: 'IcmpReplyEnabled',
            instanceChargeType: 'InstanceChargeType',
            internetChargeType: 'InternetChargeType',
            ipv4Prefix: 'Ipv4Prefix',
            name: 'Name',
            natIp: 'NatIp',
            natType: 'NatType',
            networkType: 'NetworkType',
            ownerAccount: 'OwnerAccount',
            ownerId: 'OwnerId',
            pricingCycle: 'PricingCycle',
            privateLinkEnabled: 'PrivateLinkEnabled',
            regionId: 'RegionId',
            resourceOwnerAccount: 'ResourceOwnerAccount',
            resourceOwnerId: 'ResourceOwnerId',
            securityProtectionEnabled: 'SecurityProtectionEnabled',
            spec: 'Spec',
            tag: 'Tag',
            vSwitchId: 'VSwitchId',
            vpcId: 'VpcId',
        };
    }
    static types() {
        return {
            accessMode: CreateNatGatewayRequestAccessMode,
            autoPay: 'boolean',
            clientToken: 'string',
            description: 'string',
            duration: 'string',
            eipBindMode: 'string',
            icmpReplyEnabled: 'boolean',
            instanceChargeType: 'string',
            internetChargeType: 'string',
            ipv4Prefix: 'string',
            name: 'string',
            natIp: 'string',
            natType: 'string',
            networkType: 'string',
            ownerAccount: 'string',
            ownerId: 'number',
            pricingCycle: 'string',
            privateLinkEnabled: 'boolean',
            regionId: 'string',
            resourceOwnerAccount: 'string',
            resourceOwnerId: 'number',
            securityProtectionEnabled: 'boolean',
            spec: 'string',
            tag: { 'type': 'array', 'itemType': CreateNatGatewayRequestTag },
            vSwitchId: 'string',
            vpcId: 'string',
        };
    }
    validate() {
        if (this.accessMode && typeof this.accessMode.validate === 'function') {
            this.accessMode.validate();
        }
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNatGatewayRequest = CreateNatGatewayRequest;
//# sourceMappingURL=CreateNatGatewayRequest.js.map