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 { AbstractCommand } from '../AbstractCommand';
/**
 * A command used to create a new response definition in a document.
 * @author eric.wittmann@gmail.com
 * @extends AbstractCommand
 * @class
 */
var NewResponseDefinitionCommand = /** @class */ (function (_super) {
    __extends(NewResponseDefinitionCommand, _super);
    function NewResponseDefinitionCommand(definitionName, example, description) {
        var _this = this;
        if (((typeof definitionName === 'string') || definitionName === null) && ((example != null) || example === null) && ((typeof description === 'string') || description === null)) {
            var __args = arguments;
            _this = _super.call(this) || this;
            if (_this._newDefinitionName === undefined)
                _this._newDefinitionName = null;
            if (_this._newDefinitionDescription === undefined)
                _this._newDefinitionDescription = null;
            if (_this._defExisted === undefined)
                _this._defExisted = false;
            if (_this._newDefinitionName === undefined)
                _this._newDefinitionName = null;
            if (_this._newDefinitionDescription === undefined)
                _this._newDefinitionDescription = null;
            if (_this._defExisted === undefined)
                _this._defExisted = false;
            (function () {
                _this._newDefinitionName = definitionName;
                _this._newDefinitionDescription = description;
            })();
        }
        else if (definitionName === undefined && example === undefined && description === undefined) {
            var __args = arguments;
            _this = _super.call(this) || this;
            if (_this._newDefinitionName === undefined)
                _this._newDefinitionName = null;
            if (_this._newDefinitionDescription === undefined)
                _this._newDefinitionDescription = null;
            if (_this._defExisted === undefined)
                _this._defExisted = false;
            if (_this._newDefinitionName === undefined)
                _this._newDefinitionName = null;
            if (_this._newDefinitionDescription === undefined)
                _this._newDefinitionDescription = null;
            if (_this._defExisted === undefined)
                _this._defExisted = false;
        }
        else
            throw new Error('invalid overload');
        return _this;
    }
    return NewResponseDefinitionCommand;
}(AbstractCommand));
export { NewResponseDefinitionCommand };
NewResponseDefinitionCommand["__class"] = "io.apicurio.datamodels.cmd.commands.NewResponseDefinitionCommand";
NewResponseDefinitionCommand["__interfaces"] = ["io.apicurio.datamodels.cmd.ICommand"];
//# sourceMappingURL=NewResponseDefinitionCommand.js.map