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 { SecurityScheme } from './SecurityScheme';
/**
 * Constructor.
 * @param {string} schemeName
 * @class
 * @extends SecurityScheme
 * @author eric.wittmann@gmail.com
 */
var ModernSecurityScheme = /** @class */ (function (_super) {
    __extends(ModernSecurityScheme, _super);
    function ModernSecurityScheme(schemeName) {
        var _this = _super.call(this, schemeName) || this;
        if (_this.$ref === undefined)
            _this.$ref = null;
        if (_this.scheme === undefined)
            _this.scheme = null;
        if (_this.bearerFormat === undefined)
            _this.bearerFormat = null;
        if (_this.flows === undefined)
            _this.flows = null;
        if (_this.openIdConnectUrl === undefined)
            _this.openIdConnectUrl = null;
        return _this;
    }
    /**
     *
     * @return {string}
     */
    ModernSecurityScheme.prototype.getReference = function () {
        return this.$ref;
    };
    /**
     *
     * @param {string} reference
     */
    ModernSecurityScheme.prototype.setReference = function (reference) {
        this.$ref = reference;
    };
    return ModernSecurityScheme;
}(SecurityScheme));
export { ModernSecurityScheme };
ModernSecurityScheme["__class"] = "io.apicurio.datamodels.core.models.common.ModernSecurityScheme";
ModernSecurityScheme["__interfaces"] = ["io.apicurio.datamodels.core.models.common.IDefinition", "io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.IReferenceNode", "io.apicurio.datamodels.core.models.common.INamed"];
//# sourceMappingURL=ModernSecurityScheme.js.map