"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.CreateAutoProvisioningGroupResponseBody = exports.CreateAutoProvisioningGroupResponseBodyLaunchResults = exports.CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult = exports.CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds extends $dara.Model {
    static names() {
        return {
            instanceId: 'InstanceId',
        };
    }
    static types() {
        return {
            instanceId: { 'type': 'array', 'itemType': 'string' },
        };
    }
    validate() {
        if (Array.isArray(this.instanceId)) {
            $dara.Model.validateArray(this.instanceId);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds = CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds;
class CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult extends $dara.Model {
    static names() {
        return {
            amount: 'Amount',
            errorCode: 'ErrorCode',
            errorMsg: 'ErrorMsg',
            instanceIds: 'InstanceIds',
            instanceType: 'InstanceType',
            spotStrategy: 'SpotStrategy',
            zoneId: 'ZoneId',
        };
    }
    static types() {
        return {
            amount: 'number',
            errorCode: 'string',
            errorMsg: 'string',
            instanceIds: CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds,
            instanceType: 'string',
            spotStrategy: 'string',
            zoneId: 'string',
        };
    }
    validate() {
        if (this.instanceIds && typeof this.instanceIds.validate === 'function') {
            this.instanceIds.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult = CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult;
class CreateAutoProvisioningGroupResponseBodyLaunchResults extends $dara.Model {
    static names() {
        return {
            launchResult: 'LaunchResult',
        };
    }
    static types() {
        return {
            launchResult: { 'type': 'array', 'itemType': CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult },
        };
    }
    validate() {
        if (Array.isArray(this.launchResult)) {
            $dara.Model.validateArray(this.launchResult);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateAutoProvisioningGroupResponseBodyLaunchResults = CreateAutoProvisioningGroupResponseBodyLaunchResults;
class CreateAutoProvisioningGroupResponseBody extends $dara.Model {
    static names() {
        return {
            autoProvisioningGroupId: 'AutoProvisioningGroupId',
            launchResults: 'LaunchResults',
            requestId: 'RequestId',
        };
    }
    static types() {
        return {
            autoProvisioningGroupId: 'string',
            launchResults: CreateAutoProvisioningGroupResponseBodyLaunchResults,
            requestId: 'string',
        };
    }
    validate() {
        if (this.launchResults && typeof this.launchResults.validate === 'function') {
            this.launchResults.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateAutoProvisioningGroupResponseBody = CreateAutoProvisioningGroupResponseBody;
//# sourceMappingURL=CreateAutoProvisioningGroupResponseBody.js.map