AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDialogAction(const DialogAction& value) { m_dialogActionHasBeenSet = true; m_dialogAction = value; }
55 inline void SetDialogAction(DialogAction&& value) { m_dialogActionHasBeenSet = true; m_dialogAction = std::move(value); }
56 inline SessionState& WithDialogAction(const DialogAction& value) { SetDialogAction(value); return *this;}
57 inline SessionState& WithDialogAction(DialogAction&& value) { SetDialogAction(std::move(value)); return *this;}
59
61
64 inline const Intent& GetIntent() const{ return m_intent; }
65 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
66 inline void SetIntent(const Intent& value) { m_intentHasBeenSet = true; m_intent = value; }
67 inline void SetIntent(Intent&& value) { m_intentHasBeenSet = true; m_intent = std::move(value); }
68 inline SessionState& WithIntent(const Intent& value) { SetIntent(value); return *this;}
69 inline SessionState& WithIntent(Intent&& value) { SetIntent(std::move(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 inline void SetActiveContexts(const Aws::Vector<ActiveContext>& value) { m_activeContextsHasBeenSet = true; m_activeContexts = value; }
81 inline void SetActiveContexts(Aws::Vector<ActiveContext>&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::move(value); }
82 inline SessionState& WithActiveContexts(const Aws::Vector<ActiveContext>& value) { SetActiveContexts(value); return *this;}
83 inline SessionState& WithActiveContexts(Aws::Vector<ActiveContext>&& value) { SetActiveContexts(std::move(value)); return *this;}
84 inline SessionState& AddActiveContexts(const ActiveContext& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(value); return *this; }
85 inline SessionState& AddActiveContexts(ActiveContext&& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(std::move(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 inline void SetSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = value; }
97 inline void SetSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::move(value); }
100 inline SessionState& AddSessionAttributes(const Aws::String& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
101 inline SessionState& AddSessionAttributes(Aws::String&& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
102 inline SessionState& AddSessionAttributes(const Aws::String& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
103 inline SessionState& AddSessionAttributes(Aws::String&& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), std::move(value)); return *this; }
104 inline SessionState& AddSessionAttributes(const char* key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
105 inline SessionState& AddSessionAttributes(Aws::String&& key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
106 inline SessionState& AddSessionAttributes(const char* key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
108
110
113 inline const Aws::String& GetOriginatingRequestId() const{ return m_originatingRequestId; }
114 inline bool OriginatingRequestIdHasBeenSet() const { return m_originatingRequestIdHasBeenSet; }
115 inline void SetOriginatingRequestId(const Aws::String& value) { m_originatingRequestIdHasBeenSet = true; m_originatingRequestId = value; }
116 inline void SetOriginatingRequestId(Aws::String&& value) { m_originatingRequestIdHasBeenSet = true; m_originatingRequestId = std::move(value); }
117 inline void SetOriginatingRequestId(const char* value) { m_originatingRequestIdHasBeenSet = true; m_originatingRequestId.assign(value); }
118 inline SessionState& WithOriginatingRequestId(const Aws::String& value) { SetOriginatingRequestId(value); return *this;}
119 inline SessionState& WithOriginatingRequestId(Aws::String&& value) { SetOriginatingRequestId(std::move(value)); return *this;}
120 inline SessionState& WithOriginatingRequestId(const char* value) { SetOriginatingRequestId(value); return *this;}
122
124
128 inline const RuntimeHints& GetRuntimeHints() const{ return m_runtimeHints; }
129 inline bool RuntimeHintsHasBeenSet() const { return m_runtimeHintsHasBeenSet; }
130 inline void SetRuntimeHints(const RuntimeHints& value) { m_runtimeHintsHasBeenSet = true; m_runtimeHints = value; }
131 inline void SetRuntimeHints(RuntimeHints&& value) { m_runtimeHintsHasBeenSet = true; m_runtimeHints = std::move(value); }
132 inline SessionState& WithRuntimeHints(const RuntimeHints& value) { SetRuntimeHints(value); return *this;}
133 inline SessionState& WithRuntimeHints(RuntimeHints&& value) { SetRuntimeHints(std::move(value)); return *this;}
135 private:
136
137 DialogAction m_dialogAction;
138 bool m_dialogActionHasBeenSet = false;
139
140 Intent m_intent;
141 bool m_intentHasBeenSet = false;
142
143 Aws::Vector<ActiveContext> m_activeContexts;
144 bool m_activeContextsHasBeenSet = false;
145
146 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
147 bool m_sessionAttributesHasBeenSet = false;
148
149 Aws::String m_originatingRequestId;
150 bool m_originatingRequestIdHasBeenSet = false;
151
152 RuntimeHints m_runtimeHints;
153 bool m_runtimeHintsHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace LexRuntimeV2
158} // namespace Aws
SessionState & AddSessionAttributes(const Aws::String &key, const Aws::String &value)
SessionState & WithDialogAction(DialogAction &&value)
SessionState & WithActiveContexts(Aws::Vector< ActiveContext > &&value)
const Aws::Vector< ActiveContext > & GetActiveContexts() const
SessionState & AddSessionAttributes(Aws::String &&key, const char *value)
AWS_LEXRUNTIMEV2_API SessionState()
void SetRuntimeHints(RuntimeHints &&value)
void SetOriginatingRequestId(const char *value)
void SetSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SessionState & AddActiveContexts(ActiveContext &&value)
const RuntimeHints & GetRuntimeHints() const
void SetActiveContexts(Aws::Vector< ActiveContext > &&value)
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
void SetOriginatingRequestId(Aws::String &&value)
SessionState & AddSessionAttributes(Aws::String &&key, const Aws::String &value)
const Aws::String & GetOriginatingRequestId() const
void SetSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
AWS_LEXRUNTIMEV2_API SessionState(Aws::Utils::Json::JsonView jsonValue)
SessionState & AddActiveContexts(const ActiveContext &value)
SessionState & WithRuntimeHints(const RuntimeHints &value)
SessionState & WithOriginatingRequestId(const char *value)
void SetIntent(const Intent &value)
void SetOriginatingRequestId(const Aws::String &value)
SessionState & AddSessionAttributes(const char *key, const char *value)
void SetDialogAction(DialogAction &&value)
SessionState & AddSessionAttributes(const Aws::String &key, Aws::String &&value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
SessionState & WithActiveContexts(const Aws::Vector< ActiveContext > &value)
SessionState & WithIntent(const Intent &value)
SessionState & WithOriginatingRequestId(const Aws::String &value)
SessionState & WithDialogAction(const DialogAction &value)
void SetRuntimeHints(const RuntimeHints &value)
SessionState & WithOriginatingRequestId(Aws::String &&value)
SessionState & WithSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SessionState & WithSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
AWS_LEXRUNTIMEV2_API SessionState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDialogAction(const DialogAction &value)
const DialogAction & GetDialogAction() const
SessionState & WithRuntimeHints(RuntimeHints &&value)
SessionState & WithIntent(Intent &&value)
void SetActiveContexts(const Aws::Vector< ActiveContext > &value)
SessionState & AddSessionAttributes(const char *key, Aws::String &&value)
SessionState & AddSessionAttributes(Aws::String &&key, Aws::String &&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