-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Amazon Lex now supports new APIs for viewing and editing Custom Vocab…
…ulary in bots.
- Loading branch information
1 parent
6a7ce67
commit 7d94252
Showing
45 changed files
with
6,496 additions
and
149 deletions.
There are no files selected for viewing
305 changes: 305 additions & 0 deletions
305
generator/ServiceModels/models.lex.v2/models.lex.v2-2020-08-07.api.json
Large diffs are not rendered by default.
Oops, something went wrong.
169 changes: 168 additions & 1 deletion
169
generator/ServiceModels/models.lex.v2/models.lex.v2-2020-08-07.docs.json
Large diffs are not rendered by default.
Oops, something went wrong.
182 changes: 91 additions & 91 deletions
182
generator/ServiceModels/models.lex.v2/models.lex.v2-2020-08-07.endpoint-tests.json
Large diffs are not rendered by default.
Oops, something went wrong.
435 changes: 434 additions & 1 deletion
435
generator/ServiceModels/models.lex.v2/models.lex.v2-2020-08-07.normal.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
121 changes: 121 additions & 0 deletions
121
sdk/src/Services/LexModelsV2/Generated/Model/BatchCreateCustomVocabularyItemRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
/* | ||
* Do not modify this file. This file is generated from the models.lex.v2-2020-08-07.normal.json service model. | ||
*/ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Xml.Serialization; | ||
using System.Text; | ||
using System.IO; | ||
using System.Net; | ||
|
||
using Amazon.Runtime; | ||
using Amazon.Runtime.Internal; | ||
|
||
namespace Amazon.LexModelsV2.Model | ||
{ | ||
/// <summary> | ||
/// Container for the parameters to the BatchCreateCustomVocabularyItem operation. | ||
/// Batch create custom vocabulary item for the specified locale in the specified bot. | ||
/// </summary> | ||
public partial class BatchCreateCustomVocabularyItemRequest : AmazonLexModelsV2Request | ||
{ | ||
private string _botId; | ||
private string _botVersion; | ||
private List<NewCustomVocabularyItem> _customVocabularyItemList = new List<NewCustomVocabularyItem>(); | ||
private string _localeId; | ||
|
||
/// <summary> | ||
/// Gets and sets the property BotId. | ||
/// <para> | ||
/// The unique identifier of the bot to batch create the custom vocabulary item for. | ||
/// </para> | ||
/// </summary> | ||
[AWSProperty(Required=true, Min=10, Max=10)] | ||
public string BotId | ||
{ | ||
get { return this._botId; } | ||
set { this._botId = value; } | ||
} | ||
|
||
// Check to see if BotId property is set | ||
internal bool IsSetBotId() | ||
{ | ||
return this._botId != null; | ||
} | ||
|
||
/// <summary> | ||
/// Gets and sets the property BotVersion. | ||
/// <para> | ||
/// The bot version of the bot to batch create the custom vocabulary item for. | ||
/// </para> | ||
/// </summary> | ||
[AWSProperty(Required=true, Min=1, Max=5)] | ||
public string BotVersion | ||
{ | ||
get { return this._botVersion; } | ||
set { this._botVersion = value; } | ||
} | ||
|
||
// Check to see if BotVersion property is set | ||
internal bool IsSetBotVersion() | ||
{ | ||
return this._botVersion != null; | ||
} | ||
|
||
/// <summary> | ||
/// Gets and sets the property CustomVocabularyItemList. | ||
/// <para> | ||
/// The custom vocabulary item list of the bot to batch create the custom vocabulary item | ||
/// for. | ||
/// </para> | ||
/// </summary> | ||
[AWSProperty(Required=true, Min=1, Max=10)] | ||
public List<NewCustomVocabularyItem> CustomVocabularyItemList | ||
{ | ||
get { return this._customVocabularyItemList; } | ||
set { this._customVocabularyItemList = value; } | ||
} | ||
|
||
// Check to see if CustomVocabularyItemList property is set | ||
internal bool IsSetCustomVocabularyItemList() | ||
{ | ||
return this._customVocabularyItemList != null && this._customVocabularyItemList.Count > 0; | ||
} | ||
|
||
/// <summary> | ||
/// Gets and sets the property LocaleId. | ||
/// <para> | ||
/// The unique locale identifier of the bot to batch create the custom vocabulary item | ||
/// for. | ||
/// </para> | ||
/// </summary> | ||
[AWSProperty(Required=true)] | ||
public string LocaleId | ||
{ | ||
get { return this._localeId; } | ||
set { this._localeId = value; } | ||
} | ||
|
||
// Check to see if LocaleId property is set | ||
internal bool IsSetLocaleId() | ||
{ | ||
return this._localeId != null; | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.