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 { AaiOAuthFlows } from '../../models/AaiOAuthFlows';
import { Node } from '../../../core/models/Node';
/**
 * @author Jakub Senko<jsenko@redhat.com>
 * @param {Node} parent
 * @class
 * @extends AaiOAuthFlows
 */
var Aai20OAuthFlows = /** @class */ (function (_super) {
    __extends(Aai20OAuthFlows, _super);
    function Aai20OAuthFlows(parent) {
        var _this = this;
        if (((parent != null && parent instanceof Node) || parent === null)) {
            var __args = arguments;
            _this = _super.call(this, parent) || this;
        }
        else if (parent === undefined) {
            var __args = arguments;
            _this = _super.call(this) || this;
        }
        else
            throw new Error('invalid overload');
        return _this;
    }
    /**
     *
     * @return {ImplicitOAuthFlow}
     */
    Aai20OAuthFlows.prototype.createImplicitOAuthFlow = function () {
        return new Aai20ImplicitOAuthFlow(this);
    };
    /**
     *
     * @return {PasswordOAuthFlow}
     */
    Aai20OAuthFlows.prototype.createPasswordOAuthFlow = function () {
        return new Aai20PasswordOAuthFlow(this);
    };
    /**
     *
     * @return {ClientCredentialsOAuthFlow}
     */
    Aai20OAuthFlows.prototype.createClientCredentialsOAuthFlow = function () {
        return new Aai20ClientCredentialsOAuthFlow(this);
    };
    /**
     *
     * @return {AuthorizationCodeOAuthFlow}
     */
    Aai20OAuthFlows.prototype.createAuthorizationCodeOAuthFlow = function () {
        return new Aai20AuthorizationCodeOAuthFlow(this);
    };
    return Aai20OAuthFlows;
}(AaiOAuthFlows));
export { Aai20OAuthFlows };
Aai20OAuthFlows["__class"] = "io.apicurio.datamodels.asyncapi.v2.models.Aai20OAuthFlows";
Aai20OAuthFlows["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable"];
import { Aai20AuthorizationCodeOAuthFlow } from './Aai20AuthorizationCodeOAuthFlow';
import { Aai20ClientCredentialsOAuthFlow } from './Aai20ClientCredentialsOAuthFlow';
import { Aai20PasswordOAuthFlow } from './Aai20PasswordOAuthFlow';
import { Aai20ImplicitOAuthFlow } from './Aai20ImplicitOAuthFlow';
//# sourceMappingURL=Aai20OAuthFlows.js.map