AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
IntentConfirmationSetting.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/ConditionalSpecification.h>
9#include <aws/lexv2-models/model/DialogCodeHookInvocationSetting.h>
10#include <aws/lexv2-models/model/DialogState.h>
11#include <aws/lexv2-models/model/ElicitationCodeHookInvocationSetting.h>
12#include <aws/lexv2-models/model/PromptSpecification.h>
13#include <aws/lexv2-models/model/ResponseSpecification.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexModelsV2 {
25namespace Model {
26
34 public:
35 AWS_LEXMODELSV2_API IntentConfirmationSetting() = default;
38 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
50 inline const PromptSpecification& GetPromptSpecification() const { return m_promptSpecification; }
51 inline bool PromptSpecificationHasBeenSet() const { return m_promptSpecificationHasBeenSet; }
52 template <typename PromptSpecificationT = PromptSpecification>
53 void SetPromptSpecification(PromptSpecificationT&& value) {
54 m_promptSpecificationHasBeenSet = true;
55 m_promptSpecification = std::forward<PromptSpecificationT>(value);
56 }
57 template <typename PromptSpecificationT = PromptSpecification>
58 IntentConfirmationSetting& WithPromptSpecification(PromptSpecificationT&& value) {
59 SetPromptSpecification(std::forward<PromptSpecificationT>(value));
60 return *this;
61 }
63
65
70 inline const ResponseSpecification& GetDeclinationResponse() const { return m_declinationResponse; }
71 inline bool DeclinationResponseHasBeenSet() const { return m_declinationResponseHasBeenSet; }
72 template <typename DeclinationResponseT = ResponseSpecification>
73 void SetDeclinationResponse(DeclinationResponseT&& value) {
74 m_declinationResponseHasBeenSet = true;
75 m_declinationResponse = std::forward<DeclinationResponseT>(value);
76 }
77 template <typename DeclinationResponseT = ResponseSpecification>
78 IntentConfirmationSetting& WithDeclinationResponse(DeclinationResponseT&& value) {
79 SetDeclinationResponse(std::forward<DeclinationResponseT>(value));
80 return *this;
81 }
83
85
90 inline bool GetActive() const { return m_active; }
91 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
92 inline void SetActive(bool value) {
93 m_activeHasBeenSet = true;
94 m_active = value;
95 }
97 SetActive(value);
98 return *this;
99 }
101
103
104 inline const ResponseSpecification& GetConfirmationResponse() const { return m_confirmationResponse; }
105 inline bool ConfirmationResponseHasBeenSet() const { return m_confirmationResponseHasBeenSet; }
106 template <typename ConfirmationResponseT = ResponseSpecification>
107 void SetConfirmationResponse(ConfirmationResponseT&& value) {
108 m_confirmationResponseHasBeenSet = true;
109 m_confirmationResponse = std::forward<ConfirmationResponseT>(value);
110 }
111 template <typename ConfirmationResponseT = ResponseSpecification>
112 IntentConfirmationSetting& WithConfirmationResponse(ConfirmationResponseT&& value) {
113 SetConfirmationResponse(std::forward<ConfirmationResponseT>(value));
114 return *this;
115 }
117
119
123 inline const DialogState& GetConfirmationNextStep() const { return m_confirmationNextStep; }
124 inline bool ConfirmationNextStepHasBeenSet() const { return m_confirmationNextStepHasBeenSet; }
125 template <typename ConfirmationNextStepT = DialogState>
126 void SetConfirmationNextStep(ConfirmationNextStepT&& value) {
127 m_confirmationNextStepHasBeenSet = true;
128 m_confirmationNextStep = std::forward<ConfirmationNextStepT>(value);
129 }
130 template <typename ConfirmationNextStepT = DialogState>
131 IntentConfirmationSetting& WithConfirmationNextStep(ConfirmationNextStepT&& value) {
132 SetConfirmationNextStep(std::forward<ConfirmationNextStepT>(value));
133 return *this;
134 }
136
138
141 inline const ConditionalSpecification& GetConfirmationConditional() const { return m_confirmationConditional; }
142 inline bool ConfirmationConditionalHasBeenSet() const { return m_confirmationConditionalHasBeenSet; }
143 template <typename ConfirmationConditionalT = ConditionalSpecification>
144 void SetConfirmationConditional(ConfirmationConditionalT&& value) {
145 m_confirmationConditionalHasBeenSet = true;
146 m_confirmationConditional = std::forward<ConfirmationConditionalT>(value);
147 }
148 template <typename ConfirmationConditionalT = ConditionalSpecification>
149 IntentConfirmationSetting& WithConfirmationConditional(ConfirmationConditionalT&& value) {
150 SetConfirmationConditional(std::forward<ConfirmationConditionalT>(value));
151 return *this;
152 }
154
156
160 inline const DialogState& GetDeclinationNextStep() const { return m_declinationNextStep; }
161 inline bool DeclinationNextStepHasBeenSet() const { return m_declinationNextStepHasBeenSet; }
162 template <typename DeclinationNextStepT = DialogState>
163 void SetDeclinationNextStep(DeclinationNextStepT&& value) {
164 m_declinationNextStepHasBeenSet = true;
165 m_declinationNextStep = std::forward<DeclinationNextStepT>(value);
166 }
167 template <typename DeclinationNextStepT = DialogState>
168 IntentConfirmationSetting& WithDeclinationNextStep(DeclinationNextStepT&& value) {
169 SetDeclinationNextStep(std::forward<DeclinationNextStepT>(value));
170 return *this;
171 }
173
175
178 inline const ConditionalSpecification& GetDeclinationConditional() const { return m_declinationConditional; }
179 inline bool DeclinationConditionalHasBeenSet() const { return m_declinationConditionalHasBeenSet; }
180 template <typename DeclinationConditionalT = ConditionalSpecification>
181 void SetDeclinationConditional(DeclinationConditionalT&& value) {
182 m_declinationConditionalHasBeenSet = true;
183 m_declinationConditional = std::forward<DeclinationConditionalT>(value);
184 }
185 template <typename DeclinationConditionalT = ConditionalSpecification>
186 IntentConfirmationSetting& WithDeclinationConditional(DeclinationConditionalT&& value) {
187 SetDeclinationConditional(std::forward<DeclinationConditionalT>(value));
188 return *this;
189 }
191
193
194 inline const ResponseSpecification& GetFailureResponse() const { return m_failureResponse; }
195 inline bool FailureResponseHasBeenSet() const { return m_failureResponseHasBeenSet; }
196 template <typename FailureResponseT = ResponseSpecification>
197 void SetFailureResponse(FailureResponseT&& value) {
198 m_failureResponseHasBeenSet = true;
199 m_failureResponse = std::forward<FailureResponseT>(value);
200 }
201 template <typename FailureResponseT = ResponseSpecification>
203 SetFailureResponse(std::forward<FailureResponseT>(value));
204 return *this;
205 }
207
209
212 inline const DialogState& GetFailureNextStep() const { return m_failureNextStep; }
213 inline bool FailureNextStepHasBeenSet() const { return m_failureNextStepHasBeenSet; }
214 template <typename FailureNextStepT = DialogState>
215 void SetFailureNextStep(FailureNextStepT&& value) {
216 m_failureNextStepHasBeenSet = true;
217 m_failureNextStep = std::forward<FailureNextStepT>(value);
218 }
219 template <typename FailureNextStepT = DialogState>
221 SetFailureNextStep(std::forward<FailureNextStepT>(value));
222 return *this;
223 }
225
227
228 inline const ConditionalSpecification& GetFailureConditional() const { return m_failureConditional; }
229 inline bool FailureConditionalHasBeenSet() const { return m_failureConditionalHasBeenSet; }
230 template <typename FailureConditionalT = ConditionalSpecification>
231 void SetFailureConditional(FailureConditionalT&& value) {
232 m_failureConditionalHasBeenSet = true;
233 m_failureConditional = std::forward<FailureConditionalT>(value);
234 }
235 template <typename FailureConditionalT = ConditionalSpecification>
236 IntentConfirmationSetting& WithFailureConditional(FailureConditionalT&& value) {
237 SetFailureConditional(std::forward<FailureConditionalT>(value));
238 return *this;
239 }
241
243
249 inline const DialogCodeHookInvocationSetting& GetCodeHook() const { return m_codeHook; }
250 inline bool CodeHookHasBeenSet() const { return m_codeHookHasBeenSet; }
251 template <typename CodeHookT = DialogCodeHookInvocationSetting>
252 void SetCodeHook(CodeHookT&& value) {
253 m_codeHookHasBeenSet = true;
254 m_codeHook = std::forward<CodeHookT>(value);
255 }
256 template <typename CodeHookT = DialogCodeHookInvocationSetting>
258 SetCodeHook(std::forward<CodeHookT>(value));
259 return *this;
260 }
262
264
268 inline const ElicitationCodeHookInvocationSetting& GetElicitationCodeHook() const { return m_elicitationCodeHook; }
269 inline bool ElicitationCodeHookHasBeenSet() const { return m_elicitationCodeHookHasBeenSet; }
270 template <typename ElicitationCodeHookT = ElicitationCodeHookInvocationSetting>
271 void SetElicitationCodeHook(ElicitationCodeHookT&& value) {
272 m_elicitationCodeHookHasBeenSet = true;
273 m_elicitationCodeHook = std::forward<ElicitationCodeHookT>(value);
274 }
275 template <typename ElicitationCodeHookT = ElicitationCodeHookInvocationSetting>
276 IntentConfirmationSetting& WithElicitationCodeHook(ElicitationCodeHookT&& value) {
277 SetElicitationCodeHook(std::forward<ElicitationCodeHookT>(value));
278 return *this;
279 }
281 private:
282 PromptSpecification m_promptSpecification;
283
284 ResponseSpecification m_declinationResponse;
285
286 bool m_active{false};
287
288 ResponseSpecification m_confirmationResponse;
289
290 DialogState m_confirmationNextStep;
291
292 ConditionalSpecification m_confirmationConditional;
293
294 DialogState m_declinationNextStep;
295
296 ConditionalSpecification m_declinationConditional;
297
298 ResponseSpecification m_failureResponse;
299
300 DialogState m_failureNextStep;
301
302 ConditionalSpecification m_failureConditional;
303
304 DialogCodeHookInvocationSetting m_codeHook;
305
306 ElicitationCodeHookInvocationSetting m_elicitationCodeHook;
307 bool m_promptSpecificationHasBeenSet = false;
308 bool m_declinationResponseHasBeenSet = false;
309 bool m_activeHasBeenSet = false;
310 bool m_confirmationResponseHasBeenSet = false;
311 bool m_confirmationNextStepHasBeenSet = false;
312 bool m_confirmationConditionalHasBeenSet = false;
313 bool m_declinationNextStepHasBeenSet = false;
314 bool m_declinationConditionalHasBeenSet = false;
315 bool m_failureResponseHasBeenSet = false;
316 bool m_failureNextStepHasBeenSet = false;
317 bool m_failureConditionalHasBeenSet = false;
318 bool m_codeHookHasBeenSet = false;
319 bool m_elicitationCodeHookHasBeenSet = false;
320};
321
322} // namespace Model
323} // namespace LexModelsV2
324} // namespace Aws
IntentConfirmationSetting & WithFailureResponse(FailureResponseT &&value)
const ConditionalSpecification & GetFailureConditional() const
const ElicitationCodeHookInvocationSetting & GetElicitationCodeHook() const
IntentConfirmationSetting & WithConfirmationNextStep(ConfirmationNextStepT &&value)
const ResponseSpecification & GetDeclinationResponse() const
void SetConfirmationConditional(ConfirmationConditionalT &&value)
IntentConfirmationSetting & WithDeclinationNextStep(DeclinationNextStepT &&value)
IntentConfirmationSetting & WithDeclinationConditional(DeclinationConditionalT &&value)
IntentConfirmationSetting & WithFailureNextStep(FailureNextStepT &&value)
IntentConfirmationSetting & WithCodeHook(CodeHookT &&value)
AWS_LEXMODELSV2_API IntentConfirmationSetting(Aws::Utils::Json::JsonView jsonValue)
IntentConfirmationSetting & WithElicitationCodeHook(ElicitationCodeHookT &&value)
AWS_LEXMODELSV2_API IntentConfirmationSetting()=default
AWS_LEXMODELSV2_API IntentConfirmationSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
IntentConfirmationSetting & WithConfirmationConditional(ConfirmationConditionalT &&value)
IntentConfirmationSetting & WithPromptSpecification(PromptSpecificationT &&value)
IntentConfirmationSetting & WithFailureConditional(FailureConditionalT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDeclinationConditional(DeclinationConditionalT &&value)
const ConditionalSpecification & GetConfirmationConditional() const
IntentConfirmationSetting & WithConfirmationResponse(ConfirmationResponseT &&value)
const DialogCodeHookInvocationSetting & GetCodeHook() const
const ConditionalSpecification & GetDeclinationConditional() const
IntentConfirmationSetting & WithDeclinationResponse(DeclinationResponseT &&value)
const ResponseSpecification & GetConfirmationResponse() const
Aws::Utils::Json::JsonValue JsonValue