/* * 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 { /// /// This is the response object from the UpdateIntent operation. /// public partial class UpdateIntentResponse : AmazonWebServiceResponse { private string _botId; private string _botVersion; private DateTime? _creationDateTime; private string _description; private DialogCodeHookSettings _dialogCodeHook; private FulfillmentCodeHookSettings _fulfillmentCodeHook; private InitialResponseSetting _initialResponseSetting; private List _inputContexts = new List(); private IntentClosingSetting _intentClosingSetting; private IntentConfirmationSetting _intentConfirmationSetting; private string _intentId; private string _intentName; private KendraConfiguration _kendraConfiguration; private DateTime? _lastUpdatedDateTime; private string _localeId; private List _outputContexts = new List(); private string _parentIntentSignature; private List _sampleUtterances = new List(); private List _slotPriorities = new List(); /// /// Gets and sets the property BotId. /// /// The identifier of the bot that contains the intent. /// /// [AWSProperty(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; } /// /// Gets and sets the property BotVersion. /// /// The version of the bot that contains the intent. Will always be DRAFT. /// /// [AWSProperty(Min=5, 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; } /// /// Gets and sets the property CreationDateTime. /// /// A timestamp of when the intent was created. /// /// public DateTime CreationDateTime { get { return this._creationDateTime.GetValueOrDefault(); } set { this._creationDateTime = value; } } // Check to see if CreationDateTime property is set internal bool IsSetCreationDateTime() { return this._creationDateTime.HasValue; } /// /// Gets and sets the property Description. /// /// The updated description of the intent. /// /// [AWSProperty(Min=0, Max=200)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property DialogCodeHook. /// /// The updated Lambda function called during each turn of the conversation with the user. /// /// public DialogCodeHookSettings DialogCodeHook { get { return this._dialogCodeHook; } set { this._dialogCodeHook = value; } } // Check to see if DialogCodeHook property is set internal bool IsSetDialogCodeHook() { return this._dialogCodeHook != null; } /// /// Gets and sets the property FulfillmentCodeHook. /// /// The updated Lambda function called when the intent is ready for fulfillment. /// /// public FulfillmentCodeHookSettings FulfillmentCodeHook { get { return this._fulfillmentCodeHook; } set { this._fulfillmentCodeHook = value; } } // Check to see if FulfillmentCodeHook property is set internal bool IsSetFulfillmentCodeHook() { return this._fulfillmentCodeHook != null; } /// /// Gets and sets the property InitialResponseSetting. /// /// Configuration settings for a response sent to the user before Amazon Lex starts eliciting /// slots. /// /// public InitialResponseSetting InitialResponseSetting { get { return this._initialResponseSetting; } set { this._initialResponseSetting = value; } } // Check to see if InitialResponseSetting property is set internal bool IsSetInitialResponseSetting() { return this._initialResponseSetting != null; } /// /// Gets and sets the property InputContexts. /// /// The updated list of contexts that must be active for the intent to be considered by /// Amazon Lex. /// /// [AWSProperty(Min=0, Max=5)] public List InputContexts { get { return this._inputContexts; } set { this._inputContexts = value; } } // Check to see if InputContexts property is set internal bool IsSetInputContexts() { return this._inputContexts != null && this._inputContexts.Count > 0; } /// /// Gets and sets the property IntentClosingSetting. /// /// The updated response that Amazon Lex sends the user when the intent is closed. /// /// public IntentClosingSetting IntentClosingSetting { get { return this._intentClosingSetting; } set { this._intentClosingSetting = value; } } // Check to see if IntentClosingSetting property is set internal bool IsSetIntentClosingSetting() { return this._intentClosingSetting != null; } /// /// Gets and sets the property IntentConfirmationSetting. /// /// The updated prompts that Amazon Lex sends to the user to confirm the completion of /// an intent. /// /// public IntentConfirmationSetting IntentConfirmationSetting { get { return this._intentConfirmationSetting; } set { this._intentConfirmationSetting = value; } } // Check to see if IntentConfirmationSetting property is set internal bool IsSetIntentConfirmationSetting() { return this._intentConfirmationSetting != null; } /// /// Gets and sets the property IntentId. /// /// The identifier of the intent that was updated. /// /// [AWSProperty(Min=10, Max=10)] public string IntentId { get { return this._intentId; } set { this._intentId = value; } } // Check to see if IntentId property is set internal bool IsSetIntentId() { return this._intentId != null; } /// /// Gets and sets the property IntentName. /// /// The updated name of the intent. /// /// [AWSProperty(Min=1, Max=100)] public string IntentName { get { return this._intentName; } set { this._intentName = value; } } // Check to see if IntentName property is set internal bool IsSetIntentName() { return this._intentName != null; } /// /// Gets and sets the property KendraConfiguration. /// /// The updated configuration for connecting to an Amazon Kendra index with the AMAZON.KendraSearchIntent /// intent. /// /// public KendraConfiguration KendraConfiguration { get { return this._kendraConfiguration; } set { this._kendraConfiguration = value; } } // Check to see if KendraConfiguration property is set internal bool IsSetKendraConfiguration() { return this._kendraConfiguration != null; } /// /// Gets and sets the property LastUpdatedDateTime. /// /// A timestamp of the last time that the intent was modified. /// /// public DateTime LastUpdatedDateTime { get { return this._lastUpdatedDateTime.GetValueOrDefault(); } set { this._lastUpdatedDateTime = value; } } // Check to see if LastUpdatedDateTime property is set internal bool IsSetLastUpdatedDateTime() { return this._lastUpdatedDateTime.HasValue; } /// /// Gets and sets the property LocaleId. /// /// The updated language and locale of the intent. /// /// 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; } /// /// Gets and sets the property OutputContexts. /// /// The updated list of contexts that Amazon Lex activates when the intent is fulfilled. /// /// [AWSProperty(Min=0, Max=10)] public List OutputContexts { get { return this._outputContexts; } set { this._outputContexts = value; } } // Check to see if OutputContexts property is set internal bool IsSetOutputContexts() { return this._outputContexts != null && this._outputContexts.Count > 0; } /// /// Gets and sets the property ParentIntentSignature. /// /// The updated built-in intent that is the parent of this intent. /// /// public string ParentIntentSignature { get { return this._parentIntentSignature; } set { this._parentIntentSignature = value; } } // Check to see if ParentIntentSignature property is set internal bool IsSetParentIntentSignature() { return this._parentIntentSignature != null; } /// /// Gets and sets the property SampleUtterances. /// /// The updated list of sample utterances for the intent. /// /// public List SampleUtterances { get { return this._sampleUtterances; } set { this._sampleUtterances = value; } } // Check to see if SampleUtterances property is set internal bool IsSetSampleUtterances() { return this._sampleUtterances != null && this._sampleUtterances.Count > 0; } /// /// Gets and sets the property SlotPriorities. /// /// The updated list of slots and their priorities that are elicited from the user for /// the intent. /// /// public List SlotPriorities { get { return this._slotPriorities; } set { this._slotPriorities = value; } } // Check to see if SlotPriorities property is set internal bool IsSetSlotPriorities() { return this._slotPriorities != null && this._slotPriorities.Count > 0; } } }