AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSessionResult.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-runtime/model/SessionState.h>
11#include <aws/lexv2-runtime/model/Message.h>
12#include <aws/lexv2-runtime/model/Interpretation.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace LexRuntimeV2
28{
29namespace Model
30{
32 {
33 public:
34 AWS_LEXRUNTIMEV2_API GetSessionResult();
37
38
40
43 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
44 inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
45 inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
46 inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
47 inline GetSessionResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
48 inline GetSessionResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
49 inline GetSessionResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
51
53
58 inline const Aws::Vector<Message>& GetMessages() const{ return m_messages; }
59 inline void SetMessages(const Aws::Vector<Message>& value) { m_messages = value; }
60 inline void SetMessages(Aws::Vector<Message>&& value) { m_messages = std::move(value); }
61 inline GetSessionResult& WithMessages(const Aws::Vector<Message>& value) { SetMessages(value); return *this;}
62 inline GetSessionResult& WithMessages(Aws::Vector<Message>&& value) { SetMessages(std::move(value)); return *this;}
63 inline GetSessionResult& AddMessages(const Message& value) { m_messages.push_back(value); return *this; }
64 inline GetSessionResult& AddMessages(Message&& value) { m_messages.push_back(std::move(value)); return *this; }
66
68
75 inline const Aws::Vector<Interpretation>& GetInterpretations() const{ return m_interpretations; }
76 inline void SetInterpretations(const Aws::Vector<Interpretation>& value) { m_interpretations = value; }
77 inline void SetInterpretations(Aws::Vector<Interpretation>&& value) { m_interpretations = std::move(value); }
79 inline GetSessionResult& WithInterpretations(Aws::Vector<Interpretation>&& value) { SetInterpretations(std::move(value)); return *this;}
80 inline GetSessionResult& AddInterpretations(const Interpretation& value) { m_interpretations.push_back(value); return *this; }
81 inline GetSessionResult& AddInterpretations(Interpretation&& value) { m_interpretations.push_back(std::move(value)); return *this; }
83
85
90 inline const SessionState& GetSessionState() const{ return m_sessionState; }
91 inline void SetSessionState(const SessionState& value) { m_sessionState = value; }
92 inline void SetSessionState(SessionState&& value) { m_sessionState = std::move(value); }
93 inline GetSessionResult& WithSessionState(const SessionState& value) { SetSessionState(value); return *this;}
94 inline GetSessionResult& WithSessionState(SessionState&& value) { SetSessionState(std::move(value)); return *this;}
96
98
99 inline const Aws::String& GetRequestId() const{ return m_requestId; }
100 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
101 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
102 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
103 inline GetSessionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
104 inline GetSessionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
105 inline GetSessionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
107 private:
108
109 Aws::String m_sessionId;
110
111 Aws::Vector<Message> m_messages;
112
113 Aws::Vector<Interpretation> m_interpretations;
114
115 SessionState m_sessionState;
116
117 Aws::String m_requestId;
118 };
119
120} // namespace Model
121} // namespace LexRuntimeV2
122} // namespace Aws
void SetInterpretations(const Aws::Vector< Interpretation > &value)
const Aws::Vector< Interpretation > & GetInterpretations() const
GetSessionResult & AddMessages(const Message &value)
GetSessionResult & WithSessionId(const Aws::String &value)
const SessionState & GetSessionState() const
AWS_LEXRUNTIMEV2_API GetSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSessionResult & WithRequestId(const char *value)
GetSessionResult & WithRequestId(Aws::String &&value)
const Aws::Vector< Message > & GetMessages() const
GetSessionResult & WithSessionState(SessionState &&value)
GetSessionResult & WithInterpretations(Aws::Vector< Interpretation > &&value)
GetSessionResult & WithSessionId(const char *value)
GetSessionResult & WithSessionState(const SessionState &value)
GetSessionResult & AddMessages(Message &&value)
void SetMessages(const Aws::Vector< Message > &value)
GetSessionResult & AddInterpretations(const Interpretation &value)
void SetInterpretations(Aws::Vector< Interpretation > &&value)
GetSessionResult & WithInterpretations(const Aws::Vector< Interpretation > &value)
GetSessionResult & WithSessionId(Aws::String &&value)
GetSessionResult & WithMessages(const Aws::Vector< Message > &value)
void SetRequestId(const Aws::String &value)
AWS_LEXRUNTIMEV2_API GetSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSessionId(const Aws::String &value)
GetSessionResult & WithRequestId(const Aws::String &value)
GetSessionResult & AddInterpretations(Interpretation &&value)
void SetSessionState(const SessionState &value)
void SetMessages(Aws::Vector< Message > &&value)
GetSessionResult & WithMessages(Aws::Vector< Message > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue