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 __());
    };
})();
import { Node } from '../../core/models/Node';
/**
 * Constructor.
 * @param {Node} parent
 * @class
 * @extends Node
 * @author eric.wittmann@gmail.com
 */
var AaiChannelBindings = /** @class */ (function (_super) {
    __extends(AaiChannelBindings, _super);
    function AaiChannelBindings(parent) {
        var _this = this;
        if (((parent != null && parent instanceof Node) || parent === null)) {
            var __args = arguments;
            _this = _super.call(this) || this;
            if (_this.http === undefined)
                _this.http = null;
            if (_this.ws === undefined)
                _this.ws = null;
            if (_this.kafka === undefined)
                _this.kafka = null;
            if (_this.amqp === undefined)
                _this.amqp = null;
            if (_this.amqp1 === undefined)
                _this.amqp1 = null;
            if (_this.mqtt === undefined)
                _this.mqtt = null;
            if (_this.mqtt5 === undefined)
                _this.mqtt5 = null;
            if (_this.nats === undefined)
                _this.nats = null;
            if (_this.jms === undefined)
                _this.jms = null;
            if (_this.sns === undefined)
                _this.sns = null;
            if (_this.sqs === undefined)
                _this.sqs = null;
            if (_this.stomp === undefined)
                _this.stomp = null;
            if (_this.redis === undefined)
                _this.redis = null;
            if (_this.http === undefined)
                _this.http = null;
            if (_this.ws === undefined)
                _this.ws = null;
            if (_this.kafka === undefined)
                _this.kafka = null;
            if (_this.amqp === undefined)
                _this.amqp = null;
            if (_this.amqp1 === undefined)
                _this.amqp1 = null;
            if (_this.mqtt === undefined)
                _this.mqtt = null;
            if (_this.mqtt5 === undefined)
                _this.mqtt5 = null;
            if (_this.nats === undefined)
                _this.nats = null;
            if (_this.jms === undefined)
                _this.jms = null;
            if (_this.sns === undefined)
                _this.sns = null;
            if (_this.sqs === undefined)
                _this.sqs = null;
            if (_this.stomp === undefined)
                _this.stomp = null;
            if (_this.redis === undefined)
                _this.redis = null;
            (function () {
                if (parent != null) {
                    _this._parent = parent;
                    _this._ownerDocument = parent.ownerDocument();
                }
            })();
        }
        else if (parent === undefined) {
            var __args = arguments;
            _this = _super.call(this) || this;
            if (_this.http === undefined)
                _this.http = null;
            if (_this.ws === undefined)
                _this.ws = null;
            if (_this.kafka === undefined)
                _this.kafka = null;
            if (_this.amqp === undefined)
                _this.amqp = null;
            if (_this.amqp1 === undefined)
                _this.amqp1 = null;
            if (_this.mqtt === undefined)
                _this.mqtt = null;
            if (_this.mqtt5 === undefined)
                _this.mqtt5 = null;
            if (_this.nats === undefined)
                _this.nats = null;
            if (_this.jms === undefined)
                _this.jms = null;
            if (_this.sns === undefined)
                _this.sns = null;
            if (_this.sqs === undefined)
                _this.sqs = null;
            if (_this.stomp === undefined)
                _this.stomp = null;
            if (_this.redis === undefined)
                _this.redis = null;
            if (_this.http === undefined)
                _this.http = null;
            if (_this.ws === undefined)
                _this.ws = null;
            if (_this.kafka === undefined)
                _this.kafka = null;
            if (_this.amqp === undefined)
                _this.amqp = null;
            if (_this.amqp1 === undefined)
                _this.amqp1 = null;
            if (_this.mqtt === undefined)
                _this.mqtt = null;
            if (_this.mqtt5 === undefined)
                _this.mqtt5 = null;
            if (_this.nats === undefined)
                _this.nats = null;
            if (_this.jms === undefined)
                _this.jms = null;
            if (_this.sns === undefined)
                _this.sns = null;
            if (_this.sqs === undefined)
                _this.sqs = null;
            if (_this.stomp === undefined)
                _this.stomp = null;
            if (_this.redis === undefined)
                _this.redis = null;
        }
        else
            throw new Error('invalid overload');
        return _this;
    }
    /**
     * @see io.apicurio.datamodels.core.models.Node#accept(io.apicurio.datamodels.core.visitors.IVisitor)
     * @param {*} visitor
     */
    AaiChannelBindings.prototype.accept = function (visitor) {
        var v = visitor;
        v.visitChannelBindings(this);
    };
    return AaiChannelBindings;
}(Node));
export { AaiChannelBindings };
AaiChannelBindings["__class"] = "io.apicurio.datamodels.asyncapi.models.AaiChannelBindings";
AaiChannelBindings["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable"];
//# sourceMappingURL=AaiChannelBindings.js.map