AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
GeneratedAnswerResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/GeneratedAnswerStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
30 public:
31 AWS_QUICKSIGHT_API GeneratedAnswerResult() = default;
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetQuestionText() const { return m_questionText; }
41 inline bool QuestionTextHasBeenSet() const { return m_questionTextHasBeenSet; }
42 template <typename QuestionTextT = Aws::String>
43 void SetQuestionText(QuestionTextT&& value) {
44 m_questionTextHasBeenSet = true;
45 m_questionText = std::forward<QuestionTextT>(value);
46 }
47 template <typename QuestionTextT = Aws::String>
48 GeneratedAnswerResult& WithQuestionText(QuestionTextT&& value) {
49 SetQuestionText(std::forward<QuestionTextT>(value));
50 return *this;
51 }
53
55
58 inline GeneratedAnswerStatus GetAnswerStatus() const { return m_answerStatus; }
59 inline bool AnswerStatusHasBeenSet() const { return m_answerStatusHasBeenSet; }
61 m_answerStatusHasBeenSet = true;
62 m_answerStatus = value;
63 }
65 SetAnswerStatus(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetTopicId() const { return m_topicId; }
75 inline bool TopicIdHasBeenSet() const { return m_topicIdHasBeenSet; }
76 template <typename TopicIdT = Aws::String>
77 void SetTopicId(TopicIdT&& value) {
78 m_topicIdHasBeenSet = true;
79 m_topicId = std::forward<TopicIdT>(value);
80 }
81 template <typename TopicIdT = Aws::String>
83 SetTopicId(std::forward<TopicIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetTopicName() const { return m_topicName; }
93 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
94 template <typename TopicNameT = Aws::String>
95 void SetTopicName(TopicNameT&& value) {
96 m_topicNameHasBeenSet = true;
97 m_topicName = std::forward<TopicNameT>(value);
98 }
99 template <typename TopicNameT = Aws::String>
101 SetTopicName(std::forward<TopicNameT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetRestatement() const { return m_restatement; }
111 inline bool RestatementHasBeenSet() const { return m_restatementHasBeenSet; }
112 template <typename RestatementT = Aws::String>
113 void SetRestatement(RestatementT&& value) {
114 m_restatementHasBeenSet = true;
115 m_restatement = std::forward<RestatementT>(value);
116 }
117 template <typename RestatementT = Aws::String>
118 GeneratedAnswerResult& WithRestatement(RestatementT&& value) {
119 SetRestatement(std::forward<RestatementT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetQuestionId() const { return m_questionId; }
129 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
130 template <typename QuestionIdT = Aws::String>
131 void SetQuestionId(QuestionIdT&& value) {
132 m_questionIdHasBeenSet = true;
133 m_questionId = std::forward<QuestionIdT>(value);
134 }
135 template <typename QuestionIdT = Aws::String>
136 GeneratedAnswerResult& WithQuestionId(QuestionIdT&& value) {
137 SetQuestionId(std::forward<QuestionIdT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetAnswerId() const { return m_answerId; }
147 inline bool AnswerIdHasBeenSet() const { return m_answerIdHasBeenSet; }
148 template <typename AnswerIdT = Aws::String>
149 void SetAnswerId(AnswerIdT&& value) {
150 m_answerIdHasBeenSet = true;
151 m_answerId = std::forward<AnswerIdT>(value);
152 }
153 template <typename AnswerIdT = Aws::String>
155 SetAnswerId(std::forward<AnswerIdT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetQuestionUrl() const { return m_questionUrl; }
165 inline bool QuestionUrlHasBeenSet() const { return m_questionUrlHasBeenSet; }
166 template <typename QuestionUrlT = Aws::String>
167 void SetQuestionUrl(QuestionUrlT&& value) {
168 m_questionUrlHasBeenSet = true;
169 m_questionUrl = std::forward<QuestionUrlT>(value);
170 }
171 template <typename QuestionUrlT = Aws::String>
172 GeneratedAnswerResult& WithQuestionUrl(QuestionUrlT&& value) {
173 SetQuestionUrl(std::forward<QuestionUrlT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_questionText;
179
181
182 Aws::String m_topicId;
183
184 Aws::String m_topicName;
185
186 Aws::String m_restatement;
187
188 Aws::String m_questionId;
189
190 Aws::String m_answerId;
191
192 Aws::String m_questionUrl;
193 bool m_questionTextHasBeenSet = false;
194 bool m_answerStatusHasBeenSet = false;
195 bool m_topicIdHasBeenSet = false;
196 bool m_topicNameHasBeenSet = false;
197 bool m_restatementHasBeenSet = false;
198 bool m_questionIdHasBeenSet = false;
199 bool m_answerIdHasBeenSet = false;
200 bool m_questionUrlHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace QuickSight
205} // 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