AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IntentConfirmationSetting.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/PromptSpecification.h>
9#include <aws/lexv2-models/model/ResponseSpecification.h>
10#include <aws/lexv2-models/model/DialogState.h>
11#include <aws/lexv2-models/model/ConditionalSpecification.h>
12#include <aws/lexv2-models/model/DialogCodeHookInvocationSetting.h>
13#include <aws/lexv2-models/model/ElicitationCodeHookInvocationSetting.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace LexModelsV2
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_LEXMODELSV2_API IntentConfirmationSetting() = default;
43 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
56 inline const PromptSpecification& GetPromptSpecification() const { return m_promptSpecification; }
57 inline bool PromptSpecificationHasBeenSet() const { return m_promptSpecificationHasBeenSet; }
58 template<typename PromptSpecificationT = PromptSpecification>
59 void SetPromptSpecification(PromptSpecificationT&& value) { m_promptSpecificationHasBeenSet = true; m_promptSpecification = std::forward<PromptSpecificationT>(value); }
60 template<typename PromptSpecificationT = PromptSpecification>
61 IntentConfirmationSetting& WithPromptSpecification(PromptSpecificationT&& value) { SetPromptSpecification(std::forward<PromptSpecificationT>(value)); return *this;}
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) { m_declinationResponseHasBeenSet = true; m_declinationResponse = std::forward<DeclinationResponseT>(value); }
74 template<typename DeclinationResponseT = ResponseSpecification>
75 IntentConfirmationSetting& WithDeclinationResponse(DeclinationResponseT&& value) { SetDeclinationResponse(std::forward<DeclinationResponseT>(value)); return *this;}
77
79
84 inline bool GetActive() const { return m_active; }
85 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
86 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
87 inline IntentConfirmationSetting& WithActive(bool value) { SetActive(value); return *this;}
89
91
92 inline const ResponseSpecification& GetConfirmationResponse() const { return m_confirmationResponse; }
93 inline bool ConfirmationResponseHasBeenSet() const { return m_confirmationResponseHasBeenSet; }
94 template<typename ConfirmationResponseT = ResponseSpecification>
95 void SetConfirmationResponse(ConfirmationResponseT&& value) { m_confirmationResponseHasBeenSet = true; m_confirmationResponse = std::forward<ConfirmationResponseT>(value); }
96 template<typename ConfirmationResponseT = ResponseSpecification>
97 IntentConfirmationSetting& WithConfirmationResponse(ConfirmationResponseT&& value) { SetConfirmationResponse(std::forward<ConfirmationResponseT>(value)); return *this;}
99
101
105 inline const DialogState& GetConfirmationNextStep() const { return m_confirmationNextStep; }
106 inline bool ConfirmationNextStepHasBeenSet() const { return m_confirmationNextStepHasBeenSet; }
107 template<typename ConfirmationNextStepT = DialogState>
108 void SetConfirmationNextStep(ConfirmationNextStepT&& value) { m_confirmationNextStepHasBeenSet = true; m_confirmationNextStep = std::forward<ConfirmationNextStepT>(value); }
109 template<typename ConfirmationNextStepT = DialogState>
110 IntentConfirmationSetting& WithConfirmationNextStep(ConfirmationNextStepT&& value) { SetConfirmationNextStep(std::forward<ConfirmationNextStepT>(value)); return *this;}
112
114
117 inline const ConditionalSpecification& GetConfirmationConditional() const { return m_confirmationConditional; }
118 inline bool ConfirmationConditionalHasBeenSet() const { return m_confirmationConditionalHasBeenSet; }
119 template<typename ConfirmationConditionalT = ConditionalSpecification>
120 void SetConfirmationConditional(ConfirmationConditionalT&& value) { m_confirmationConditionalHasBeenSet = true; m_confirmationConditional = std::forward<ConfirmationConditionalT>(value); }
121 template<typename ConfirmationConditionalT = ConditionalSpecification>
122 IntentConfirmationSetting& WithConfirmationConditional(ConfirmationConditionalT&& value) { SetConfirmationConditional(std::forward<ConfirmationConditionalT>(value)); return *this;}
124
126
130 inline const DialogState& GetDeclinationNextStep() const { return m_declinationNextStep; }
131 inline bool DeclinationNextStepHasBeenSet() const { return m_declinationNextStepHasBeenSet; }
132 template<typename DeclinationNextStepT = DialogState>
133 void SetDeclinationNextStep(DeclinationNextStepT&& value) { m_declinationNextStepHasBeenSet = true; m_declinationNextStep = std::forward<DeclinationNextStepT>(value); }
134 template<typename DeclinationNextStepT = DialogState>
135 IntentConfirmationSetting& WithDeclinationNextStep(DeclinationNextStepT&& value) { SetDeclinationNextStep(std::forward<DeclinationNextStepT>(value)); return *this;}
137
139
142 inline const ConditionalSpecification& GetDeclinationConditional() const { return m_declinationConditional; }
143 inline bool DeclinationConditionalHasBeenSet() const { return m_declinationConditionalHasBeenSet; }
144 template<typename DeclinationConditionalT = ConditionalSpecification>
145 void SetDeclinationConditional(DeclinationConditionalT&& value) { m_declinationConditionalHasBeenSet = true; m_declinationConditional = std::forward<DeclinationConditionalT>(value); }
146 template<typename DeclinationConditionalT = ConditionalSpecification>
147 IntentConfirmationSetting& WithDeclinationConditional(DeclinationConditionalT&& value) { SetDeclinationConditional(std::forward<DeclinationConditionalT>(value)); return *this;}
149
151
152 inline const ResponseSpecification& GetFailureResponse() const { return m_failureResponse; }
153 inline bool FailureResponseHasBeenSet() const { return m_failureResponseHasBeenSet; }
154 template<typename FailureResponseT = ResponseSpecification>
155 void SetFailureResponse(FailureResponseT&& value) { m_failureResponseHasBeenSet = true; m_failureResponse = std::forward<FailureResponseT>(value); }
156 template<typename FailureResponseT = ResponseSpecification>
157 IntentConfirmationSetting& WithFailureResponse(FailureResponseT&& value) { SetFailureResponse(std::forward<FailureResponseT>(value)); return *this;}
159
161
164 inline const DialogState& GetFailureNextStep() const { return m_failureNextStep; }
165 inline bool FailureNextStepHasBeenSet() const { return m_failureNextStepHasBeenSet; }
166 template<typename FailureNextStepT = DialogState>
167 void SetFailureNextStep(FailureNextStepT&& value) { m_failureNextStepHasBeenSet = true; m_failureNextStep = std::forward<FailureNextStepT>(value); }
168 template<typename FailureNextStepT = DialogState>
169 IntentConfirmationSetting& WithFailureNextStep(FailureNextStepT&& value) { SetFailureNextStep(std::forward<FailureNextStepT>(value)); return *this;}
171
173
174 inline const ConditionalSpecification& GetFailureConditional() const { return m_failureConditional; }
175 inline bool FailureConditionalHasBeenSet() const { return m_failureConditionalHasBeenSet; }
176 template<typename FailureConditionalT = ConditionalSpecification>
177 void SetFailureConditional(FailureConditionalT&& value) { m_failureConditionalHasBeenSet = true; m_failureConditional = std::forward<FailureConditionalT>(value); }
178 template<typename FailureConditionalT = ConditionalSpecification>
179 IntentConfirmationSetting& WithFailureConditional(FailureConditionalT&& value) { SetFailureConditional(std::forward<FailureConditionalT>(value)); return *this;}
181
183
189 inline const DialogCodeHookInvocationSetting& GetCodeHook() const { return m_codeHook; }
190 inline bool CodeHookHasBeenSet() const { return m_codeHookHasBeenSet; }
191 template<typename CodeHookT = DialogCodeHookInvocationSetting>
192 void SetCodeHook(CodeHookT&& value) { m_codeHookHasBeenSet = true; m_codeHook = std::forward<CodeHookT>(value); }
193 template<typename CodeHookT = DialogCodeHookInvocationSetting>
194 IntentConfirmationSetting& WithCodeHook(CodeHookT&& value) { SetCodeHook(std::forward<CodeHookT>(value)); return *this;}
196
198
202 inline const ElicitationCodeHookInvocationSetting& GetElicitationCodeHook() const { return m_elicitationCodeHook; }
203 inline bool ElicitationCodeHookHasBeenSet() const { return m_elicitationCodeHookHasBeenSet; }
204 template<typename ElicitationCodeHookT = ElicitationCodeHookInvocationSetting>
205 void SetElicitationCodeHook(ElicitationCodeHookT&& value) { m_elicitationCodeHookHasBeenSet = true; m_elicitationCodeHook = std::forward<ElicitationCodeHookT>(value); }
206 template<typename ElicitationCodeHookT = ElicitationCodeHookInvocationSetting>
207 IntentConfirmationSetting& WithElicitationCodeHook(ElicitationCodeHookT&& value) { SetElicitationCodeHook(std::forward<ElicitationCodeHookT>(value)); return *this;}
209 private:
210
211 PromptSpecification m_promptSpecification;
212 bool m_promptSpecificationHasBeenSet = false;
213
214 ResponseSpecification m_declinationResponse;
215 bool m_declinationResponseHasBeenSet = false;
216
217 bool m_active{false};
218 bool m_activeHasBeenSet = false;
219
220 ResponseSpecification m_confirmationResponse;
221 bool m_confirmationResponseHasBeenSet = false;
222
223 DialogState m_confirmationNextStep;
224 bool m_confirmationNextStepHasBeenSet = false;
225
226 ConditionalSpecification m_confirmationConditional;
227 bool m_confirmationConditionalHasBeenSet = false;
228
229 DialogState m_declinationNextStep;
230 bool m_declinationNextStepHasBeenSet = false;
231
232 ConditionalSpecification m_declinationConditional;
233 bool m_declinationConditionalHasBeenSet = false;
234
235 ResponseSpecification m_failureResponse;
236 bool m_failureResponseHasBeenSet = false;
237
238 DialogState m_failureNextStep;
239 bool m_failureNextStepHasBeenSet = false;
240
241 ConditionalSpecification m_failureConditional;
242 bool m_failureConditionalHasBeenSet = false;
243
244 DialogCodeHookInvocationSetting m_codeHook;
245 bool m_codeHookHasBeenSet = false;
246
247 ElicitationCodeHookInvocationSetting m_elicitationCodeHook;
248 bool m_elicitationCodeHookHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace LexModelsV2
253} // 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)
void SetConfirmationResponse(ConfirmationResponseT &&value)
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