AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
FollowUpPrompt.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/lex-models/model/Prompt.h>
9#include <aws/lex-models/model/Statement.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexModelBuildingService {
21namespace Model {
22
32 public:
33 AWS_LEXMODELBUILDINGSERVICE_API FollowUpPrompt() = default;
34 AWS_LEXMODELBUILDINGSERVICE_API FollowUpPrompt(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXMODELBUILDINGSERVICE_API FollowUpPrompt& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Prompt& GetPrompt() const { return m_prompt; }
43 inline bool PromptHasBeenSet() const { return m_promptHasBeenSet; }
44 template <typename PromptT = Prompt>
45 void SetPrompt(PromptT&& value) {
46 m_promptHasBeenSet = true;
47 m_prompt = std::forward<PromptT>(value);
48 }
49 template <typename PromptT = Prompt>
50 FollowUpPrompt& WithPrompt(PromptT&& value) {
51 SetPrompt(std::forward<PromptT>(value));
52 return *this;
53 }
55
57
62 inline const Statement& GetRejectionStatement() const { return m_rejectionStatement; }
63 inline bool RejectionStatementHasBeenSet() const { return m_rejectionStatementHasBeenSet; }
64 template <typename RejectionStatementT = Statement>
65 void SetRejectionStatement(RejectionStatementT&& value) {
66 m_rejectionStatementHasBeenSet = true;
67 m_rejectionStatement = std::forward<RejectionStatementT>(value);
68 }
69 template <typename RejectionStatementT = Statement>
70 FollowUpPrompt& WithRejectionStatement(RejectionStatementT&& value) {
71 SetRejectionStatement(std::forward<RejectionStatementT>(value));
72 return *this;
73 }
75 private:
76 Prompt m_prompt;
77
78 Statement m_rejectionStatement;
79 bool m_promptHasBeenSet = false;
80 bool m_rejectionStatementHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace LexModelBuildingService
85} // namespace Aws
FollowUpPrompt & WithRejectionStatement(RejectionStatementT &&value)
AWS_LEXMODELBUILDINGSERVICE_API FollowUpPrompt(Aws::Utils::Json::JsonView jsonValue)
FollowUpPrompt & WithPrompt(PromptT &&value)
AWS_LEXMODELBUILDINGSERVICE_API FollowUpPrompt & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRejectionStatement(RejectionStatementT &&value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELBUILDINGSERVICE_API FollowUpPrompt()=default
Aws::Utils::Json::JsonValue JsonValue