"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.CreateInstanceRequest = exports.CreateInstanceRequestTag = exports.CreateInstanceRequestDataDisk = exports.CreateInstanceRequestArn = exports.CreateInstanceRequestSystemDisk = exports.CreateInstanceRequestPrivatePoolOptions = exports.CreateInstanceRequestHibernationOptions = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class CreateInstanceRequestHibernationOptions extends $dara.Model {
    static names() {
        return {
            configured: 'Configured',
        };
    }
    static types() {
        return {
            configured: 'boolean',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateInstanceRequestHibernationOptions = CreateInstanceRequestHibernationOptions;
class CreateInstanceRequestPrivatePoolOptions extends $dara.Model {
    static names() {
        return {
            id: 'Id',
            matchCriteria: 'MatchCriteria',
        };
    }
    static types() {
        return {
            id: 'string',
            matchCriteria: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateInstanceRequestPrivatePoolOptions = CreateInstanceRequestPrivatePoolOptions;
class CreateInstanceRequestSystemDisk extends $dara.Model {
    static names() {
        return {
            category: 'Category',
            description: 'Description',
            diskName: 'DiskName',
            performanceLevel: 'PerformanceLevel',
            size: 'Size',
            storageClusterId: 'StorageClusterId',
        };
    }
    static types() {
        return {
            category: 'string',
            description: 'string',
            diskName: 'string',
            performanceLevel: 'string',
            size: 'number',
            storageClusterId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateInstanceRequestSystemDisk = CreateInstanceRequestSystemDisk;
class CreateInstanceRequestArn extends $dara.Model {
    static names() {
        return {
            assumeRoleFor: 'AssumeRoleFor',
            roleType: 'RoleType',
            rolearn: 'Rolearn',
        };
    }
    static types() {
        return {
            assumeRoleFor: 'number',
            roleType: 'string',
            rolearn: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateInstanceRequestArn = CreateInstanceRequestArn;
class CreateInstanceRequestDataDisk extends $dara.Model {
    static names() {
        return {
            category: 'Category',
            deleteWithInstance: 'DeleteWithInstance',
            description: 'Description',
            device: 'Device',
            diskName: 'DiskName',
            encryptAlgorithm: 'EncryptAlgorithm',
            encrypted: 'Encrypted',
            KMSKeyId: 'KMSKeyId',
            performanceLevel: 'PerformanceLevel',
            size: 'Size',
            snapshotId: 'SnapshotId',
            storageClusterId: 'StorageClusterId',
        };
    }
    static types() {
        return {
            category: 'string',
            deleteWithInstance: 'boolean',
            description: 'string',
            device: 'string',
            diskName: 'string',
            encryptAlgorithm: 'string',
            encrypted: 'boolean',
            KMSKeyId: 'string',
            performanceLevel: 'string',
            size: 'number',
            snapshotId: 'string',
            storageClusterId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateInstanceRequestDataDisk = CreateInstanceRequestDataDisk;
class CreateInstanceRequestTag extends $dara.Model {
    static names() {
        return {
            key: 'Key',
            value: 'Value',
        };
    }
    static types() {
        return {
            key: 'string',
            value: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateInstanceRequestTag = CreateInstanceRequestTag;
class CreateInstanceRequest extends $dara.Model {
    static names() {
        return {
            hibernationOptions: 'HibernationOptions',
            privatePoolOptions: 'PrivatePoolOptions',
            systemDisk: 'SystemDisk',
            affinity: 'Affinity',
            arn: 'Arn',
            autoRenew: 'AutoRenew',
            autoRenewPeriod: 'AutoRenewPeriod',
            clientToken: 'ClientToken',
            clusterId: 'ClusterId',
            creditSpecification: 'CreditSpecification',
            dataDisk: 'DataDisk',
            dedicatedHostId: 'DedicatedHostId',
            deletionProtection: 'DeletionProtection',
            deploymentSetGroupNo: 'DeploymentSetGroupNo',
            deploymentSetId: 'DeploymentSetId',
            description: 'Description',
            dryRun: 'DryRun',
            hostName: 'HostName',
            hpcClusterId: 'HpcClusterId',
            httpEndpoint: 'HttpEndpoint',
            httpPutResponseHopLimit: 'HttpPutResponseHopLimit',
            httpTokens: 'HttpTokens',
            imageFamily: 'ImageFamily',
            imageId: 'ImageId',
            innerIpAddress: 'InnerIpAddress',
            instanceChargeType: 'InstanceChargeType',
            instanceName: 'InstanceName',
            instanceType: 'InstanceType',
            internetChargeType: 'InternetChargeType',
            internetMaxBandwidthIn: 'InternetMaxBandwidthIn',
            internetMaxBandwidthOut: 'InternetMaxBandwidthOut',
            ioOptimized: 'IoOptimized',
            keyPairName: 'KeyPairName',
            nodeControllerId: 'NodeControllerId',
            ownerAccount: 'OwnerAccount',
            ownerId: 'OwnerId',
            password: 'Password',
            passwordInherit: 'PasswordInherit',
            period: 'Period',
            periodUnit: 'PeriodUnit',
            privateIpAddress: 'PrivateIpAddress',
            ramRoleName: 'RamRoleName',
            regionId: 'RegionId',
            resourceGroupId: 'ResourceGroupId',
            resourceOwnerAccount: 'ResourceOwnerAccount',
            resourceOwnerId: 'ResourceOwnerId',
            securityEnhancementStrategy: 'SecurityEnhancementStrategy',
            securityGroupId: 'SecurityGroupId',
            spotDuration: 'SpotDuration',
            spotInterruptionBehavior: 'SpotInterruptionBehavior',
            spotPriceLimit: 'SpotPriceLimit',
            spotStrategy: 'SpotStrategy',
            storageSetId: 'StorageSetId',
            storageSetPartitionNumber: 'StorageSetPartitionNumber',
            tag: 'Tag',
            tenancy: 'Tenancy',
            useAdditionalService: 'UseAdditionalService',
            userData: 'UserData',
            vSwitchId: 'VSwitchId',
            vlanId: 'VlanId',
            zoneId: 'ZoneId',
        };
    }
    static types() {
        return {
            hibernationOptions: CreateInstanceRequestHibernationOptions,
            privatePoolOptions: CreateInstanceRequestPrivatePoolOptions,
            systemDisk: CreateInstanceRequestSystemDisk,
            affinity: 'string',
            arn: { 'type': 'array', 'itemType': CreateInstanceRequestArn },
            autoRenew: 'boolean',
            autoRenewPeriod: 'number',
            clientToken: 'string',
            clusterId: 'string',
            creditSpecification: 'string',
            dataDisk: { 'type': 'array', 'itemType': CreateInstanceRequestDataDisk },
            dedicatedHostId: 'string',
            deletionProtection: 'boolean',
            deploymentSetGroupNo: 'number',
            deploymentSetId: 'string',
            description: 'string',
            dryRun: 'boolean',
            hostName: 'string',
            hpcClusterId: 'string',
            httpEndpoint: 'string',
            httpPutResponseHopLimit: 'number',
            httpTokens: 'string',
            imageFamily: 'string',
            imageId: 'string',
            innerIpAddress: 'string',
            instanceChargeType: 'string',
            instanceName: 'string',
            instanceType: 'string',
            internetChargeType: 'string',
            internetMaxBandwidthIn: 'number',
            internetMaxBandwidthOut: 'number',
            ioOptimized: 'string',
            keyPairName: 'string',
            nodeControllerId: 'string',
            ownerAccount: 'string',
            ownerId: 'number',
            password: 'string',
            passwordInherit: 'boolean',
            period: 'number',
            periodUnit: 'string',
            privateIpAddress: 'string',
            ramRoleName: 'string',
            regionId: 'string',
            resourceGroupId: 'string',
            resourceOwnerAccount: 'string',
            resourceOwnerId: 'number',
            securityEnhancementStrategy: 'string',
            securityGroupId: 'string',
            spotDuration: 'number',
            spotInterruptionBehavior: 'string',
            spotPriceLimit: 'number',
            spotStrategy: 'string',
            storageSetId: 'string',
            storageSetPartitionNumber: 'number',
            tag: { 'type': 'array', 'itemType': CreateInstanceRequestTag },
            tenancy: 'string',
            useAdditionalService: 'boolean',
            userData: 'string',
            vSwitchId: 'string',
            vlanId: 'string',
            zoneId: 'string',
        };
    }
    validate() {
        if (this.hibernationOptions && typeof this.hibernationOptions.validate === 'function') {
            this.hibernationOptions.validate();
        }
        if (this.privatePoolOptions && typeof this.privatePoolOptions.validate === 'function') {
            this.privatePoolOptions.validate();
        }
        if (this.systemDisk && typeof this.systemDisk.validate === 'function') {
            this.systemDisk.validate();
        }
        if (Array.isArray(this.arn)) {
            $dara.Model.validateArray(this.arn);
        }
        if (Array.isArray(this.dataDisk)) {
            $dara.Model.validateArray(this.dataDisk);
        }
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateInstanceRequest = CreateInstanceRequest;
//# sourceMappingURL=CreateInstanceRequest.js.map