AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GeneratedAnswerResult.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/model/GeneratedAnswerStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QUICKSIGHT_API GeneratedAnswerResult() = default;
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetQuestionText() const { return m_questionText; }
47 inline bool QuestionTextHasBeenSet() const { return m_questionTextHasBeenSet; }
48 template<typename QuestionTextT = Aws::String>
49 void SetQuestionText(QuestionTextT&& value) { m_questionTextHasBeenSet = true; m_questionText = std::forward<QuestionTextT>(value); }
50 template<typename QuestionTextT = Aws::String>
51 GeneratedAnswerResult& WithQuestionText(QuestionTextT&& value) { SetQuestionText(std::forward<QuestionTextT>(value)); return *this;}
53
55
58 inline GeneratedAnswerStatus GetAnswerStatus() const { return m_answerStatus; }
59 inline bool AnswerStatusHasBeenSet() const { return m_answerStatusHasBeenSet; }
60 inline void SetAnswerStatus(GeneratedAnswerStatus value) { m_answerStatusHasBeenSet = true; m_answerStatus = value; }
63
65
68 inline const Aws::String& GetTopicId() const { return m_topicId; }
69 inline bool TopicIdHasBeenSet() const { return m_topicIdHasBeenSet; }
70 template<typename TopicIdT = Aws::String>
71 void SetTopicId(TopicIdT&& value) { m_topicIdHasBeenSet = true; m_topicId = std::forward<TopicIdT>(value); }
72 template<typename TopicIdT = Aws::String>
73 GeneratedAnswerResult& WithTopicId(TopicIdT&& value) { SetTopicId(std::forward<TopicIdT>(value)); return *this;}
75
77
80 inline const Aws::String& GetTopicName() const { return m_topicName; }
81 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
82 template<typename TopicNameT = Aws::String>
83 void SetTopicName(TopicNameT&& value) { m_topicNameHasBeenSet = true; m_topicName = std::forward<TopicNameT>(value); }
84 template<typename TopicNameT = Aws::String>
85 GeneratedAnswerResult& WithTopicName(TopicNameT&& value) { SetTopicName(std::forward<TopicNameT>(value)); return *this;}
87
89
92 inline const Aws::String& GetRestatement() const { return m_restatement; }
93 inline bool RestatementHasBeenSet() const { return m_restatementHasBeenSet; }
94 template<typename RestatementT = Aws::String>
95 void SetRestatement(RestatementT&& value) { m_restatementHasBeenSet = true; m_restatement = std::forward<RestatementT>(value); }
96 template<typename RestatementT = Aws::String>
97 GeneratedAnswerResult& WithRestatement(RestatementT&& value) { SetRestatement(std::forward<RestatementT>(value)); return *this;}
99
101
104 inline const Aws::String& GetQuestionId() const { return m_questionId; }
105 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
106 template<typename QuestionIdT = Aws::String>
107 void SetQuestionId(QuestionIdT&& value) { m_questionIdHasBeenSet = true; m_questionId = std::forward<QuestionIdT>(value); }
108 template<typename QuestionIdT = Aws::String>
109 GeneratedAnswerResult& WithQuestionId(QuestionIdT&& value) { SetQuestionId(std::forward<QuestionIdT>(value)); return *this;}
111
113
116 inline const Aws::String& GetAnswerId() const { return m_answerId; }
117 inline bool AnswerIdHasBeenSet() const { return m_answerIdHasBeenSet; }
118 template<typename AnswerIdT = Aws::String>
119 void SetAnswerId(AnswerIdT&& value) { m_answerIdHasBeenSet = true; m_answerId = std::forward<AnswerIdT>(value); }
120 template<typename AnswerIdT = Aws::String>
121 GeneratedAnswerResult& WithAnswerId(AnswerIdT&& value) { SetAnswerId(std::forward<AnswerIdT>(value)); return *this;}
123
125
128 inline const Aws::String& GetQuestionUrl() const { return m_questionUrl; }
129 inline bool QuestionUrlHasBeenSet() const { return m_questionUrlHasBeenSet; }
130 template<typename QuestionUrlT = Aws::String>
131 void SetQuestionUrl(QuestionUrlT&& value) { m_questionUrlHasBeenSet = true; m_questionUrl = std::forward<QuestionUrlT>(value); }
132 template<typename QuestionUrlT = Aws::String>
133 GeneratedAnswerResult& WithQuestionUrl(QuestionUrlT&& value) { SetQuestionUrl(std::forward<QuestionUrlT>(value)); return *this;}
135 private:
136
137 Aws::String m_questionText;
138 bool m_questionTextHasBeenSet = false;
139
141 bool m_answerStatusHasBeenSet = false;
142
143 Aws::String m_topicId;
144 bool m_topicIdHasBeenSet = false;
145
146 Aws::String m_topicName;
147 bool m_topicNameHasBeenSet = false;
148
149 Aws::String m_restatement;
150 bool m_restatementHasBeenSet = false;
151
152 Aws::String m_questionId;
153 bool m_questionIdHasBeenSet = false;
154
155 Aws::String m_answerId;
156 bool m_answerIdHasBeenSet = false;
157
158 Aws::String m_questionUrl;
159 bool m_questionUrlHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace QuickSight
164} // namespace Aws
GeneratedAnswerResult & WithQuestionText(QuestionTextT &&value)
GeneratedAnswerResult & WithTopicId(TopicIdT &&value)
GeneratedAnswerResult & WithQuestionId(QuestionIdT &&value)
void SetAnswerStatus(GeneratedAnswerStatus value)
AWS_QUICKSIGHT_API GeneratedAnswerResult()=default
GeneratedAnswerResult & WithAnswerId(AnswerIdT &&value)
AWS_QUICKSIGHT_API GeneratedAnswerResult & operator=(Aws::Utils::Json::JsonView jsonValue)
GeneratedAnswerResult & WithAnswerStatus(GeneratedAnswerStatus value)
GeneratedAnswerResult & WithQuestionUrl(QuestionUrlT &&value)
GeneratedAnswerResult & WithTopicName(TopicNameT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
GeneratedAnswerResult & WithRestatement(RestatementT &&value)
AWS_QUICKSIGHT_API GeneratedAnswerResult(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue