var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
/* Generated from Java with JSweet 2.3.7 - http://www.jsweet.org */
import { AaiServer } from '../../models/AaiServer';
import { Node } from '../../../core/models/Node';
/**
 * Constructor.
 * @param {Node} parent
 * @param {string} name
 * @class
 * @extends AaiServer
 * @author eric.wittmann@gmail.com
 */
var Aai20Server = /** @class */ (function (_super) {
    __extends(Aai20Server, _super);
    function Aai20Server(parent, name) {
        var _this = this;
        if (((parent != null && parent instanceof Node) || parent === null) && ((typeof name === 'string') || name === null)) {
            var __args = arguments;
            _this = _super.call(this, parent, name) || this;
        }
        else if (((typeof parent === 'string') || parent === null) && name === undefined) {
            var __args = arguments;
            var name_1 = __args[0];
            _this = _super.call(this, name_1) || this;
        }
        else if (((parent != null && parent instanceof Node) || parent === null) && name === undefined) {
            var __args = arguments;
            _this = _super.call(this, parent) || this;
        }
        else
            throw new Error('invalid overload');
        return _this;
    }
    /**
     * @see Server#createServerVariable(String)
     * @param {string} name
     * @return {Aai20ServerVariable}
     */
    Aai20Server.prototype.createServerVariable = function (name) {
        return new Aai20ServerVariable(this, name);
    };
    /**
     * Creates a security requirement.
     * @return {Aai20SecurityRequirement}
     */
    Aai20Server.prototype.createSecurityRequirement = function () {
        return new Aai20SecurityRequirement(this);
    };
    return Aai20Server;
}(AaiServer));
export { Aai20Server };
Aai20Server["__class"] = "io.apicurio.datamodels.asyncapi.v2.models.Aai20Server";
Aai20Server["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.common.INamed"];
import { Aai20SecurityRequirement } from './Aai20SecurityRequirement';
import { Aai20ServerVariable } from './Aai20ServerVariable';
//# sourceMappingURL=Aai20Server.js.map