AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DialogAction.h
1
6#pragma once
7#include <aws/lex/LexRuntimeService_EXPORTS.h>
8#include <aws/lex/model/DialogActionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/lex/model/FulfillmentState.h>
12#include <aws/lex/model/MessageFormatType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LexRuntimeService
26{
27namespace Model
28{
29
40 {
41 public:
42 AWS_LEXRUNTIMESERVICE_API DialogAction();
43 AWS_LEXRUNTIMESERVICE_API DialogAction(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LEXRUNTIMESERVICE_API DialogAction& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
62 inline const DialogActionType& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const DialogActionType& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(DialogActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline DialogAction& WithType(const DialogActionType& value) { SetType(value); return *this;}
67 inline DialogAction& WithType(DialogActionType&& value) { SetType(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetIntentName() const{ return m_intentName; }
75 inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; }
76 inline void SetIntentName(const Aws::String& value) { m_intentNameHasBeenSet = true; m_intentName = value; }
77 inline void SetIntentName(Aws::String&& value) { m_intentNameHasBeenSet = true; m_intentName = std::move(value); }
78 inline void SetIntentName(const char* value) { m_intentNameHasBeenSet = true; m_intentName.assign(value); }
79 inline DialogAction& WithIntentName(const Aws::String& value) { SetIntentName(value); return *this;}
80 inline DialogAction& WithIntentName(Aws::String&& value) { SetIntentName(std::move(value)); return *this;}
81 inline DialogAction& WithIntentName(const char* value) { SetIntentName(value); return *this;}
83
85
88 inline const Aws::Map<Aws::String, Aws::String>& GetSlots() const{ return m_slots; }
89 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
90 inline void SetSlots(const Aws::Map<Aws::String, Aws::String>& value) { m_slotsHasBeenSet = true; m_slots = value; }
91 inline void SetSlots(Aws::Map<Aws::String, Aws::String>&& value) { m_slotsHasBeenSet = true; m_slots = std::move(value); }
92 inline DialogAction& WithSlots(const Aws::Map<Aws::String, Aws::String>& value) { SetSlots(value); return *this;}
93 inline DialogAction& WithSlots(Aws::Map<Aws::String, Aws::String>&& value) { SetSlots(std::move(value)); return *this;}
94 inline DialogAction& AddSlots(const Aws::String& key, const Aws::String& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, value); return *this; }
95 inline DialogAction& AddSlots(Aws::String&& key, const Aws::String& value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), value); return *this; }
96 inline DialogAction& AddSlots(const Aws::String& key, Aws::String&& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, std::move(value)); return *this; }
97 inline DialogAction& AddSlots(Aws::String&& key, Aws::String&& value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), std::move(value)); return *this; }
98 inline DialogAction& AddSlots(const char* key, Aws::String&& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, std::move(value)); return *this; }
99 inline DialogAction& AddSlots(Aws::String&& key, const char* value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), value); return *this; }
100 inline DialogAction& AddSlots(const char* key, const char* value) { m_slotsHasBeenSet = true; m_slots.emplace(key, value); return *this; }
102
104
107 inline const Aws::String& GetSlotToElicit() const{ return m_slotToElicit; }
108 inline bool SlotToElicitHasBeenSet() const { return m_slotToElicitHasBeenSet; }
109 inline void SetSlotToElicit(const Aws::String& value) { m_slotToElicitHasBeenSet = true; m_slotToElicit = value; }
110 inline void SetSlotToElicit(Aws::String&& value) { m_slotToElicitHasBeenSet = true; m_slotToElicit = std::move(value); }
111 inline void SetSlotToElicit(const char* value) { m_slotToElicitHasBeenSet = true; m_slotToElicit.assign(value); }
112 inline DialogAction& WithSlotToElicit(const Aws::String& value) { SetSlotToElicit(value); return *this;}
113 inline DialogAction& WithSlotToElicit(Aws::String&& value) { SetSlotToElicit(std::move(value)); return *this;}
114 inline DialogAction& WithSlotToElicit(const char* value) { SetSlotToElicit(value); return *this;}
116
118
127 inline const FulfillmentState& GetFulfillmentState() const{ return m_fulfillmentState; }
128 inline bool FulfillmentStateHasBeenSet() const { return m_fulfillmentStateHasBeenSet; }
129 inline void SetFulfillmentState(const FulfillmentState& value) { m_fulfillmentStateHasBeenSet = true; m_fulfillmentState = value; }
130 inline void SetFulfillmentState(FulfillmentState&& value) { m_fulfillmentStateHasBeenSet = true; m_fulfillmentState = std::move(value); }
131 inline DialogAction& WithFulfillmentState(const FulfillmentState& value) { SetFulfillmentState(value); return *this;}
132 inline DialogAction& WithFulfillmentState(FulfillmentState&& value) { SetFulfillmentState(std::move(value)); return *this;}
134
136
140 inline const Aws::String& GetMessage() const{ return m_message; }
141 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
142 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
143 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
144 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
145 inline DialogAction& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
146 inline DialogAction& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
147 inline DialogAction& WithMessage(const char* value) { SetMessage(value); return *this;}
149
151
161 inline const MessageFormatType& GetMessageFormat() const{ return m_messageFormat; }
162 inline bool MessageFormatHasBeenSet() const { return m_messageFormatHasBeenSet; }
163 inline void SetMessageFormat(const MessageFormatType& value) { m_messageFormatHasBeenSet = true; m_messageFormat = value; }
164 inline void SetMessageFormat(MessageFormatType&& value) { m_messageFormatHasBeenSet = true; m_messageFormat = std::move(value); }
165 inline DialogAction& WithMessageFormat(const MessageFormatType& value) { SetMessageFormat(value); return *this;}
166 inline DialogAction& WithMessageFormat(MessageFormatType&& value) { SetMessageFormat(std::move(value)); return *this;}
168 private:
169
170 DialogActionType m_type;
171 bool m_typeHasBeenSet = false;
172
173 Aws::String m_intentName;
174 bool m_intentNameHasBeenSet = false;
175
177 bool m_slotsHasBeenSet = false;
178
179 Aws::String m_slotToElicit;
180 bool m_slotToElicitHasBeenSet = false;
181
182 FulfillmentState m_fulfillmentState;
183 bool m_fulfillmentStateHasBeenSet = false;
184
185 Aws::String m_message;
186 bool m_messageHasBeenSet = false;
187
188 MessageFormatType m_messageFormat;
189 bool m_messageFormatHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace LexRuntimeService
194} // namespace Aws
DialogAction & AddSlots(const char *key, Aws::String &&value)
DialogAction & WithMessageFormat(const MessageFormatType &value)
void SetFulfillmentState(const FulfillmentState &value)
DialogAction & WithSlots(const Aws::Map< Aws::String, Aws::String > &value)
void SetMessage(const Aws::String &value)
DialogAction & AddSlots(Aws::String &&key, Aws::String &&value)
AWS_LEXRUNTIMESERVICE_API DialogAction(Aws::Utils::Json::JsonView jsonValue)
DialogAction & WithIntentName(Aws::String &&value)
void SetType(const DialogActionType &value)
void SetFulfillmentState(FulfillmentState &&value)
const FulfillmentState & GetFulfillmentState() const
DialogAction & WithSlotToElicit(const char *value)
DialogAction & WithType(const DialogActionType &value)
DialogAction & WithSlotToElicit(Aws::String &&value)
DialogAction & WithType(DialogActionType &&value)
DialogAction & WithIntentName(const char *value)
DialogAction & WithMessage(Aws::String &&value)
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetSlots() const
DialogAction & WithMessage(const char *value)
AWS_LEXRUNTIMESERVICE_API DialogAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIntentName(Aws::String &&value)
void SetType(DialogActionType &&value)
void SetSlotToElicit(Aws::String &&value)
DialogAction & WithSlotToElicit(const Aws::String &value)
void SetIntentName(const Aws::String &value)
DialogAction & AddSlots(Aws::String &&key, const char *value)
const Aws::String & GetMessage() const
const MessageFormatType & GetMessageFormat() const
void SetMessageFormat(MessageFormatType &&value)
DialogAction & WithSlots(Aws::Map< Aws::String, Aws::String > &&value)
void SetMessageFormat(const MessageFormatType &value)
const Aws::String & GetIntentName() const
const Aws::String & GetSlotToElicit() const
void SetSlotToElicit(const Aws::String &value)
AWS_LEXRUNTIMESERVICE_API DialogAction()
void SetSlots(const Aws::Map< Aws::String, Aws::String > &value)
DialogAction & AddSlots(const Aws::String &key, const Aws::String &value)
DialogAction & WithMessageFormat(MessageFormatType &&value)
DialogAction & WithFulfillmentState(FulfillmentState &&value)
DialogAction & WithMessage(const Aws::String &value)
DialogAction & WithIntentName(const Aws::String &value)
void SetSlots(Aws::Map< Aws::String, Aws::String > &&value)
DialogAction & AddSlots(Aws::String &&key, const Aws::String &value)
const DialogActionType & GetType() const
DialogAction & AddSlots(const Aws::String &key, Aws::String &&value)
DialogAction & AddSlots(const char *key, const char *value)
DialogAction & WithFulfillmentState(const FulfillmentState &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
Aws::Utils::Json::JsonValue JsonValue