/* * 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 runtime.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.LexRuntimeV2.Model { /// /// Container for the parameters to the PutSession operation. /// Creates a new session or modifies an existing session with an Amazon Lex V2 bot. Use /// this operation to enable your application to set the state of the bot. /// public partial class PutSessionRequest : AmazonLexRuntimeV2Request { private string _botAliasId; private string _botId; private string _localeId; private List _messages = new List(); private Dictionary _requestAttributes = new Dictionary(); private string _responseContentType; private string _sessionId; private SessionState _sessionStateValue; /// /// Gets and sets the property BotAliasId. /// /// The alias identifier of the bot that receives the session data. /// /// [AWSProperty(Required=true)] public string BotAliasId { get { return this._botAliasId; } set { this._botAliasId = value; } } // Check to see if BotAliasId property is set internal bool IsSetBotAliasId() { return this._botAliasId != null; } /// /// Gets and sets the property BotId. /// /// The identifier of the bot that receives the session data. /// /// [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; } /// /// Gets and sets the property LocaleId. /// /// The locale where the session is in use. /// /// [AWSProperty(Required=true, Min=1)] 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 Messages. /// /// A list of messages to send to the user. Messages are sent in the order that they are /// defined in the list. /// /// [AWSProperty(Max=10)] public List Messages { get { return this._messages; } set { this._messages = value; } } // Check to see if Messages property is set internal bool IsSetMessages() { return this._messages != null && this._messages.Count > 0; } /// /// Gets and sets the property RequestAttributes. /// /// Request-specific information passed between Amazon Lex V2 and the client application. /// /// /// /// The namespace x-amz-lex: is reserved for special attributes. Don't create /// any request attributes with the prefix x-amz-lex:. /// /// public Dictionary RequestAttributes { get { return this._requestAttributes; } set { this._requestAttributes = value; } } // Check to see if RequestAttributes property is set internal bool IsSetRequestAttributes() { return this._requestAttributes != null && this._requestAttributes.Count > 0; } /// /// Gets and sets the property ResponseContentType. /// /// The message that Amazon Lex V2 returns in the response can be either text or speech /// depending on the value of this parameter. /// ///
  • /// /// If the value is text/plain; charset=utf-8, Amazon Lex V2 returns text /// in the response. /// ///
///
[AWSProperty(Min=1)] public string ResponseContentType { get { return this._responseContentType; } set { this._responseContentType = value; } } // Check to see if ResponseContentType property is set internal bool IsSetResponseContentType() { return this._responseContentType != null; } /// /// Gets and sets the property SessionId. /// /// The identifier of the session that receives the session data. /// /// [AWSProperty(Required=true, Min=2, Max=100)] public string SessionId { get { return this._sessionId; } set { this._sessionId = value; } } // Check to see if SessionId property is set internal bool IsSetSessionId() { return this._sessionId != null; } /// /// Gets and sets the property SessionStateValue. /// /// Sets the state of the session with the user. You can use this to set the current intent, /// attributes, context, and dialog action. Use the dialog action to determine the next /// step that Amazon Lex V2 should use in the conversation with the user. /// /// public SessionState SessionStateValue { get { return this._sessionStateValue; } set { this._sessionStateValue = value; } } // Check to see if SessionStateValue property is set internal bool IsSetSessionStateValue() { return this._sessionStateValue != null; } } }