"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.ModifyInstanceAttributeRequest = exports.ModifyInstanceAttributeRequestRemoteConnectionOptions = exports.ModifyInstanceAttributeRequestPrivateDnsNameOptions = exports.ModifyInstanceAttributeRequestCpuOptions = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class ModifyInstanceAttributeRequestCpuOptions extends $dara.Model {
    static names() {
        return {
            core: 'Core',
            threadsPerCore: 'ThreadsPerCore',
            topologyType: 'TopologyType',
        };
    }
    static types() {
        return {
            core: 'number',
            threadsPerCore: 'number',
            topologyType: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyInstanceAttributeRequestCpuOptions = ModifyInstanceAttributeRequestCpuOptions;
class ModifyInstanceAttributeRequestPrivateDnsNameOptions extends $dara.Model {
    static names() {
        return {
            enableInstanceIdDnsAAAARecord: 'EnableInstanceIdDnsAAAARecord',
            enableInstanceIdDnsARecord: 'EnableInstanceIdDnsARecord',
            enableIpDnsARecord: 'EnableIpDnsARecord',
            enableIpDnsPtrRecord: 'EnableIpDnsPtrRecord',
            hostnameType: 'HostnameType',
        };
    }
    static types() {
        return {
            enableInstanceIdDnsAAAARecord: 'boolean',
            enableInstanceIdDnsARecord: 'boolean',
            enableIpDnsARecord: 'boolean',
            enableIpDnsPtrRecord: 'boolean',
            hostnameType: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyInstanceAttributeRequestPrivateDnsNameOptions = ModifyInstanceAttributeRequestPrivateDnsNameOptions;
class ModifyInstanceAttributeRequestRemoteConnectionOptions extends $dara.Model {
    static names() {
        return {
            password: 'Password',
            type: 'Type',
        };
    }
    static types() {
        return {
            password: 'string',
            type: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyInstanceAttributeRequestRemoteConnectionOptions = ModifyInstanceAttributeRequestRemoteConnectionOptions;
class ModifyInstanceAttributeRequest extends $dara.Model {
    static names() {
        return {
            cpuOptions: 'CpuOptions',
            creditSpecification: 'CreditSpecification',
            deletionProtection: 'DeletionProtection',
            description: 'Description',
            enableJumboFrame: 'EnableJumboFrame',
            enableNetworkEncryption: 'EnableNetworkEncryption',
            hostName: 'HostName',
            instanceId: 'InstanceId',
            instanceName: 'InstanceName',
            networkInterfaceQueueNumber: 'NetworkInterfaceQueueNumber',
            ownerAccount: 'OwnerAccount',
            ownerId: 'OwnerId',
            password: 'Password',
            privateDnsNameOptions: 'PrivateDnsNameOptions',
            recyclable: 'Recyclable',
            remoteConnectionOptions: 'RemoteConnectionOptions',
            resourceOwnerAccount: 'ResourceOwnerAccount',
            resourceOwnerId: 'ResourceOwnerId',
            securityGroupIds: 'SecurityGroupIds',
            userData: 'UserData',
        };
    }
    static types() {
        return {
            cpuOptions: ModifyInstanceAttributeRequestCpuOptions,
            creditSpecification: 'string',
            deletionProtection: 'boolean',
            description: 'string',
            enableJumboFrame: 'boolean',
            enableNetworkEncryption: 'boolean',
            hostName: 'string',
            instanceId: 'string',
            instanceName: 'string',
            networkInterfaceQueueNumber: 'number',
            ownerAccount: 'string',
            ownerId: 'number',
            password: 'string',
            privateDnsNameOptions: ModifyInstanceAttributeRequestPrivateDnsNameOptions,
            recyclable: 'boolean',
            remoteConnectionOptions: ModifyInstanceAttributeRequestRemoteConnectionOptions,
            resourceOwnerAccount: 'string',
            resourceOwnerId: 'number',
            securityGroupIds: { 'type': 'array', 'itemType': 'string' },
            userData: 'string',
        };
    }
    validate() {
        if (this.cpuOptions && typeof this.cpuOptions.validate === 'function') {
            this.cpuOptions.validate();
        }
        if (this.privateDnsNameOptions && typeof this.privateDnsNameOptions.validate === 'function') {
            this.privateDnsNameOptions.validate();
        }
        if (this.remoteConnectionOptions && typeof this.remoteConnectionOptions.validate === 'function') {
            this.remoteConnectionOptions.validate();
        }
        if (Array.isArray(this.securityGroupIds)) {
            $dara.Model.validateArray(this.securityGroupIds);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyInstanceAttributeRequest = ModifyInstanceAttributeRequest;
//# sourceMappingURL=ModifyInstanceAttributeRequest.js.map