"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.DescribeElasticityAssurancesResponseBody = exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSet = exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem = exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTags = exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag = exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemRecurrenceRules = exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemRecurrenceRulesRecurrenceRule = exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResources = exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource = exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsages = exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsagesElasticityAssuranceUsage = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsagesElasticityAssuranceUsage extends $dara.Model {
    static names() {
        return {
            accountId: 'AccountId',
            serviceName: 'ServiceName',
            usedAmount: 'UsedAmount',
        };
    }
    static types() {
        return {
            accountId: 'string',
            serviceName: 'string',
            usedAmount: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsagesElasticityAssuranceUsage = DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsagesElasticityAssuranceUsage;
class DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsages extends $dara.Model {
    static names() {
        return {
            elasticityAssuranceUsage: 'ElasticityAssuranceUsage',
        };
    }
    static types() {
        return {
            elasticityAssuranceUsage: { 'type': 'array', 'itemType': DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsagesElasticityAssuranceUsage },
        };
    }
    validate() {
        if (Array.isArray(this.elasticityAssuranceUsage)) {
            $dara.Model.validateArray(this.elasticityAssuranceUsage);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsages = DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsages;
class DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource extends $dara.Model {
    static names() {
        return {
            availableAmount: 'AvailableAmount',
            elasticityAssuranceUsages: 'ElasticityAssuranceUsages',
            instanceType: 'InstanceType',
            totalAmount: 'TotalAmount',
            usedAmount: 'UsedAmount',
            zoneId: 'zoneId',
        };
    }
    static types() {
        return {
            availableAmount: 'number',
            elasticityAssuranceUsages: DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsages,
            instanceType: 'string',
            totalAmount: 'number',
            usedAmount: 'number',
            zoneId: 'string',
        };
    }
    validate() {
        if (this.elasticityAssuranceUsages && typeof this.elasticityAssuranceUsages.validate === 'function') {
            this.elasticityAssuranceUsages.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource = DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource;
class DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResources extends $dara.Model {
    static names() {
        return {
            allocatedResource: 'AllocatedResource',
        };
    }
    static types() {
        return {
            allocatedResource: { 'type': 'array', 'itemType': DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource },
        };
    }
    validate() {
        if (Array.isArray(this.allocatedResource)) {
            $dara.Model.validateArray(this.allocatedResource);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResources = DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResources;
class DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemRecurrenceRulesRecurrenceRule extends $dara.Model {
    static names() {
        return {
            endHour: 'EndHour',
            recurrenceType: 'RecurrenceType',
            recurrenceValue: 'RecurrenceValue',
            startHour: 'StartHour',
        };
    }
    static types() {
        return {
            endHour: 'number',
            recurrenceType: 'string',
            recurrenceValue: 'string',
            startHour: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemRecurrenceRulesRecurrenceRule = DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemRecurrenceRulesRecurrenceRule;
class DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemRecurrenceRules extends $dara.Model {
    static names() {
        return {
            recurrenceRule: 'RecurrenceRule',
        };
    }
    static types() {
        return {
            recurrenceRule: { 'type': 'array', 'itemType': DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemRecurrenceRulesRecurrenceRule },
        };
    }
    validate() {
        if (Array.isArray(this.recurrenceRule)) {
            $dara.Model.validateArray(this.recurrenceRule);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemRecurrenceRules = DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemRecurrenceRules;
class DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag extends $dara.Model {
    static names() {
        return {
            tagKey: 'TagKey',
            tagValue: 'TagValue',
        };
    }
    static types() {
        return {
            tagKey: 'string',
            tagValue: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag = DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag;
class DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTags extends $dara.Model {
    static names() {
        return {
            tag: 'Tag',
        };
    }
    static types() {
        return {
            tag: { 'type': 'array', 'itemType': DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag },
        };
    }
    validate() {
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTags = DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTags;
class DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem extends $dara.Model {
    static names() {
        return {
            allocatedResources: 'AllocatedResources',
            description: 'Description',
            elasticityAssuranceOwnerId: 'ElasticityAssuranceOwnerId',
            endTime: 'EndTime',
            instanceChargeType: 'InstanceChargeType',
            latestStartTime: 'LatestStartTime',
            packageType: 'PackageType',
            privatePoolOptionsId: 'PrivatePoolOptionsId',
            privatePoolOptionsMatchCriteria: 'PrivatePoolOptionsMatchCriteria',
            privatePoolOptionsName: 'PrivatePoolOptionsName',
            recurrenceRules: 'RecurrenceRules',
            regionId: 'RegionId',
            resourceGroupId: 'ResourceGroupId',
            startTime: 'StartTime',
            startTimeType: 'StartTimeType',
            status: 'Status',
            tags: 'Tags',
            totalAssuranceTimes: 'TotalAssuranceTimes',
            usedAssuranceTimes: 'UsedAssuranceTimes',
        };
    }
    static types() {
        return {
            allocatedResources: DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResources,
            description: 'string',
            elasticityAssuranceOwnerId: 'string',
            endTime: 'string',
            instanceChargeType: 'string',
            latestStartTime: 'string',
            packageType: 'string',
            privatePoolOptionsId: 'string',
            privatePoolOptionsMatchCriteria: 'string',
            privatePoolOptionsName: 'string',
            recurrenceRules: DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemRecurrenceRules,
            regionId: 'string',
            resourceGroupId: 'string',
            startTime: 'string',
            startTimeType: 'string',
            status: 'string',
            tags: DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTags,
            totalAssuranceTimes: 'string',
            usedAssuranceTimes: 'number',
        };
    }
    validate() {
        if (this.allocatedResources && typeof this.allocatedResources.validate === 'function') {
            this.allocatedResources.validate();
        }
        if (this.recurrenceRules && typeof this.recurrenceRules.validate === 'function') {
            this.recurrenceRules.validate();
        }
        if (this.tags && typeof this.tags.validate === 'function') {
            this.tags.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem = DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem;
class DescribeElasticityAssurancesResponseBodyElasticityAssuranceSet extends $dara.Model {
    static names() {
        return {
            elasticityAssuranceItem: 'ElasticityAssuranceItem',
        };
    }
    static types() {
        return {
            elasticityAssuranceItem: { 'type': 'array', 'itemType': DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem },
        };
    }
    validate() {
        if (Array.isArray(this.elasticityAssuranceItem)) {
            $dara.Model.validateArray(this.elasticityAssuranceItem);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeElasticityAssurancesResponseBodyElasticityAssuranceSet = DescribeElasticityAssurancesResponseBodyElasticityAssuranceSet;
class DescribeElasticityAssurancesResponseBody extends $dara.Model {
    static names() {
        return {
            elasticityAssuranceSet: 'ElasticityAssuranceSet',
            maxResults: 'MaxResults',
            nextToken: 'NextToken',
            requestId: 'RequestId',
            totalCount: 'TotalCount',
        };
    }
    static types() {
        return {
            elasticityAssuranceSet: DescribeElasticityAssurancesResponseBodyElasticityAssuranceSet,
            maxResults: 'number',
            nextToken: 'string',
            requestId: 'string',
            totalCount: 'number',
        };
    }
    validate() {
        if (this.elasticityAssuranceSet && typeof this.elasticityAssuranceSet.validate === 'function') {
            this.elasticityAssuranceSet.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeElasticityAssurancesResponseBody = DescribeElasticityAssurancesResponseBody;
//# sourceMappingURL=DescribeElasticityAssurancesResponseBody.js.map