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>
54 template<
typename DialogActionT = DialogAction>
55 void SetDialogAction(DialogActionT&& value) { m_dialogActionHasBeenSet =
true; m_dialogAction = std::forward<DialogActionT>(value); }
56 template<
typename DialogActionT = DialogAction>
66 template<
typename IntentT = Intent>
67 void SetIntent(IntentT&& value) { m_intentHasBeenSet =
true; m_intent = std::forward<IntentT>(value); }
68 template<
typename IntentT = Intent>
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>>
84 template<
typename ActiveContextsT = ActiveContext>
85 SessionState&
AddActiveContexts(ActiveContextsT&& value) { m_activeContextsHasBeenSet =
true; m_activeContexts.emplace_back(std::forward<ActiveContextsT>(value));
return *
this; }
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>>
100 template<
typename SessionAttributesKeyT = Aws::String,
typename SessionAttributesValueT = Aws::String>
102 m_sessionAttributesHasBeenSet =
true; m_sessionAttributes.emplace(std::forward<SessionAttributesKeyT>(key), std::forward<SessionAttributesValueT>(value));
return *
this;
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>
125 template<
typename RuntimeH
intsT = RuntimeH
ints>
126 void SetRuntimeHints(RuntimeHintsT&& value) { m_runtimeHintsHasBeenSet =
true; m_runtimeHints = std::forward<RuntimeHintsT>(value); }
127 template<
typename RuntimeH
intsT = RuntimeH
ints>
133 bool m_dialogActionHasBeenSet =
false;
136 bool m_intentHasBeenSet =
false;
139 bool m_activeContextsHasBeenSet =
false;
142 bool m_sessionAttributesHasBeenSet =
false;
145 bool m_originatingRequestIdHasBeenSet =
false;
148 bool m_runtimeHintsHasBeenSet =
false;
bool DialogActionHasBeenSet() const
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)
bool SessionAttributesHasBeenSet() const
const Aws::String & GetOriginatingRequestId() const
bool ActiveContextsHasBeenSet() const
SessionState & AddActiveContexts(ActiveContextsT &&value)
AWS_LEXRUNTIMEV2_API SessionState(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API SessionState()=default
void SetDialogAction(DialogActionT &&value)
bool IntentHasBeenSet() const
SessionState & WithActiveContexts(ActiveContextsT &&value)
bool RuntimeHintsHasBeenSet() const
void SetRuntimeHints(RuntimeHintsT &&value)
SessionState & AddSessionAttributes(SessionAttributesKeyT &&key, SessionAttributesValueT &&value)
SessionState & WithRuntimeHints(RuntimeHintsT &&value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Intent & GetIntent() const
AWS_LEXRUNTIMEV2_API SessionState & operator=(Aws::Utils::Json::JsonView jsonValue)
bool OriginatingRequestIdHasBeenSet() const
const DialogAction & GetDialogAction() const
void SetOriginatingRequestId(OriginatingRequestIdT &&value)
void SetIntent(IntentT &&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