"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.DescribeInstanceHistoryEventsResponseBody = exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSet = exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType = exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute = exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions = exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks = exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk = exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType = exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus extends $dara.Model {
    static names() {
        return {
            code: 'Code',
            name: 'Name',
        };
    }
    static types() {
        return {
            code: 'number',
            name: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus = DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus;
class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType extends $dara.Model {
    static names() {
        return {
            code: 'Code',
            name: 'Name',
        };
    }
    static types() {
        return {
            code: 'number',
            name: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType = DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType;
class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk extends $dara.Model {
    static names() {
        return {
            creationTime: 'CreationTime',
            deviceCategory: 'DeviceCategory',
            deviceSize: 'DeviceSize',
            deviceType: 'DeviceType',
            releaseTime: 'ReleaseTime',
        };
    }
    static types() {
        return {
            creationTime: 'string',
            deviceCategory: 'string',
            deviceSize: 'string',
            deviceType: 'string',
            releaseTime: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk = DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk;
class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks extends $dara.Model {
    static names() {
        return {
            inactiveDisk: 'InactiveDisk',
        };
    }
    static types() {
        return {
            inactiveDisk: { 'type': 'array', 'itemType': DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk },
        };
    }
    validate() {
        if (Array.isArray(this.inactiveDisk)) {
            $dara.Model.validateArray(this.inactiveDisk);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks = DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks;
class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions extends $dara.Model {
    static names() {
        return {
            migrationOption: 'MigrationOption',
        };
    }
    static types() {
        return {
            migrationOption: { 'type': 'array', 'itemType': 'string' },
        };
    }
    validate() {
        if (Array.isArray(this.migrationOption)) {
            $dara.Model.validateArray(this.migrationOption);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions = DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions;
class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute extends $dara.Model {
    static names() {
        return {
            canAccept: 'CanAccept',
            code: 'Code',
            device: 'Device',
            diskId: 'DiskId',
            hostId: 'HostId',
            hostType: 'HostType',
            inactiveDisks: 'InactiveDisks',
            metricName: 'MetricName',
            metricValue: 'MetricValue',
            migrationOptions: 'MigrationOptions',
            onlineRepairPolicy: 'OnlineRepairPolicy',
            punishDomain: 'PunishDomain',
            punishType: 'PunishType',
            punishUrl: 'PunishUrl',
            rack: 'Rack',
            responseResult: 'ResponseResult',
        };
    }
    static types() {
        return {
            canAccept: 'string',
            code: 'string',
            device: 'string',
            diskId: 'string',
            hostId: 'string',
            hostType: 'string',
            inactiveDisks: DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks,
            metricName: 'string',
            metricValue: 'string',
            migrationOptions: DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions,
            onlineRepairPolicy: 'string',
            punishDomain: 'string',
            punishType: 'string',
            punishUrl: 'string',
            rack: 'string',
            responseResult: 'string',
        };
    }
    validate() {
        if (this.inactiveDisks && typeof this.inactiveDisks.validate === 'function') {
            this.inactiveDisks.validate();
        }
        if (this.migrationOptions && typeof this.migrationOptions.validate === 'function') {
            this.migrationOptions.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute = DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute;
class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType extends $dara.Model {
    static names() {
        return {
            eventCycleStatus: 'EventCycleStatus',
            eventFinishTime: 'EventFinishTime',
            eventId: 'EventId',
            eventPublishTime: 'EventPublishTime',
            eventType: 'EventType',
            extendedAttribute: 'ExtendedAttribute',
            impactLevel: 'ImpactLevel',
            instanceId: 'InstanceId',
            notBefore: 'NotBefore',
            reason: 'Reason',
            reasonCode: 'ReasonCode',
            resourceType: 'ResourceType',
        };
    }
    static types() {
        return {
            eventCycleStatus: DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus,
            eventFinishTime: 'string',
            eventId: 'string',
            eventPublishTime: 'string',
            eventType: DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType,
            extendedAttribute: DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute,
            impactLevel: 'string',
            instanceId: 'string',
            notBefore: 'string',
            reason: 'string',
            reasonCode: 'string',
            resourceType: 'string',
        };
    }
    validate() {
        if (this.eventCycleStatus && typeof this.eventCycleStatus.validate === 'function') {
            this.eventCycleStatus.validate();
        }
        if (this.eventType && typeof this.eventType.validate === 'function') {
            this.eventType.validate();
        }
        if (this.extendedAttribute && typeof this.extendedAttribute.validate === 'function') {
            this.extendedAttribute.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType = DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType;
class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSet extends $dara.Model {
    static names() {
        return {
            instanceSystemEventType: 'InstanceSystemEventType',
        };
    }
    static types() {
        return {
            instanceSystemEventType: { 'type': 'array', 'itemType': DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType },
        };
    }
    validate() {
        if (Array.isArray(this.instanceSystemEventType)) {
            $dara.Model.validateArray(this.instanceSystemEventType);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSet = DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSet;
class DescribeInstanceHistoryEventsResponseBody extends $dara.Model {
    static names() {
        return {
            instanceSystemEventSet: 'InstanceSystemEventSet',
            nextToken: 'NextToken',
            pageNumber: 'PageNumber',
            pageSize: 'PageSize',
            requestId: 'RequestId',
            totalCount: 'TotalCount',
        };
    }
    static types() {
        return {
            instanceSystemEventSet: DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSet,
            nextToken: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            requestId: 'string',
            totalCount: 'number',
        };
    }
    validate() {
        if (this.instanceSystemEventSet && typeof this.instanceSystemEventSet.validate === 'function') {
            this.instanceSystemEventSet.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceHistoryEventsResponseBody = DescribeInstanceHistoryEventsResponseBody;
//# sourceMappingURL=DescribeInstanceHistoryEventsResponseBody.js.map