AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
37
38
40
43 inline const Aws::String& GetSessionId() const { return m_sessionId; }
44 template<typename SessionIdT = Aws::String>
45 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
46 template<typename SessionIdT = Aws::String>
47 GetSessionResult& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
49
51
56 inline const Aws::Vector<Message>& GetMessages() const { return m_messages; }
57 template<typename MessagesT = Aws::Vector<Message>>
58 void SetMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages = std::forward<MessagesT>(value); }
59 template<typename MessagesT = Aws::Vector<Message>>
60 GetSessionResult& WithMessages(MessagesT&& value) { SetMessages(std::forward<MessagesT>(value)); return *this;}
61 template<typename MessagesT = Message>
62 GetSessionResult& AddMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages.emplace_back(std::forward<MessagesT>(value)); return *this; }
64
66
73 inline const Aws::Vector<Interpretation>& GetInterpretations() const { return m_interpretations; }
74 template<typename InterpretationsT = Aws::Vector<Interpretation>>
75 void SetInterpretations(InterpretationsT&& value) { m_interpretationsHasBeenSet = true; m_interpretations = std::forward<InterpretationsT>(value); }
76 template<typename InterpretationsT = Aws::Vector<Interpretation>>
77 GetSessionResult& WithInterpretations(InterpretationsT&& value) { SetInterpretations(std::forward<InterpretationsT>(value)); return *this;}
78 template<typename InterpretationsT = Interpretation>
79 GetSessionResult& AddInterpretations(InterpretationsT&& value) { m_interpretationsHasBeenSet = true; m_interpretations.emplace_back(std::forward<InterpretationsT>(value)); return *this; }
81
83
88 inline const SessionState& GetSessionState() const { return m_sessionState; }
89 template<typename SessionStateT = SessionState>
90 void SetSessionState(SessionStateT&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::forward<SessionStateT>(value); }
91 template<typename SessionStateT = SessionState>
92 GetSessionResult& WithSessionState(SessionStateT&& value) { SetSessionState(std::forward<SessionStateT>(value)); return *this;}
94
96
97 inline const Aws::String& GetRequestId() const { return m_requestId; }
98 template<typename RequestIdT = Aws::String>
99 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
100 template<typename RequestIdT = Aws::String>
101 GetSessionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
103 private:
104
105 Aws::String m_sessionId;
106 bool m_sessionIdHasBeenSet = false;
107
108 Aws::Vector<Message> m_messages;
109 bool m_messagesHasBeenSet = false;
110
111 Aws::Vector<Interpretation> m_interpretations;
112 bool m_interpretationsHasBeenSet = false;
113
114 SessionState m_sessionState;
115 bool m_sessionStateHasBeenSet = false;
116
117 Aws::String m_requestId;
118 bool m_requestIdHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace LexRuntimeV2
123} // namespace Aws
void SetInterpretations(InterpretationsT &&value)
const Aws::Vector< Interpretation > & GetInterpretations() const
const SessionState & GetSessionState() const
AWS_LEXRUNTIMEV2_API GetSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LEXRUNTIMEV2_API GetSessionResult()=default
GetSessionResult & WithSessionId(SessionIdT &&value)
GetSessionResult & AddInterpretations(InterpretationsT &&value)
const Aws::Vector< Message > & GetMessages() const
GetSessionResult & WithMessages(MessagesT &&value)
void SetSessionState(SessionStateT &&value)
AWS_LEXRUNTIMEV2_API GetSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSessionResult & AddMessages(MessagesT &&value)
GetSessionResult & WithRequestId(RequestIdT &&value)
GetSessionResult & WithSessionState(SessionStateT &&value)
GetSessionResult & WithInterpretations(InterpretationsT &&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