AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ReviewTemplateAnswerSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/AnswerReason.h>
11#include <aws/wellarchitected/model/Choice.h>
12#include <aws/wellarchitected/model/ChoiceAnswerSummary.h>
13#include <aws/wellarchitected/model/QuestionType.h>
14#include <aws/wellarchitected/model/ReviewTemplateAnswerStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WellArchitected {
26namespace Model {
27
34 public:
35 AWS_WELLARCHITECTED_API ReviewTemplateAnswerSummary() = default;
36 AWS_WELLARCHITECTED_API ReviewTemplateAnswerSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
42 inline const Aws::String& GetQuestionId() const { return m_questionId; }
43 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
44 template <typename QuestionIdT = Aws::String>
45 void SetQuestionId(QuestionIdT&& value) {
46 m_questionIdHasBeenSet = true;
47 m_questionId = std::forward<QuestionIdT>(value);
48 }
49 template <typename QuestionIdT = Aws::String>
51 SetQuestionId(std::forward<QuestionIdT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetPillarId() const { return m_pillarId; }
59 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
60 template <typename PillarIdT = Aws::String>
61 void SetPillarId(PillarIdT&& value) {
62 m_pillarIdHasBeenSet = true;
63 m_pillarId = std::forward<PillarIdT>(value);
64 }
65 template <typename PillarIdT = Aws::String>
67 SetPillarId(std::forward<PillarIdT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetQuestionTitle() const { return m_questionTitle; }
75 inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; }
76 template <typename QuestionTitleT = Aws::String>
77 void SetQuestionTitle(QuestionTitleT&& value) {
78 m_questionTitleHasBeenSet = true;
79 m_questionTitle = std::forward<QuestionTitleT>(value);
80 }
81 template <typename QuestionTitleT = Aws::String>
83 SetQuestionTitle(std::forward<QuestionTitleT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::Vector<Choice>& GetChoices() const { return m_choices; }
91 inline bool ChoicesHasBeenSet() const { return m_choicesHasBeenSet; }
92 template <typename ChoicesT = Aws::Vector<Choice>>
93 void SetChoices(ChoicesT&& value) {
94 m_choicesHasBeenSet = true;
95 m_choices = std::forward<ChoicesT>(value);
96 }
97 template <typename ChoicesT = Aws::Vector<Choice>>
99 SetChoices(std::forward<ChoicesT>(value));
100 return *this;
101 }
102 template <typename ChoicesT = Choice>
104 m_choicesHasBeenSet = true;
105 m_choices.emplace_back(std::forward<ChoicesT>(value));
106 return *this;
107 }
109
111
112 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const { return m_selectedChoices; }
113 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
114 template <typename SelectedChoicesT = Aws::Vector<Aws::String>>
115 void SetSelectedChoices(SelectedChoicesT&& value) {
116 m_selectedChoicesHasBeenSet = true;
117 m_selectedChoices = std::forward<SelectedChoicesT>(value);
118 }
119 template <typename SelectedChoicesT = Aws::Vector<Aws::String>>
121 SetSelectedChoices(std::forward<SelectedChoicesT>(value));
122 return *this;
123 }
124 template <typename SelectedChoicesT = Aws::String>
126 m_selectedChoicesHasBeenSet = true;
127 m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Vector<ChoiceAnswerSummary>& GetChoiceAnswerSummaries() const { return m_choiceAnswerSummaries; }
137 inline bool ChoiceAnswerSummariesHasBeenSet() const { return m_choiceAnswerSummariesHasBeenSet; }
138 template <typename ChoiceAnswerSummariesT = Aws::Vector<ChoiceAnswerSummary>>
139 void SetChoiceAnswerSummaries(ChoiceAnswerSummariesT&& value) {
140 m_choiceAnswerSummariesHasBeenSet = true;
141 m_choiceAnswerSummaries = std::forward<ChoiceAnswerSummariesT>(value);
142 }
143 template <typename ChoiceAnswerSummariesT = Aws::Vector<ChoiceAnswerSummary>>
145 SetChoiceAnswerSummaries(std::forward<ChoiceAnswerSummariesT>(value));
146 return *this;
147 }
148 template <typename ChoiceAnswerSummariesT = ChoiceAnswerSummary>
149 ReviewTemplateAnswerSummary& AddChoiceAnswerSummaries(ChoiceAnswerSummariesT&& value) {
150 m_choiceAnswerSummariesHasBeenSet = true;
151 m_choiceAnswerSummaries.emplace_back(std::forward<ChoiceAnswerSummariesT>(value));
152 return *this;
153 }
155
157
158 inline bool GetIsApplicable() const { return m_isApplicable; }
159 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
160 inline void SetIsApplicable(bool value) {
161 m_isApplicableHasBeenSet = true;
162 m_isApplicable = value;
163 }
165 SetIsApplicable(value);
166 return *this;
167 }
169
171
174 inline ReviewTemplateAnswerStatus GetAnswerStatus() const { return m_answerStatus; }
175 inline bool AnswerStatusHasBeenSet() const { return m_answerStatusHasBeenSet; }
177 m_answerStatusHasBeenSet = true;
178 m_answerStatus = value;
179 }
181 SetAnswerStatus(value);
182 return *this;
183 }
185
187
191 inline AnswerReason GetReason() const { return m_reason; }
192 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
193 inline void SetReason(AnswerReason value) {
194 m_reasonHasBeenSet = true;
195 m_reason = value;
196 }
198 SetReason(value);
199 return *this;
200 }
202
204
207 inline QuestionType GetQuestionType() const { return m_questionType; }
208 inline bool QuestionTypeHasBeenSet() const { return m_questionTypeHasBeenSet; }
209 inline void SetQuestionType(QuestionType value) {
210 m_questionTypeHasBeenSet = true;
211 m_questionType = value;
212 }
214 SetQuestionType(value);
215 return *this;
216 }
218 private:
219 Aws::String m_questionId;
220
221 Aws::String m_pillarId;
222
223 Aws::String m_questionTitle;
224
225 Aws::Vector<Choice> m_choices;
226
227 Aws::Vector<Aws::String> m_selectedChoices;
228
229 Aws::Vector<ChoiceAnswerSummary> m_choiceAnswerSummaries;
230
231 bool m_isApplicable{false};
232
234
236
237 QuestionType m_questionType{QuestionType::NOT_SET};
238 bool m_questionIdHasBeenSet = false;
239 bool m_pillarIdHasBeenSet = false;
240 bool m_questionTitleHasBeenSet = false;
241 bool m_choicesHasBeenSet = false;
242 bool m_selectedChoicesHasBeenSet = false;
243 bool m_choiceAnswerSummariesHasBeenSet = false;
244 bool m_isApplicableHasBeenSet = false;
245 bool m_answerStatusHasBeenSet = false;
246 bool m_reasonHasBeenSet = false;
247 bool m_questionTypeHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace WellArchitected
252} // namespace Aws
AWS_WELLARCHITECTED_API ReviewTemplateAnswerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API ReviewTemplateAnswerSummary()=default
ReviewTemplateAnswerSummary & WithSelectedChoices(SelectedChoicesT &&value)
ReviewTemplateAnswerSummary & AddSelectedChoices(SelectedChoicesT &&value)
ReviewTemplateAnswerSummary & WithChoiceAnswerSummaries(ChoiceAnswerSummariesT &&value)
ReviewTemplateAnswerSummary & AddChoiceAnswerSummaries(ChoiceAnswerSummariesT &&value)
ReviewTemplateAnswerSummary & WithQuestionType(QuestionType value)
AWS_WELLARCHITECTED_API ReviewTemplateAnswerSummary(Aws::Utils::Json::JsonView jsonValue)
ReviewTemplateAnswerSummary & WithPillarId(PillarIdT &&value)
const Aws::Vector< ChoiceAnswerSummary > & GetChoiceAnswerSummaries() const
ReviewTemplateAnswerSummary & WithAnswerStatus(ReviewTemplateAnswerStatus value)
ReviewTemplateAnswerSummary & AddChoices(ChoicesT &&value)
ReviewTemplateAnswerSummary & WithChoices(ChoicesT &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ReviewTemplateAnswerSummary & WithReason(AnswerReason value)
ReviewTemplateAnswerSummary & WithQuestionId(QuestionIdT &&value)
ReviewTemplateAnswerSummary & WithQuestionTitle(QuestionTitleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue