"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.ModifyNetworkInterfaceAttributeRequest = exports.ModifyNetworkInterfaceAttributeRequestNetworkInterfaceTrafficConfig = exports.ModifyNetworkInterfaceAttributeRequestEnhancedNetwork = exports.ModifyNetworkInterfaceAttributeRequestConnectionTrackingConfiguration = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class ModifyNetworkInterfaceAttributeRequestConnectionTrackingConfiguration extends $dara.Model {
    static names() {
        return {
            tcpClosedAndTimeWaitTimeout: 'TcpClosedAndTimeWaitTimeout',
            tcpEstablishedTimeout: 'TcpEstablishedTimeout',
            udpTimeout: 'UdpTimeout',
        };
    }
    static types() {
        return {
            tcpClosedAndTimeWaitTimeout: 'number',
            tcpEstablishedTimeout: 'number',
            udpTimeout: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyNetworkInterfaceAttributeRequestConnectionTrackingConfiguration = ModifyNetworkInterfaceAttributeRequestConnectionTrackingConfiguration;
class ModifyNetworkInterfaceAttributeRequestEnhancedNetwork extends $dara.Model {
    static names() {
        return {
            enableRss: 'EnableRss',
            enableSriov: 'EnableSriov',
            virtualFunctionQuantity: 'VirtualFunctionQuantity',
            virtualFunctionTotalQueueNumber: 'VirtualFunctionTotalQueueNumber',
        };
    }
    static types() {
        return {
            enableRss: 'boolean',
            enableSriov: 'boolean',
            virtualFunctionQuantity: 'number',
            virtualFunctionTotalQueueNumber: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyNetworkInterfaceAttributeRequestEnhancedNetwork = ModifyNetworkInterfaceAttributeRequestEnhancedNetwork;
class ModifyNetworkInterfaceAttributeRequestNetworkInterfaceTrafficConfig extends $dara.Model {
    static names() {
        return {
            networkInterfaceTrafficMode: 'NetworkInterfaceTrafficMode',
            queueNumber: 'QueueNumber',
            queuePairNumber: 'QueuePairNumber',
            rxQueueSize: 'RxQueueSize',
            txQueueSize: 'TxQueueSize',
        };
    }
    static types() {
        return {
            networkInterfaceTrafficMode: 'string',
            queueNumber: 'number',
            queuePairNumber: 'number',
            rxQueueSize: 'number',
            txQueueSize: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyNetworkInterfaceAttributeRequestNetworkInterfaceTrafficConfig = ModifyNetworkInterfaceAttributeRequestNetworkInterfaceTrafficConfig;
class ModifyNetworkInterfaceAttributeRequest extends $dara.Model {
    static names() {
        return {
            connectionTrackingConfiguration: 'ConnectionTrackingConfiguration',
            deleteOnRelease: 'DeleteOnRelease',
            description: 'Description',
            enhancedNetwork: 'EnhancedNetwork',
            networkInterfaceId: 'NetworkInterfaceId',
            networkInterfaceName: 'NetworkInterfaceName',
            networkInterfaceTrafficConfig: 'NetworkInterfaceTrafficConfig',
            ownerAccount: 'OwnerAccount',
            ownerId: 'OwnerId',
            queueNumber: 'QueueNumber',
            regionId: 'RegionId',
            resourceOwnerAccount: 'ResourceOwnerAccount',
            resourceOwnerId: 'ResourceOwnerId',
            rxQueueSize: 'RxQueueSize',
            securityGroupId: 'SecurityGroupId',
            sourceDestCheck: 'SourceDestCheck',
            txQueueSize: 'TxQueueSize',
        };
    }
    static types() {
        return {
            connectionTrackingConfiguration: ModifyNetworkInterfaceAttributeRequestConnectionTrackingConfiguration,
            deleteOnRelease: 'boolean',
            description: 'string',
            enhancedNetwork: ModifyNetworkInterfaceAttributeRequestEnhancedNetwork,
            networkInterfaceId: 'string',
            networkInterfaceName: 'string',
            networkInterfaceTrafficConfig: ModifyNetworkInterfaceAttributeRequestNetworkInterfaceTrafficConfig,
            ownerAccount: 'string',
            ownerId: 'number',
            queueNumber: 'number',
            regionId: 'string',
            resourceOwnerAccount: 'string',
            resourceOwnerId: 'number',
            rxQueueSize: 'number',
            securityGroupId: { 'type': 'array', 'itemType': 'string' },
            sourceDestCheck: 'boolean',
            txQueueSize: 'number',
        };
    }
    validate() {
        if (this.connectionTrackingConfiguration && typeof this.connectionTrackingConfiguration.validate === 'function') {
            this.connectionTrackingConfiguration.validate();
        }
        if (this.enhancedNetwork && typeof this.enhancedNetwork.validate === 'function') {
            this.enhancedNetwork.validate();
        }
        if (this.networkInterfaceTrafficConfig && typeof this.networkInterfaceTrafficConfig.validate === 'function') {
            this.networkInterfaceTrafficConfig.validate();
        }
        if (Array.isArray(this.securityGroupId)) {
            $dara.Model.validateArray(this.securityGroupId);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyNetworkInterfaceAttributeRequest = ModifyNetworkInterfaceAttributeRequest;
//# sourceMappingURL=ModifyNetworkInterfaceAttributeRequest.js.map