"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.DescribeInstanceAttributeResponseBody = exports.DescribeInstanceAttributeResponseBodyVpcAttributes = exports.DescribeInstanceAttributeResponseBodyVpcAttributesPrivateIpAddress = exports.DescribeInstanceAttributeResponseBodySecurityGroupIds = exports.DescribeInstanceAttributeResponseBodyPublicIpAddress = exports.DescribeInstanceAttributeResponseBodyOperationLocks = exports.DescribeInstanceAttributeResponseBodyOperationLocksLockReason = exports.DescribeInstanceAttributeResponseBodyNetworkOptions = exports.DescribeInstanceAttributeResponseBodyInnerIpAddress = exports.DescribeInstanceAttributeResponseBodyEipAddress = exports.DescribeInstanceAttributeResponseBodyDedicatedHostAttribute = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeInstanceAttributeResponseBodyDedicatedHostAttribute extends $dara.Model {
    static names() {
        return {
            dedicatedHostId: 'DedicatedHostId',
            dedicatedHostName: 'DedicatedHostName',
        };
    }
    static types() {
        return {
            dedicatedHostId: 'string',
            dedicatedHostName: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceAttributeResponseBodyDedicatedHostAttribute = DescribeInstanceAttributeResponseBodyDedicatedHostAttribute;
class DescribeInstanceAttributeResponseBodyEipAddress extends $dara.Model {
    static names() {
        return {
            allocationId: 'AllocationId',
            bandwidth: 'Bandwidth',
            internetChargeType: 'InternetChargeType',
            ipAddress: 'IpAddress',
        };
    }
    static types() {
        return {
            allocationId: 'string',
            bandwidth: 'number',
            internetChargeType: 'string',
            ipAddress: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceAttributeResponseBodyEipAddress = DescribeInstanceAttributeResponseBodyEipAddress;
class DescribeInstanceAttributeResponseBodyInnerIpAddress extends $dara.Model {
    static names() {
        return {
            ipAddress: 'IpAddress',
        };
    }
    static types() {
        return {
            ipAddress: { 'type': 'array', 'itemType': 'string' },
        };
    }
    validate() {
        if (Array.isArray(this.ipAddress)) {
            $dara.Model.validateArray(this.ipAddress);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceAttributeResponseBodyInnerIpAddress = DescribeInstanceAttributeResponseBodyInnerIpAddress;
class DescribeInstanceAttributeResponseBodyNetworkOptions extends $dara.Model {
    static names() {
        return {
            bandwidthWeighting: 'BandwidthWeighting',
            enableJumboFrame: 'EnableJumboFrame',
            enableNetworkEncryption: 'EnableNetworkEncryption',
        };
    }
    static types() {
        return {
            bandwidthWeighting: 'string',
            enableJumboFrame: 'boolean',
            enableNetworkEncryption: 'boolean',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceAttributeResponseBodyNetworkOptions = DescribeInstanceAttributeResponseBodyNetworkOptions;
class DescribeInstanceAttributeResponseBodyOperationLocksLockReason extends $dara.Model {
    static names() {
        return {
            lockReason: 'LockReason',
        };
    }
    static types() {
        return {
            lockReason: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceAttributeResponseBodyOperationLocksLockReason = DescribeInstanceAttributeResponseBodyOperationLocksLockReason;
class DescribeInstanceAttributeResponseBodyOperationLocks extends $dara.Model {
    static names() {
        return {
            lockReason: 'LockReason',
        };
    }
    static types() {
        return {
            lockReason: { 'type': 'array', 'itemType': DescribeInstanceAttributeResponseBodyOperationLocksLockReason },
        };
    }
    validate() {
        if (Array.isArray(this.lockReason)) {
            $dara.Model.validateArray(this.lockReason);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceAttributeResponseBodyOperationLocks = DescribeInstanceAttributeResponseBodyOperationLocks;
class DescribeInstanceAttributeResponseBodyPublicIpAddress extends $dara.Model {
    static names() {
        return {
            ipAddress: 'IpAddress',
        };
    }
    static types() {
        return {
            ipAddress: { 'type': 'array', 'itemType': 'string' },
        };
    }
    validate() {
        if (Array.isArray(this.ipAddress)) {
            $dara.Model.validateArray(this.ipAddress);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceAttributeResponseBodyPublicIpAddress = DescribeInstanceAttributeResponseBodyPublicIpAddress;
class DescribeInstanceAttributeResponseBodySecurityGroupIds extends $dara.Model {
    static names() {
        return {
            securityGroupId: 'SecurityGroupId',
        };
    }
    static types() {
        return {
            securityGroupId: { 'type': 'array', 'itemType': 'string' },
        };
    }
    validate() {
        if (Array.isArray(this.securityGroupId)) {
            $dara.Model.validateArray(this.securityGroupId);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceAttributeResponseBodySecurityGroupIds = DescribeInstanceAttributeResponseBodySecurityGroupIds;
class DescribeInstanceAttributeResponseBodyVpcAttributesPrivateIpAddress extends $dara.Model {
    static names() {
        return {
            ipAddress: 'IpAddress',
        };
    }
    static types() {
        return {
            ipAddress: { 'type': 'array', 'itemType': 'string' },
        };
    }
    validate() {
        if (Array.isArray(this.ipAddress)) {
            $dara.Model.validateArray(this.ipAddress);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceAttributeResponseBodyVpcAttributesPrivateIpAddress = DescribeInstanceAttributeResponseBodyVpcAttributesPrivateIpAddress;
class DescribeInstanceAttributeResponseBodyVpcAttributes extends $dara.Model {
    static names() {
        return {
            natIpAddress: 'NatIpAddress',
            privateIpAddress: 'PrivateIpAddress',
            vSwitchId: 'VSwitchId',
            vpcId: 'VpcId',
        };
    }
    static types() {
        return {
            natIpAddress: 'string',
            privateIpAddress: DescribeInstanceAttributeResponseBodyVpcAttributesPrivateIpAddress,
            vSwitchId: 'string',
            vpcId: 'string',
        };
    }
    validate() {
        if (this.privateIpAddress && typeof this.privateIpAddress.validate === 'function') {
            this.privateIpAddress.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceAttributeResponseBodyVpcAttributes = DescribeInstanceAttributeResponseBodyVpcAttributes;
class DescribeInstanceAttributeResponseBody extends $dara.Model {
    static names() {
        return {
            clusterId: 'ClusterId',
            cpu: 'Cpu',
            creationTime: 'CreationTime',
            creditSpecification: 'CreditSpecification',
            dedicatedHostAttribute: 'DedicatedHostAttribute',
            description: 'Description',
            eipAddress: 'EipAddress',
            enableJumboFrame: 'EnableJumboFrame',
            enableNetworkEncryption: 'EnableNetworkEncryption',
            expiredTime: 'ExpiredTime',
            hostName: 'HostName',
            imageId: 'ImageId',
            innerIpAddress: 'InnerIpAddress',
            instanceChargeType: 'InstanceChargeType',
            instanceId: 'InstanceId',
            instanceName: 'InstanceName',
            instanceNetworkType: 'InstanceNetworkType',
            instanceType: 'InstanceType',
            internetChargeType: 'InternetChargeType',
            internetMaxBandwidthIn: 'InternetMaxBandwidthIn',
            internetMaxBandwidthOut: 'InternetMaxBandwidthOut',
            ioOptimized: 'IoOptimized',
            memory: 'Memory',
            networkOptions: 'NetworkOptions',
            operationLocks: 'OperationLocks',
            publicIpAddress: 'PublicIpAddress',
            regionId: 'RegionId',
            requestId: 'RequestId',
            securityGroupIds: 'SecurityGroupIds',
            serialNumber: 'SerialNumber',
            status: 'Status',
            stoppedMode: 'StoppedMode',
            vlanId: 'VlanId',
            vpcAttributes: 'VpcAttributes',
            zoneId: 'ZoneId',
        };
    }
    static types() {
        return {
            clusterId: 'string',
            cpu: 'number',
            creationTime: 'string',
            creditSpecification: 'string',
            dedicatedHostAttribute: DescribeInstanceAttributeResponseBodyDedicatedHostAttribute,
            description: 'string',
            eipAddress: DescribeInstanceAttributeResponseBodyEipAddress,
            enableJumboFrame: 'boolean',
            enableNetworkEncryption: 'boolean',
            expiredTime: 'string',
            hostName: 'string',
            imageId: 'string',
            innerIpAddress: DescribeInstanceAttributeResponseBodyInnerIpAddress,
            instanceChargeType: 'string',
            instanceId: 'string',
            instanceName: 'string',
            instanceNetworkType: 'string',
            instanceType: 'string',
            internetChargeType: 'string',
            internetMaxBandwidthIn: 'number',
            internetMaxBandwidthOut: 'number',
            ioOptimized: 'string',
            memory: 'number',
            networkOptions: DescribeInstanceAttributeResponseBodyNetworkOptions,
            operationLocks: DescribeInstanceAttributeResponseBodyOperationLocks,
            publicIpAddress: DescribeInstanceAttributeResponseBodyPublicIpAddress,
            regionId: 'string',
            requestId: 'string',
            securityGroupIds: DescribeInstanceAttributeResponseBodySecurityGroupIds,
            serialNumber: 'string',
            status: 'string',
            stoppedMode: 'string',
            vlanId: 'string',
            vpcAttributes: DescribeInstanceAttributeResponseBodyVpcAttributes,
            zoneId: 'string',
        };
    }
    validate() {
        if (this.dedicatedHostAttribute && typeof this.dedicatedHostAttribute.validate === 'function') {
            this.dedicatedHostAttribute.validate();
        }
        if (this.eipAddress && typeof this.eipAddress.validate === 'function') {
            this.eipAddress.validate();
        }
        if (this.innerIpAddress && typeof this.innerIpAddress.validate === 'function') {
            this.innerIpAddress.validate();
        }
        if (this.networkOptions && typeof this.networkOptions.validate === 'function') {
            this.networkOptions.validate();
        }
        if (this.operationLocks && typeof this.operationLocks.validate === 'function') {
            this.operationLocks.validate();
        }
        if (this.publicIpAddress && typeof this.publicIpAddress.validate === 'function') {
            this.publicIpAddress.validate();
        }
        if (this.securityGroupIds && typeof this.securityGroupIds.validate === 'function') {
            this.securityGroupIds.validate();
        }
        if (this.vpcAttributes && typeof this.vpcAttributes.validate === 'function') {
            this.vpcAttributes.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceAttributeResponseBody = DescribeInstanceAttributeResponseBody;
//# sourceMappingURL=DescribeInstanceAttributeResponseBody.js.map