AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
IntentSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex/LexRuntimeService_EXPORTS.h>
10#include <aws/lex/model/ConfirmationStatus.h>
11#include <aws/lex/model/DialogActionType.h>
12#include <aws/lex/model/FulfillmentState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexRuntimeService {
24namespace Model {
25
35 public:
36 AWS_LEXRUNTIMESERVICE_API IntentSummary() = default;
37 AWS_LEXRUNTIMESERVICE_API IntentSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXRUNTIMESERVICE_API IntentSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetIntentName() const { return m_intentName; }
46 inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; }
47 template <typename IntentNameT = Aws::String>
48 void SetIntentName(IntentNameT&& value) {
49 m_intentNameHasBeenSet = true;
50 m_intentName = std::forward<IntentNameT>(value);
51 }
52 template <typename IntentNameT = Aws::String>
53 IntentSummary& WithIntentName(IntentNameT&& value) {
54 SetIntentName(std::forward<IntentNameT>(value));
55 return *this;
56 }
58
60
67 inline const Aws::String& GetCheckpointLabel() const { return m_checkpointLabel; }
68 inline bool CheckpointLabelHasBeenSet() const { return m_checkpointLabelHasBeenSet; }
69 template <typename CheckpointLabelT = Aws::String>
70 void SetCheckpointLabel(CheckpointLabelT&& value) {
71 m_checkpointLabelHasBeenSet = true;
72 m_checkpointLabel = std::forward<CheckpointLabelT>(value);
73 }
74 template <typename CheckpointLabelT = Aws::String>
75 IntentSummary& WithCheckpointLabel(CheckpointLabelT&& value) {
76 SetCheckpointLabel(std::forward<CheckpointLabelT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Map<Aws::String, Aws::String>& GetSlots() const { return m_slots; }
86 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
87 template <typename SlotsT = Aws::Map<Aws::String, Aws::String>>
88 void SetSlots(SlotsT&& value) {
89 m_slotsHasBeenSet = true;
90 m_slots = std::forward<SlotsT>(value);
91 }
92 template <typename SlotsT = Aws::Map<Aws::String, Aws::String>>
93 IntentSummary& WithSlots(SlotsT&& value) {
94 SetSlots(std::forward<SlotsT>(value));
95 return *this;
96 }
97 template <typename SlotsKeyT = Aws::String, typename SlotsValueT = Aws::String>
98 IntentSummary& AddSlots(SlotsKeyT&& key, SlotsValueT&& value) {
99 m_slotsHasBeenSet = true;
100 m_slots.emplace(std::forward<SlotsKeyT>(key), std::forward<SlotsValueT>(value));
101 return *this;
102 }
104
106
118 inline ConfirmationStatus GetConfirmationStatus() const { return m_confirmationStatus; }
119 inline bool ConfirmationStatusHasBeenSet() const { return m_confirmationStatusHasBeenSet; }
121 m_confirmationStatusHasBeenSet = true;
122 m_confirmationStatus = value;
123 }
126 return *this;
127 }
129
131
143 inline DialogActionType GetDialogActionType() const { return m_dialogActionType; }
144 inline bool DialogActionTypeHasBeenSet() const { return m_dialogActionTypeHasBeenSet; }
146 m_dialogActionTypeHasBeenSet = true;
147 m_dialogActionType = value;
148 }
150 SetDialogActionType(value);
151 return *this;
152 }
154
156
165 inline FulfillmentState GetFulfillmentState() const { return m_fulfillmentState; }
166 inline bool FulfillmentStateHasBeenSet() const { return m_fulfillmentStateHasBeenSet; }
168 m_fulfillmentStateHasBeenSet = true;
169 m_fulfillmentState = value;
170 }
172 SetFulfillmentState(value);
173 return *this;
174 }
176
178
182 inline const Aws::String& GetSlotToElicit() const { return m_slotToElicit; }
183 inline bool SlotToElicitHasBeenSet() const { return m_slotToElicitHasBeenSet; }
184 template <typename SlotToElicitT = Aws::String>
185 void SetSlotToElicit(SlotToElicitT&& value) {
186 m_slotToElicitHasBeenSet = true;
187 m_slotToElicit = std::forward<SlotToElicitT>(value);
188 }
189 template <typename SlotToElicitT = Aws::String>
190 IntentSummary& WithSlotToElicit(SlotToElicitT&& value) {
191 SetSlotToElicit(std::forward<SlotToElicitT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_intentName;
197
198 Aws::String m_checkpointLabel;
199
201
203
205
207
208 Aws::String m_slotToElicit;
209 bool m_intentNameHasBeenSet = false;
210 bool m_checkpointLabelHasBeenSet = false;
211 bool m_slotsHasBeenSet = false;
212 bool m_confirmationStatusHasBeenSet = false;
213 bool m_dialogActionTypeHasBeenSet = false;
214 bool m_fulfillmentStateHasBeenSet = false;
215 bool m_slotToElicitHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace LexRuntimeService
220} // namespace Aws
ConfirmationStatus GetConfirmationStatus() const
const Aws::String & GetIntentName() const
const Aws::String & GetCheckpointLabel() const
IntentSummary & AddSlots(SlotsKeyT &&key, SlotsValueT &&value)
AWS_LEXRUNTIMESERVICE_API IntentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
IntentSummary & WithIntentName(IntentNameT &&value)
AWS_LEXRUNTIMESERVICE_API IntentSummary()=default
void SetDialogActionType(DialogActionType value)
void SetSlotToElicit(SlotToElicitT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSlots() const
const Aws::String & GetSlotToElicit() const
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
IntentSummary & WithCheckpointLabel(CheckpointLabelT &&value)
void SetFulfillmentState(FulfillmentState value)
void SetCheckpointLabel(CheckpointLabelT &&value)
AWS_LEXRUNTIMESERVICE_API IntentSummary(Aws::Utils::Json::JsonView jsonValue)
IntentSummary & WithConfirmationStatus(ConfirmationStatus value)
void SetConfirmationStatus(ConfirmationStatus value)
IntentSummary & WithDialogActionType(DialogActionType value)
IntentSummary & WithSlots(SlotsT &&value)
IntentSummary & WithSlotToElicit(SlotToElicitT &&value)
IntentSummary & WithFulfillmentState(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