"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.DescribeCapacityReservationsResponseBody = exports.DescribeCapacityReservationsResponseBodyCapacityReservationSet = exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem = exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTags = exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag = exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources = exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource = exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages = exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage 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.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage = DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage;
class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages extends $dara.Model {
    static names() {
        return {
            capacityReservationUsage: 'CapacityReservationUsage',
        };
    }
    static types() {
        return {
            capacityReservationUsage: { 'type': 'array', 'itemType': DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage },
        };
    }
    validate() {
        if (Array.isArray(this.capacityReservationUsage)) {
            $dara.Model.validateArray(this.capacityReservationUsage);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages = DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages;
class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource extends $dara.Model {
    static names() {
        return {
            availableAmount: 'AvailableAmount',
            capacityReservationUsages: 'CapacityReservationUsages',
            instanceType: 'InstanceType',
            totalAmount: 'TotalAmount',
            usedAmount: 'UsedAmount',
            zoneId: 'zoneId',
        };
    }
    static types() {
        return {
            availableAmount: 'number',
            capacityReservationUsages: DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages,
            instanceType: 'string',
            totalAmount: 'number',
            usedAmount: 'number',
            zoneId: 'string',
        };
    }
    validate() {
        if (this.capacityReservationUsages && typeof this.capacityReservationUsages.validate === 'function') {
            this.capacityReservationUsages.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource = DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource;
class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources extends $dara.Model {
    static names() {
        return {
            allocatedResource: 'AllocatedResource',
        };
    }
    static types() {
        return {
            allocatedResource: { 'type': 'array', 'itemType': DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource },
        };
    }
    validate() {
        if (Array.isArray(this.allocatedResource)) {
            $dara.Model.validateArray(this.allocatedResource);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources = DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources;
class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag 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.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag = DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag;
class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTags extends $dara.Model {
    static names() {
        return {
            tag: 'Tag',
        };
    }
    static types() {
        return {
            tag: { 'type': 'array', 'itemType': DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag },
        };
    }
    validate() {
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTags = DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTags;
class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem extends $dara.Model {
    static names() {
        return {
            allocatedResources: 'AllocatedResources',
            capacityReservationOwnerId: 'CapacityReservationOwnerId',
            description: 'Description',
            endTime: 'EndTime',
            endTimeType: 'EndTimeType',
            instanceChargeType: 'InstanceChargeType',
            platform: 'Platform',
            privatePoolOptionsId: 'PrivatePoolOptionsId',
            privatePoolOptionsMatchCriteria: 'PrivatePoolOptionsMatchCriteria',
            privatePoolOptionsName: 'PrivatePoolOptionsName',
            regionId: 'RegionId',
            reservedInstanceId: 'ReservedInstanceId',
            resourceGroupId: 'ResourceGroupId',
            savingPlanId: 'SavingPlanId',
            startTime: 'StartTime',
            startTimeType: 'StartTimeType',
            status: 'Status',
            tags: 'Tags',
            timeSlot: 'TimeSlot',
        };
    }
    static types() {
        return {
            allocatedResources: DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources,
            capacityReservationOwnerId: 'string',
            description: 'string',
            endTime: 'string',
            endTimeType: 'string',
            instanceChargeType: 'string',
            platform: 'string',
            privatePoolOptionsId: 'string',
            privatePoolOptionsMatchCriteria: 'string',
            privatePoolOptionsName: 'string',
            regionId: 'string',
            reservedInstanceId: 'string',
            resourceGroupId: 'string',
            savingPlanId: 'string',
            startTime: 'string',
            startTimeType: 'string',
            status: 'string',
            tags: DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTags,
            timeSlot: 'string',
        };
    }
    validate() {
        if (this.allocatedResources && typeof this.allocatedResources.validate === 'function') {
            this.allocatedResources.validate();
        }
        if (this.tags && typeof this.tags.validate === 'function') {
            this.tags.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem = DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem;
class DescribeCapacityReservationsResponseBodyCapacityReservationSet extends $dara.Model {
    static names() {
        return {
            capacityReservationItem: 'CapacityReservationItem',
        };
    }
    static types() {
        return {
            capacityReservationItem: { 'type': 'array', 'itemType': DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem },
        };
    }
    validate() {
        if (Array.isArray(this.capacityReservationItem)) {
            $dara.Model.validateArray(this.capacityReservationItem);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCapacityReservationsResponseBodyCapacityReservationSet = DescribeCapacityReservationsResponseBodyCapacityReservationSet;
class DescribeCapacityReservationsResponseBody extends $dara.Model {
    static names() {
        return {
            capacityReservationSet: 'CapacityReservationSet',
            maxResults: 'MaxResults',
            nextToken: 'NextToken',
            requestId: 'RequestId',
            totalCount: 'TotalCount',
        };
    }
    static types() {
        return {
            capacityReservationSet: DescribeCapacityReservationsResponseBodyCapacityReservationSet,
            maxResults: 'number',
            nextToken: 'string',
            requestId: 'string',
            totalCount: 'number',
        };
    }
    validate() {
        if (this.capacityReservationSet && typeof this.capacityReservationSet.validate === 'function') {
            this.capacityReservationSet.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCapacityReservationsResponseBody = DescribeCapacityReservationsResponseBody;
//# sourceMappingURL=DescribeCapacityReservationsResponseBody.js.map