"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.DescribeAutoProvisioningGroupsResponseBody = exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups = exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup = exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification = exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTags = exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag = exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions = exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions = exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigs = exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig extends $dara.Model {
    static names() {
        return {
            instanceType: 'InstanceType',
            maxPrice: 'MaxPrice',
            priority: 'Priority',
            vSwitchId: 'VSwitchId',
            weightedCapacity: 'WeightedCapacity',
        };
    }
    static types() {
        return {
            instanceType: 'string',
            maxPrice: 'number',
            priority: 'number',
            vSwitchId: 'string',
            weightedCapacity: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig = DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig;
class DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigs extends $dara.Model {
    static names() {
        return {
            launchTemplateConfig: 'LaunchTemplateConfig',
        };
    }
    static types() {
        return {
            launchTemplateConfig: { 'type': 'array', 'itemType': DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig },
        };
    }
    validate() {
        if (Array.isArray(this.launchTemplateConfig)) {
            $dara.Model.validateArray(this.launchTemplateConfig);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigs = DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigs;
class DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions extends $dara.Model {
    static names() {
        return {
            allocationStrategy: 'AllocationStrategy',
        };
    }
    static types() {
        return {
            allocationStrategy: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions = DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions;
class DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions extends $dara.Model {
    static names() {
        return {
            allocationStrategy: 'AllocationStrategy',
            instanceInterruptionBehavior: 'InstanceInterruptionBehavior',
            instancePoolsToUseCount: 'InstancePoolsToUseCount',
        };
    }
    static types() {
        return {
            allocationStrategy: 'string',
            instanceInterruptionBehavior: 'string',
            instancePoolsToUseCount: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions = DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions;
class DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag 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.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag = DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag;
class DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTags extends $dara.Model {
    static names() {
        return {
            tag: 'Tag',
        };
    }
    static types() {
        return {
            tag: { 'type': 'array', 'itemType': DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag },
        };
    }
    validate() {
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTags = DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTags;
class DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification extends $dara.Model {
    static names() {
        return {
            defaultTargetCapacityType: 'DefaultTargetCapacityType',
            payAsYouGoTargetCapacity: 'PayAsYouGoTargetCapacity',
            spotTargetCapacity: 'SpotTargetCapacity',
            totalTargetCapacity: 'TotalTargetCapacity',
        };
    }
    static types() {
        return {
            defaultTargetCapacityType: 'string',
            payAsYouGoTargetCapacity: 'number',
            spotTargetCapacity: 'number',
            totalTargetCapacity: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification = DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification;
class DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup extends $dara.Model {
    static names() {
        return {
            autoProvisioningGroupId: 'AutoProvisioningGroupId',
            autoProvisioningGroupName: 'AutoProvisioningGroupName',
            autoProvisioningGroupType: 'AutoProvisioningGroupType',
            creationTime: 'CreationTime',
            excessCapacityTerminationPolicy: 'ExcessCapacityTerminationPolicy',
            launchTemplateConfigs: 'LaunchTemplateConfigs',
            launchTemplateId: 'LaunchTemplateId',
            launchTemplateVersion: 'LaunchTemplateVersion',
            maxSpotPrice: 'MaxSpotPrice',
            payAsYouGoOptions: 'PayAsYouGoOptions',
            regionId: 'RegionId',
            resourceGroupId: 'ResourceGroupId',
            spotOptions: 'SpotOptions',
            state: 'State',
            status: 'Status',
            tags: 'Tags',
            targetCapacitySpecification: 'TargetCapacitySpecification',
            terminateInstances: 'TerminateInstances',
            terminateInstancesWithExpiration: 'TerminateInstancesWithExpiration',
            validFrom: 'ValidFrom',
            validUntil: 'ValidUntil',
        };
    }
    static types() {
        return {
            autoProvisioningGroupId: 'string',
            autoProvisioningGroupName: 'string',
            autoProvisioningGroupType: 'string',
            creationTime: 'string',
            excessCapacityTerminationPolicy: 'string',
            launchTemplateConfigs: DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigs,
            launchTemplateId: 'string',
            launchTemplateVersion: 'string',
            maxSpotPrice: 'number',
            payAsYouGoOptions: DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions,
            regionId: 'string',
            resourceGroupId: 'string',
            spotOptions: DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions,
            state: 'string',
            status: 'string',
            tags: DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTags,
            targetCapacitySpecification: DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification,
            terminateInstances: 'boolean',
            terminateInstancesWithExpiration: 'boolean',
            validFrom: 'string',
            validUntil: 'string',
        };
    }
    validate() {
        if (this.launchTemplateConfigs && typeof this.launchTemplateConfigs.validate === 'function') {
            this.launchTemplateConfigs.validate();
        }
        if (this.payAsYouGoOptions && typeof this.payAsYouGoOptions.validate === 'function') {
            this.payAsYouGoOptions.validate();
        }
        if (this.spotOptions && typeof this.spotOptions.validate === 'function') {
            this.spotOptions.validate();
        }
        if (this.tags && typeof this.tags.validate === 'function') {
            this.tags.validate();
        }
        if (this.targetCapacitySpecification && typeof this.targetCapacitySpecification.validate === 'function') {
            this.targetCapacitySpecification.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup = DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup;
class DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups extends $dara.Model {
    static names() {
        return {
            autoProvisioningGroup: 'AutoProvisioningGroup',
        };
    }
    static types() {
        return {
            autoProvisioningGroup: { 'type': 'array', 'itemType': DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup },
        };
    }
    validate() {
        if (Array.isArray(this.autoProvisioningGroup)) {
            $dara.Model.validateArray(this.autoProvisioningGroup);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups = DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups;
class DescribeAutoProvisioningGroupsResponseBody extends $dara.Model {
    static names() {
        return {
            autoProvisioningGroups: 'AutoProvisioningGroups',
            pageNumber: 'PageNumber',
            pageSize: 'PageSize',
            requestId: 'RequestId',
            totalCount: 'TotalCount',
        };
    }
    static types() {
        return {
            autoProvisioningGroups: DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups,
            pageNumber: 'number',
            pageSize: 'number',
            requestId: 'string',
            totalCount: 'number',
        };
    }
    validate() {
        if (this.autoProvisioningGroups && typeof this.autoProvisioningGroups.validate === 'function') {
            this.autoProvisioningGroups.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeAutoProvisioningGroupsResponseBody = DescribeAutoProvisioningGroupsResponseBody;
//# sourceMappingURL=DescribeAutoProvisioningGroupsResponseBody.js.map