/* * 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 CreateIntent operation. /// public partial class CreateIntentResponse : 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 string _localeId; private List _outputContexts = new List(); private string _parentIntentSignature; private List _sampleUtterances = new List(); /// /// Gets and sets the property BotId. /// /// The identifier of the bot associated with 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 associated with the intent. /// /// [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 the date and time that 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 description specified for 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 dialog Lambda function specified for the intent. /// /// 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 fulfillment Lambda function specified for the intent. /// /// 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 the response that is sent to the user at the beginning /// of a conversation, before eliciting slot values. /// /// 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 list of input contexts specified for the intent. /// /// [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 closing setting specified for the intent. /// /// 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 confirmation setting specified for the 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. /// /// A unique identifier for the intent. /// /// [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 name specified for 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. /// /// Configuration for searching a Amazon Kendra index specified for the 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 LocaleId. /// /// The locale that the intent is specified to use. /// /// 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 list of output contexts specified for the intent. /// /// [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 signature of the parent intent specified for the 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 sample utterances specified 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; } } }