@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
91 lines (87 loc) • 3.25 kB
JavaScript
"use strict";
/*
* MIT License
* Copyright (c) 2018-2020 Aspose Pty Ltd
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.AiNameMatchRequestBuilder = exports.AiNameMatchRequest = void 0;
/**
* Request model for AiNameApi.match operation.
*/
class AiNameMatchRequest {
/**
* Request model for aiNameMatch operation.
* @param name A name to match.
* @param otherName Another name to match.
* @param language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian).
* @param location A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France.
* @param encoding A character encoding name.
* @param script A writing system code; starts with the ISO-15924 script name.
* @param style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
*/
constructor(name, otherName, language, location, encoding, script, style) {
this.name = name;
this.otherName = otherName;
this.language = language;
this.location = location;
this.encoding = encoding;
this.script = script;
this.style = style;
}
}
exports.AiNameMatchRequest = AiNameMatchRequest;
class AiNameMatchRequestBuilder {
constructor(model) {
this.model = model;
}
build() {
const tempModel = this.model;
this.model = null;
return tempModel;
}
name(name) {
this.model.name = name;
return this;
}
otherName(otherName) {
this.model.otherName = otherName;
return this;
}
language(language) {
this.model.language = language;
return this;
}
location(location) {
this.model.location = location;
return this;
}
encoding(encoding) {
this.model.encoding = encoding;
return this;
}
script(script) {
this.model.script = script;
return this;
}
style(style) {
this.model.style = style;
return this;
}
}
exports.AiNameMatchRequestBuilder = AiNameMatchRequestBuilder;
//# sourceMappingURL=ai-name-match-request.js.map