"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.DescribeInstanceMaintenanceAttributesResponseBody = exports.DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributes = exports.DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute = exports.DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindows = exports.DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow = exports.DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance = exports.DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenanceSupportedValues = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenanceSupportedValues extends $dara.Model {
    static names() {
        return {
            supportedValue: 'SupportedValue',
        };
    }
    static types() {
        return {
            supportedValue: { 'type': 'array', 'itemType': 'string' },
        };
    }
    validate() {
        if (Array.isArray(this.supportedValue)) {
            $dara.Model.validateArray(this.supportedValue);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenanceSupportedValues = DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenanceSupportedValues;
class DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance extends $dara.Model {
    static names() {
        return {
            defaultValue: 'DefaultValue',
            supportedValues: 'SupportedValues',
            value: 'Value',
        };
    }
    static types() {
        return {
            defaultValue: 'string',
            supportedValues: DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenanceSupportedValues,
            value: 'string',
        };
    }
    validate() {
        if (this.supportedValues && typeof this.supportedValues.validate === 'function') {
            this.supportedValues.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance = DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance;
class DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow extends $dara.Model {
    static names() {
        return {
            endTime: 'EndTime',
            startTime: 'StartTime',
        };
    }
    static types() {
        return {
            endTime: 'string',
            startTime: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow = DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow;
class DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindows extends $dara.Model {
    static names() {
        return {
            maintenanceWindow: 'MaintenanceWindow',
        };
    }
    static types() {
        return {
            maintenanceWindow: { 'type': 'array', 'itemType': DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow },
        };
    }
    validate() {
        if (Array.isArray(this.maintenanceWindow)) {
            $dara.Model.validateArray(this.maintenanceWindow);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindows = DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindows;
class DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute extends $dara.Model {
    static names() {
        return {
            actionOnMaintenance: 'ActionOnMaintenance',
            instanceId: 'InstanceId',
            maintenanceWindows: 'MaintenanceWindows',
            notifyOnMaintenance: 'NotifyOnMaintenance',
        };
    }
    static types() {
        return {
            actionOnMaintenance: DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance,
            instanceId: 'string',
            maintenanceWindows: DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindows,
            notifyOnMaintenance: 'boolean',
        };
    }
    validate() {
        if (this.actionOnMaintenance && typeof this.actionOnMaintenance.validate === 'function') {
            this.actionOnMaintenance.validate();
        }
        if (this.maintenanceWindows && typeof this.maintenanceWindows.validate === 'function') {
            this.maintenanceWindows.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute = DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute;
class DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributes extends $dara.Model {
    static names() {
        return {
            maintenanceAttribute: 'MaintenanceAttribute',
        };
    }
    static types() {
        return {
            maintenanceAttribute: { 'type': 'array', 'itemType': DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute },
        };
    }
    validate() {
        if (Array.isArray(this.maintenanceAttribute)) {
            $dara.Model.validateArray(this.maintenanceAttribute);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributes = DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributes;
class DescribeInstanceMaintenanceAttributesResponseBody extends $dara.Model {
    static names() {
        return {
            maintenanceAttributes: 'MaintenanceAttributes',
            pageNumber: 'PageNumber',
            pageSize: 'PageSize',
            requestId: 'RequestId',
            totalCount: 'TotalCount',
        };
    }
    static types() {
        return {
            maintenanceAttributes: DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributes,
            pageNumber: 'number',
            pageSize: 'number',
            requestId: 'string',
            totalCount: 'number',
        };
    }
    validate() {
        if (this.maintenanceAttributes && typeof this.maintenanceAttributes.validate === 'function') {
            this.maintenanceAttributes.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeInstanceMaintenanceAttributesResponseBody = DescribeInstanceMaintenanceAttributesResponseBody;
//# sourceMappingURL=DescribeInstanceMaintenanceAttributesResponseBody.js.map