/*
* 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
{
///
/// This is the response object from the GetSession operation.
///
public partial class GetSessionResponse : AmazonWebServiceResponse
{
private List _interpretations = new List();
private List _messages = new List();
private string _sessionId;
private SessionState _sessionStateValue;
///
/// Gets and sets the property Interpretations.
///
/// A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
///
///
///
///
/// Each interpretation includes the intent, a score that indicates how confident Amazon
/// Lex V2 is that the interpretation is the correct one, and an optional sentiment response
/// that indicates the sentiment expressed in the utterance.
///
///
[AWSProperty(Max=5)]
public List Interpretations
{
get { return this._interpretations; }
set { this._interpretations = value; }
}
// Check to see if Interpretations property is set
internal bool IsSetInterpretations()
{
return this._interpretations != null && this._interpretations.Count > 0;
}
///
/// Gets and sets the property Messages.
///
/// A list of messages that were last sent to the user. The messages are ordered based
/// on the order that your returned the messages from your Lambda function or the order
/// that messages are defined in the bot.
///
///
[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 SessionId.
///
/// The identifier of the returned session.
///
///
[AWSProperty(Min=1)]
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.
///
/// Represents the current state of the dialog between the user and the bot.
///
///
///
/// You can use this to determine the progress of the conversation and what the next action
/// might be.
///
///
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;
}
}
}