"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.CreateNetworkAclResponseBody = exports.CreateNetworkAclResponseBodyNetworkAclAttribute = exports.CreateNetworkAclResponseBodyNetworkAclAttributeResources = exports.CreateNetworkAclResponseBodyNetworkAclAttributeResourcesResource = exports.CreateNetworkAclResponseBodyNetworkAclAttributeIngressAclEntries = exports.CreateNetworkAclResponseBodyNetworkAclAttributeIngressAclEntriesIngressAclEntry = exports.CreateNetworkAclResponseBodyNetworkAclAttributeEgressAclEntries = exports.CreateNetworkAclResponseBodyNetworkAclAttributeEgressAclEntriesEgressAclEntry = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class CreateNetworkAclResponseBodyNetworkAclAttributeEgressAclEntriesEgressAclEntry extends $dara.Model {
    static names() {
        return {
            description: 'Description',
            destinationCidrIp: 'DestinationCidrIp',
            networkAclEntryId: 'NetworkAclEntryId',
            networkAclEntryName: 'NetworkAclEntryName',
            policy: 'Policy',
            port: 'Port',
            protocol: 'Protocol',
        };
    }
    static types() {
        return {
            description: 'string',
            destinationCidrIp: 'string',
            networkAclEntryId: 'string',
            networkAclEntryName: 'string',
            policy: 'string',
            port: 'string',
            protocol: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkAclResponseBodyNetworkAclAttributeEgressAclEntriesEgressAclEntry = CreateNetworkAclResponseBodyNetworkAclAttributeEgressAclEntriesEgressAclEntry;
class CreateNetworkAclResponseBodyNetworkAclAttributeEgressAclEntries extends $dara.Model {
    static names() {
        return {
            egressAclEntry: 'EgressAclEntry',
        };
    }
    static types() {
        return {
            egressAclEntry: { 'type': 'array', 'itemType': CreateNetworkAclResponseBodyNetworkAclAttributeEgressAclEntriesEgressAclEntry },
        };
    }
    validate() {
        if (Array.isArray(this.egressAclEntry)) {
            $dara.Model.validateArray(this.egressAclEntry);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkAclResponseBodyNetworkAclAttributeEgressAclEntries = CreateNetworkAclResponseBodyNetworkAclAttributeEgressAclEntries;
class CreateNetworkAclResponseBodyNetworkAclAttributeIngressAclEntriesIngressAclEntry extends $dara.Model {
    static names() {
        return {
            description: 'Description',
            networkAclEntryId: 'NetworkAclEntryId',
            networkAclEntryName: 'NetworkAclEntryName',
            policy: 'Policy',
            port: 'Port',
            protocol: 'Protocol',
            sourceCidrIp: 'SourceCidrIp',
        };
    }
    static types() {
        return {
            description: 'string',
            networkAclEntryId: 'string',
            networkAclEntryName: 'string',
            policy: 'string',
            port: 'string',
            protocol: 'string',
            sourceCidrIp: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkAclResponseBodyNetworkAclAttributeIngressAclEntriesIngressAclEntry = CreateNetworkAclResponseBodyNetworkAclAttributeIngressAclEntriesIngressAclEntry;
class CreateNetworkAclResponseBodyNetworkAclAttributeIngressAclEntries extends $dara.Model {
    static names() {
        return {
            ingressAclEntry: 'IngressAclEntry',
        };
    }
    static types() {
        return {
            ingressAclEntry: { 'type': 'array', 'itemType': CreateNetworkAclResponseBodyNetworkAclAttributeIngressAclEntriesIngressAclEntry },
        };
    }
    validate() {
        if (Array.isArray(this.ingressAclEntry)) {
            $dara.Model.validateArray(this.ingressAclEntry);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkAclResponseBodyNetworkAclAttributeIngressAclEntries = CreateNetworkAclResponseBodyNetworkAclAttributeIngressAclEntries;
class CreateNetworkAclResponseBodyNetworkAclAttributeResourcesResource extends $dara.Model {
    static names() {
        return {
            resourceId: 'ResourceId',
            resourceType: 'ResourceType',
            status: 'Status',
        };
    }
    static types() {
        return {
            resourceId: 'string',
            resourceType: 'string',
            status: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkAclResponseBodyNetworkAclAttributeResourcesResource = CreateNetworkAclResponseBodyNetworkAclAttributeResourcesResource;
class CreateNetworkAclResponseBodyNetworkAclAttributeResources extends $dara.Model {
    static names() {
        return {
            resource: 'Resource',
        };
    }
    static types() {
        return {
            resource: { 'type': 'array', 'itemType': CreateNetworkAclResponseBodyNetworkAclAttributeResourcesResource },
        };
    }
    validate() {
        if (Array.isArray(this.resource)) {
            $dara.Model.validateArray(this.resource);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkAclResponseBodyNetworkAclAttributeResources = CreateNetworkAclResponseBodyNetworkAclAttributeResources;
class CreateNetworkAclResponseBodyNetworkAclAttribute extends $dara.Model {
    static names() {
        return {
            creationTime: 'CreationTime',
            description: 'Description',
            egressAclEntries: 'EgressAclEntries',
            ingressAclEntries: 'IngressAclEntries',
            networkAclId: 'NetworkAclId',
            networkAclName: 'NetworkAclName',
            regionId: 'RegionId',
            resources: 'Resources',
            status: 'Status',
            vpcId: 'VpcId',
        };
    }
    static types() {
        return {
            creationTime: 'string',
            description: 'string',
            egressAclEntries: CreateNetworkAclResponseBodyNetworkAclAttributeEgressAclEntries,
            ingressAclEntries: CreateNetworkAclResponseBodyNetworkAclAttributeIngressAclEntries,
            networkAclId: 'string',
            networkAclName: 'string',
            regionId: 'string',
            resources: CreateNetworkAclResponseBodyNetworkAclAttributeResources,
            status: 'string',
            vpcId: 'string',
        };
    }
    validate() {
        if (this.egressAclEntries && typeof this.egressAclEntries.validate === 'function') {
            this.egressAclEntries.validate();
        }
        if (this.ingressAclEntries && typeof this.ingressAclEntries.validate === 'function') {
            this.ingressAclEntries.validate();
        }
        if (this.resources && typeof this.resources.validate === 'function') {
            this.resources.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkAclResponseBodyNetworkAclAttribute = CreateNetworkAclResponseBodyNetworkAclAttribute;
class CreateNetworkAclResponseBody extends $dara.Model {
    static names() {
        return {
            networkAclAttribute: 'NetworkAclAttribute',
            networkAclId: 'NetworkAclId',
            requestId: 'RequestId',
        };
    }
    static types() {
        return {
            networkAclAttribute: CreateNetworkAclResponseBodyNetworkAclAttribute,
            networkAclId: 'string',
            requestId: 'string',
        };
    }
    validate() {
        if (this.networkAclAttribute && typeof this.networkAclAttribute.validate === 'function') {
            this.networkAclAttribute.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkAclResponseBody = CreateNetworkAclResponseBody;
//# sourceMappingURL=CreateNetworkAclResponseBody.js.map