AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
SessionState.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
11#include <aws/lexv2-runtime/model/ActiveContext.h>
12#include <aws/lexv2-runtime/model/DialogAction.h>
13#include <aws/lexv2-runtime/model/Intent.h>
14#include <aws/lexv2-runtime/model/RuntimeHints.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LexRuntimeV2 {
26namespace Model {
27
35 public:
36 AWS_LEXRUNTIMEV2_API SessionState() = default;
37 AWS_LEXRUNTIMEV2_API SessionState(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXRUNTIMEV2_API SessionState& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const DialogAction& GetDialogAction() const { return m_dialogAction; }
47 inline bool DialogActionHasBeenSet() const { return m_dialogActionHasBeenSet; }
48 template <typename DialogActionT = DialogAction>
49 void SetDialogAction(DialogActionT&& value) {
50 m_dialogActionHasBeenSet = true;
51 m_dialogAction = std::forward<DialogActionT>(value);
52 }
53 template <typename DialogActionT = DialogAction>
54 SessionState& WithDialogAction(DialogActionT&& value) {
55 SetDialogAction(std::forward<DialogActionT>(value));
56 return *this;
57 }
59
61
64 inline const Intent& GetIntent() const { return m_intent; }
65 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
66 template <typename IntentT = Intent>
67 void SetIntent(IntentT&& value) {
68 m_intentHasBeenSet = true;
69 m_intent = std::forward<IntentT>(value);
70 }
71 template <typename IntentT = Intent>
72 SessionState& WithIntent(IntentT&& value) {
73 SetIntent(std::forward<IntentT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::Vector<ActiveContext>& GetActiveContexts() const { return m_activeContexts; }
85 inline bool ActiveContextsHasBeenSet() const { return m_activeContextsHasBeenSet; }
86 template <typename ActiveContextsT = Aws::Vector<ActiveContext>>
87 void SetActiveContexts(ActiveContextsT&& value) {
88 m_activeContextsHasBeenSet = true;
89 m_activeContexts = std::forward<ActiveContextsT>(value);
90 }
91 template <typename ActiveContextsT = Aws::Vector<ActiveContext>>
92 SessionState& WithActiveContexts(ActiveContextsT&& value) {
93 SetActiveContexts(std::forward<ActiveContextsT>(value));
94 return *this;
95 }
96 template <typename ActiveContextsT = ActiveContext>
97 SessionState& AddActiveContexts(ActiveContextsT&& value) {
98 m_activeContextsHasBeenSet = true;
99 m_activeContexts.emplace_back(std::forward<ActiveContextsT>(value));
100 return *this;
101 }
103
105
110 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const { return m_sessionAttributes; }
111 inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
112 template <typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
113 void SetSessionAttributes(SessionAttributesT&& value) {
114 m_sessionAttributesHasBeenSet = true;
115 m_sessionAttributes = std::forward<SessionAttributesT>(value);
116 }
117 template <typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
118 SessionState& WithSessionAttributes(SessionAttributesT&& value) {
119 SetSessionAttributes(std::forward<SessionAttributesT>(value));
120 return *this;
121 }
122 template <typename SessionAttributesKeyT = Aws::String, typename SessionAttributesValueT = Aws::String>
123 SessionState& AddSessionAttributes(SessionAttributesKeyT&& key, SessionAttributesValueT&& value) {
124 m_sessionAttributesHasBeenSet = true;
125 m_sessionAttributes.emplace(std::forward<SessionAttributesKeyT>(key), std::forward<SessionAttributesValueT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetOriginatingRequestId() const { return m_originatingRequestId; }
135 inline bool OriginatingRequestIdHasBeenSet() const { return m_originatingRequestIdHasBeenSet; }
136 template <typename OriginatingRequestIdT = Aws::String>
137 void SetOriginatingRequestId(OriginatingRequestIdT&& value) {
138 m_originatingRequestIdHasBeenSet = true;
139 m_originatingRequestId = std::forward<OriginatingRequestIdT>(value);
140 }
141 template <typename OriginatingRequestIdT = Aws::String>
142 SessionState& WithOriginatingRequestId(OriginatingRequestIdT&& value) {
143 SetOriginatingRequestId(std::forward<OriginatingRequestIdT>(value));
144 return *this;
145 }
147
149
153 inline const RuntimeHints& GetRuntimeHints() const { return m_runtimeHints; }
154 inline bool RuntimeHintsHasBeenSet() const { return m_runtimeHintsHasBeenSet; }
155 template <typename RuntimeHintsT = RuntimeHints>
156 void SetRuntimeHints(RuntimeHintsT&& value) {
157 m_runtimeHintsHasBeenSet = true;
158 m_runtimeHints = std::forward<RuntimeHintsT>(value);
159 }
160 template <typename RuntimeHintsT = RuntimeHints>
161 SessionState& WithRuntimeHints(RuntimeHintsT&& value) {
162 SetRuntimeHints(std::forward<RuntimeHintsT>(value));
163 return *this;
164 }
166 private:
167 DialogAction m_dialogAction;
168
169 Intent m_intent;
170
171 Aws::Vector<ActiveContext> m_activeContexts;
172
173 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
174
175 Aws::String m_originatingRequestId;
176
177 RuntimeHints m_runtimeHints;
178 bool m_dialogActionHasBeenSet = false;
179 bool m_intentHasBeenSet = false;
180 bool m_activeContextsHasBeenSet = false;
181 bool m_sessionAttributesHasBeenSet = false;
182 bool m_originatingRequestIdHasBeenSet = false;
183 bool m_runtimeHintsHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace LexRuntimeV2
188} // namespace Aws
SessionState & WithOriginatingRequestId(OriginatingRequestIdT &&value)
SessionState & WithDialogAction(DialogActionT &&value)
SessionState & WithIntent(IntentT &&value)
const Aws::Vector< ActiveContext > & GetActiveContexts() const
void SetSessionAttributes(SessionAttributesT &&value)
const RuntimeHints & GetRuntimeHints() const
SessionState & WithSessionAttributes(SessionAttributesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
void SetActiveContexts(ActiveContextsT &&value)
const Aws::String & GetOriginatingRequestId() const
SessionState & AddActiveContexts(ActiveContextsT &&value)
AWS_LEXRUNTIMEV2_API SessionState(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API SessionState()=default
void SetDialogAction(DialogActionT &&value)
SessionState & WithActiveContexts(ActiveContextsT &&value)
void SetRuntimeHints(RuntimeHintsT &&value)
SessionState & AddSessionAttributes(SessionAttributesKeyT &&key, SessionAttributesValueT &&value)
SessionState & WithRuntimeHints(RuntimeHintsT &&value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API SessionState & operator=(Aws::Utils::Json::JsonView jsonValue)
const DialogAction & GetDialogAction() const
void SetOriginatingRequestId(OriginatingRequestIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue