AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SessionState.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/model/DialogAction.h>
9#include <aws/lexv2-runtime/model/Intent.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/lexv2-runtime/model/RuntimeHints.h>
14#include <aws/lexv2-runtime/model/ActiveContext.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace LexRuntimeV2
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_LEXRUNTIMEV2_API SessionState() = default;
42 AWS_LEXRUNTIMEV2_API SessionState(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LEXRUNTIMEV2_API SessionState& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const DialogAction& GetDialogAction() const { return m_dialogAction; }
53 inline bool DialogActionHasBeenSet() const { return m_dialogActionHasBeenSet; }
54 template<typename DialogActionT = DialogAction>
55 void SetDialogAction(DialogActionT&& value) { m_dialogActionHasBeenSet = true; m_dialogAction = std::forward<DialogActionT>(value); }
56 template<typename DialogActionT = DialogAction>
57 SessionState& WithDialogAction(DialogActionT&& value) { SetDialogAction(std::forward<DialogActionT>(value)); return *this;}
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) { m_intentHasBeenSet = true; m_intent = std::forward<IntentT>(value); }
68 template<typename IntentT = Intent>
69 SessionState& WithIntent(IntentT&& value) { SetIntent(std::forward<IntentT>(value)); return *this;}
71
73
78 inline const Aws::Vector<ActiveContext>& GetActiveContexts() const { return m_activeContexts; }
79 inline bool ActiveContextsHasBeenSet() const { return m_activeContextsHasBeenSet; }
80 template<typename ActiveContextsT = Aws::Vector<ActiveContext>>
81 void SetActiveContexts(ActiveContextsT&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::forward<ActiveContextsT>(value); }
82 template<typename ActiveContextsT = Aws::Vector<ActiveContext>>
83 SessionState& WithActiveContexts(ActiveContextsT&& value) { SetActiveContexts(std::forward<ActiveContextsT>(value)); return *this;}
84 template<typename ActiveContextsT = ActiveContext>
85 SessionState& AddActiveContexts(ActiveContextsT&& value) { m_activeContextsHasBeenSet = true; m_activeContexts.emplace_back(std::forward<ActiveContextsT>(value)); return *this; }
87
89
94 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const { return m_sessionAttributes; }
95 inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
96 template<typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
97 void SetSessionAttributes(SessionAttributesT&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::forward<SessionAttributesT>(value); }
98 template<typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
99 SessionState& WithSessionAttributes(SessionAttributesT&& value) { SetSessionAttributes(std::forward<SessionAttributesT>(value)); return *this;}
100 template<typename SessionAttributesKeyT = Aws::String, typename SessionAttributesValueT = Aws::String>
101 SessionState& AddSessionAttributes(SessionAttributesKeyT&& key, SessionAttributesValueT&& value) {
102 m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::forward<SessionAttributesKeyT>(key), std::forward<SessionAttributesValueT>(value)); return *this;
103 }
105
107
110 inline const Aws::String& GetOriginatingRequestId() const { return m_originatingRequestId; }
111 inline bool OriginatingRequestIdHasBeenSet() const { return m_originatingRequestIdHasBeenSet; }
112 template<typename OriginatingRequestIdT = Aws::String>
113 void SetOriginatingRequestId(OriginatingRequestIdT&& value) { m_originatingRequestIdHasBeenSet = true; m_originatingRequestId = std::forward<OriginatingRequestIdT>(value); }
114 template<typename OriginatingRequestIdT = Aws::String>
115 SessionState& WithOriginatingRequestId(OriginatingRequestIdT&& value) { SetOriginatingRequestId(std::forward<OriginatingRequestIdT>(value)); return *this;}
117
119
123 inline const RuntimeHints& GetRuntimeHints() const { return m_runtimeHints; }
124 inline bool RuntimeHintsHasBeenSet() const { return m_runtimeHintsHasBeenSet; }
125 template<typename RuntimeHintsT = RuntimeHints>
126 void SetRuntimeHints(RuntimeHintsT&& value) { m_runtimeHintsHasBeenSet = true; m_runtimeHints = std::forward<RuntimeHintsT>(value); }
127 template<typename RuntimeHintsT = RuntimeHints>
128 SessionState& WithRuntimeHints(RuntimeHintsT&& value) { SetRuntimeHints(std::forward<RuntimeHintsT>(value)); return *this;}
130 private:
131
132 DialogAction m_dialogAction;
133 bool m_dialogActionHasBeenSet = false;
134
135 Intent m_intent;
136 bool m_intentHasBeenSet = false;
137
138 Aws::Vector<ActiveContext> m_activeContexts;
139 bool m_activeContextsHasBeenSet = false;
140
141 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
142 bool m_sessionAttributesHasBeenSet = false;
143
144 Aws::String m_originatingRequestId;
145 bool m_originatingRequestIdHasBeenSet = false;
146
147 RuntimeHints m_runtimeHints;
148 bool m_runtimeHintsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace LexRuntimeV2
153} // 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