AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DialogState.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/DialogAction.h>
9#include <aws/lexv2-models/model/IntentOverride.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexModelsV2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_LEXMODELSV2_API DialogState();
39 AWS_LEXMODELSV2_API DialogState(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELSV2_API DialogState& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline const DialogAction& GetDialogAction() const{ return m_dialogAction; }
47 inline bool DialogActionHasBeenSet() const { return m_dialogActionHasBeenSet; }
48 inline void SetDialogAction(const DialogAction& value) { m_dialogActionHasBeenSet = true; m_dialogAction = value; }
49 inline void SetDialogAction(DialogAction&& value) { m_dialogActionHasBeenSet = true; m_dialogAction = std::move(value); }
50 inline DialogState& WithDialogAction(const DialogAction& value) { SetDialogAction(value); return *this;}
51 inline DialogState& WithDialogAction(DialogAction&& value) { SetDialogAction(std::move(value)); return *this;}
53
55
56 inline const IntentOverride& GetIntent() const{ return m_intent; }
57 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
58 inline void SetIntent(const IntentOverride& value) { m_intentHasBeenSet = true; m_intent = value; }
59 inline void SetIntent(IntentOverride&& value) { m_intentHasBeenSet = true; m_intent = std::move(value); }
60 inline DialogState& WithIntent(const IntentOverride& value) { SetIntent(value); return *this;}
61 inline DialogState& WithIntent(IntentOverride&& value) { SetIntent(std::move(value)); return *this;}
63
65
70 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const{ return m_sessionAttributes; }
71 inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
72 inline void SetSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = value; }
73 inline void SetSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::move(value); }
76 inline DialogState& AddSessionAttributes(const Aws::String& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
77 inline DialogState& AddSessionAttributes(Aws::String&& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
78 inline DialogState& AddSessionAttributes(const Aws::String& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
79 inline DialogState& AddSessionAttributes(Aws::String&& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), std::move(value)); return *this; }
80 inline DialogState& AddSessionAttributes(const char* key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
81 inline DialogState& AddSessionAttributes(Aws::String&& key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
82 inline DialogState& AddSessionAttributes(const char* key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
84 private:
85
86 DialogAction m_dialogAction;
87 bool m_dialogActionHasBeenSet = false;
88
89 IntentOverride m_intent;
90 bool m_intentHasBeenSet = false;
91
92 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
93 bool m_sessionAttributesHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace LexModelsV2
98} // namespace Aws
void SetIntent(const IntentOverride &value)
Definition DialogState.h:58
DialogState & WithIntent(const IntentOverride &value)
Definition DialogState.h:60
DialogState & WithSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition DialogState.h:74
DialogState & WithSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition DialogState.h:75
AWS_LEXMODELSV2_API DialogState()
DialogState & AddSessionAttributes(Aws::String &&key, Aws::String &&value)
Definition DialogState.h:79
void SetDialogAction(DialogAction &&value)
Definition DialogState.h:49
AWS_LEXMODELSV2_API DialogState(Aws::Utils::Json::JsonView jsonValue)
DialogState & AddSessionAttributes(Aws::String &&key, const Aws::String &value)
Definition DialogState.h:77
DialogState & WithDialogAction(DialogAction &&value)
Definition DialogState.h:51
void SetSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition DialogState.h:73
void SetIntent(IntentOverride &&value)
Definition DialogState.h:59
DialogState & AddSessionAttributes(const char *key, const char *value)
Definition DialogState.h:82
DialogState & WithIntent(IntentOverride &&value)
Definition DialogState.h:61
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
DialogState & WithDialogAction(const DialogAction &value)
Definition DialogState.h:50
DialogState & AddSessionAttributes(const char *key, Aws::String &&value)
Definition DialogState.h:80
const DialogAction & GetDialogAction() const
Definition DialogState.h:46
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
Definition DialogState.h:70
DialogState & AddSessionAttributes(const Aws::String &key, const Aws::String &value)
Definition DialogState.h:76
AWS_LEXMODELSV2_API DialogState & operator=(Aws::Utils::Json::JsonView jsonValue)
const IntentOverride & GetIntent() const
Definition DialogState.h:56
void SetSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition DialogState.h:72
DialogState & AddSessionAttributes(const Aws::String &key, Aws::String &&value)
Definition DialogState.h:78
void SetDialogAction(const DialogAction &value)
Definition DialogState.h:48
DialogState & AddSessionAttributes(Aws::String &&key, const char *value)
Definition DialogState.h:81
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
Aws::Utils::Json::JsonValue JsonValue