AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
TopicReviewedAnswer.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/TopicIR.h>
10#include <aws/quicksight/model/TopicTemplate.h>
11#include <aws/quicksight/model/TopicVisual.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight {
23namespace Model {
24
32 public:
33 AWS_QUICKSIGHT_API TopicReviewedAnswer() = default;
34 AWS_QUICKSIGHT_API TopicReviewedAnswer(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAnswerId() const { return m_answerId; }
61 inline bool AnswerIdHasBeenSet() const { return m_answerIdHasBeenSet; }
62 template <typename AnswerIdT = Aws::String>
63 void SetAnswerId(AnswerIdT&& value) {
64 m_answerIdHasBeenSet = true;
65 m_answerId = std::forward<AnswerIdT>(value);
66 }
67 template <typename AnswerIdT = Aws::String>
68 TopicReviewedAnswer& WithAnswerId(AnswerIdT&& value) {
69 SetAnswerId(std::forward<AnswerIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDatasetArn() const { return m_datasetArn; }
79 inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
80 template <typename DatasetArnT = Aws::String>
81 void SetDatasetArn(DatasetArnT&& value) {
82 m_datasetArnHasBeenSet = true;
83 m_datasetArn = std::forward<DatasetArnT>(value);
84 }
85 template <typename DatasetArnT = Aws::String>
86 TopicReviewedAnswer& WithDatasetArn(DatasetArnT&& value) {
87 SetDatasetArn(std::forward<DatasetArnT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetQuestion() const { return m_question; }
97 inline bool QuestionHasBeenSet() const { return m_questionHasBeenSet; }
98 template <typename QuestionT = Aws::String>
99 void SetQuestion(QuestionT&& value) {
100 m_questionHasBeenSet = true;
101 m_question = std::forward<QuestionT>(value);
102 }
103 template <typename QuestionT = Aws::String>
104 TopicReviewedAnswer& WithQuestion(QuestionT&& value) {
105 SetQuestion(std::forward<QuestionT>(value));
106 return *this;
107 }
109
111
114 inline const TopicIR& GetMir() const { return m_mir; }
115 inline bool MirHasBeenSet() const { return m_mirHasBeenSet; }
116 template <typename MirT = TopicIR>
117 void SetMir(MirT&& value) {
118 m_mirHasBeenSet = true;
119 m_mir = std::forward<MirT>(value);
120 }
121 template <typename MirT = TopicIR>
123 SetMir(std::forward<MirT>(value));
124 return *this;
125 }
127
129
132 inline const TopicVisual& GetPrimaryVisual() const { return m_primaryVisual; }
133 inline bool PrimaryVisualHasBeenSet() const { return m_primaryVisualHasBeenSet; }
134 template <typename PrimaryVisualT = TopicVisual>
135 void SetPrimaryVisual(PrimaryVisualT&& value) {
136 m_primaryVisualHasBeenSet = true;
137 m_primaryVisual = std::forward<PrimaryVisualT>(value);
138 }
139 template <typename PrimaryVisualT = TopicVisual>
140 TopicReviewedAnswer& WithPrimaryVisual(PrimaryVisualT&& value) {
141 SetPrimaryVisual(std::forward<PrimaryVisualT>(value));
142 return *this;
143 }
145
147
150 inline const TopicTemplate& GetTemplate() const { return m_template; }
151 inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
152 template <typename TemplateT = TopicTemplate>
153 void SetTemplate(TemplateT&& value) {
154 m_templateHasBeenSet = true;
155 m_template = std::forward<TemplateT>(value);
156 }
157 template <typename TemplateT = TopicTemplate>
158 TopicReviewedAnswer& WithTemplate(TemplateT&& value) {
159 SetTemplate(std::forward<TemplateT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_arn;
165
166 Aws::String m_answerId;
167
168 Aws::String m_datasetArn;
169
170 Aws::String m_question;
171
172 TopicIR m_mir;
173
174 TopicVisual m_primaryVisual;
175
176 TopicTemplate m_template;
177 bool m_arnHasBeenSet = false;
178 bool m_answerIdHasBeenSet = false;
179 bool m_datasetArnHasBeenSet = false;
180 bool m_questionHasBeenSet = false;
181 bool m_mirHasBeenSet = false;
182 bool m_primaryVisualHasBeenSet = false;
183 bool m_templateHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace QuickSight
188} // namespace Aws
TopicReviewedAnswer & WithPrimaryVisual(PrimaryVisualT &&value)
AWS_QUICKSIGHT_API TopicReviewedAnswer & operator=(Aws::Utils::Json::JsonView jsonValue)
TopicReviewedAnswer & WithQuestion(QuestionT &&value)
TopicReviewedAnswer & WithArn(ArnT &&value)
TopicReviewedAnswer & WithMir(MirT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
TopicReviewedAnswer & WithTemplate(TemplateT &&value)
TopicReviewedAnswer & WithDatasetArn(DatasetArnT &&value)
AWS_QUICKSIGHT_API TopicReviewedAnswer(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API TopicReviewedAnswer()=default
TopicReviewedAnswer & WithAnswerId(AnswerIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue